TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #421 · 23 мар.

Мы используем Makefile думая, что нет альтернатив, что это стандарт и всё такое. Но make это не запускалка команд, а система сборки. Мы фактически используем его не по назначению. И на самом деле альтернатива есть! Некоторое время назад я открыл для себя прекрасный инструмент - just. Он решает все проблемы make. just - это не система сборки как make, это именно исполнитель команд! Больше никаких Phony Targets и табуляций, привет нормальный синтаксис и передача аргументов!!! 😎 ⭐️Что умеет just: ✅ Автодокументирование команд Не нужно делать отдельную команду с докой, просто добавь комментарий # команда сборки build: ... $ just --list Available recipes: build # команда сборки Команда с именем default запускается по умолчанию если не указано другое, так что я обычно делаю так: default: just --list Теперь просто выполняем just и получаем доку из текущего файла. ✅ Удобная работа с переменными окружения # загрузить из .env set dotenv-load # глобальная переменная export PYTHONPATH := "./src" # переменная для команды test $TESTUNG="true": pytest ✅ Передача аргументов build target: @echo 'Build {{target}}...' команда запуска $ just build dev # Build dev... ✅ Выбор интерпретатора прямо в команде Пример с инлайн-скриптом на python: system: #!/usr/bin/env python3 import platform print(platform.system()) Эта же функция позволит выполнить скрипт как одну команду вместо перезапуска шела для каждой строки foo: #!/usr/bin/env sh for file in ls .; do echo $file done ✅ Выполнение команды в определенной директории. Можно указать как релятивный путь так и абсолютный [working-directory: 'backend'] build: docker compose build Также можно задать рабочую директорию глобально Там еще много интересного: - поддержка функций - автокомплиты и интеграции - экспрешены - алиасы команд - группировка команд - альтернативы команды под разные ОС - импорт других just-файлов - цветной вывод - ... и другие штуковины! Так что вперёд - ➡️ читать доку! Репозиторий: ➡️https://github.com/casey/just Статья: ➡️https://www.chicks.net/reference/file_formats/just/ ЗЫ. Кажется, на Makefile я уже не вернусь) #tools

Hashtags

Резултати

Пронајдени 3 слични објави

Пребарај: #securetrading

当前筛选 #securetrading清除筛选
SLEX NEWS

@slex_io · Post #121 · 03.11.2023 г., 13:56

🔒100% Security Rate on SLEX Centralized Exchange!🔒 📖We're thrilled to inform you that Hacken, a trusted crypto and blockchain security audit firm, has rigorously reviewed the SLEX Centralized Exchange's code🔍 🔥What's the result? — A flawless review with ZERO vulnerabilities or code errors detected! 🎉This means SLEX proudly holds a 100% security rating as per Hacken's audit☄️ Check this out: hacken.io/audits/slex/ 🤝Join SLEX platform, deposit your account, and trade with confidence, knowing that our platform meets the highest security standards in the industry🛡️ #SLEXSafety#HackenAudit#SecureTrading Telegram | Reddit | Facebook | Instagram | Medium | Linkedin | Twitter

SLEX NEWS

@slex_io · Post #70 · 25.07.2023 г., 14:02

🔓🌐 With the expanding digital horizon, ensuring the security of crypto assets is a task that cannot be underestimated. SLEX platform is dedicated to high level of security and so officially joining the Crypto Currency Security Standard (CCSS)! 🎉 CCSS is a universally recognized security standard specifically designed for cryptocurrencies. It's like a superhero's shield that secures key generation and storage, robust transaction processes! 🛡️ 🤔What does this mean for SLEX users? Simple – it means an even more robust assurance that your digital assets are safe and secure. So join SLEX - the bastion of crypto security and discover your trading ideas! 🎯💪 #SLEX#CryptoSecurity#CCSS#SecureTrading Email | Telegram | Reddit | Facebook | Instagram | Medium | Linkedin | Twitter

SLEX NEWS

@slex_io · Post #47 · 26.05.2023 г., 17:15

🔒🌐 Commodity Proof of Reserves - Trusted, Public, and Secure Storage We are thrilled to unveil Commodity Proof of Reserves, an innovative solution that ensures unwavering trust, transparency, and security in commodity storage. Through our strategic partnership with a globally renowned mining company, in collaboration with SLEX, we guarantee a steady supply of liquidity and a secure trading environment. Our collaboration ets the highest standards of reliability and integrity. Our mining operations cover multiple cities in the Democratic Republic of Congo (DRC): Lubumbashi, Kakanda, and Likasi. This extensive network taps into abundant resources, providing an impressive $3 billion USD supply 📝 We understand the critical importance of trustworthy storage and protection in today's dynamic market. Through advanced blockchain technology, we've created a system that ensures complete transparency and validation of reserves. This approach instills confidence in our valued clients and partners. Commodity Proof of Reserves is a testament to our commitment to innovation, security, and reliability. With our trusted partner and vast resources, we aim to reshape commodity trading, setting new standards for excellence 📌 👉🏻 Join us Now and Stay Tuned For Updates and Developments: Slex.io #CommodityProofOfReserves#TrustedStorage#SecureTrading#BlockchainInnovation