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

Резултати

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

Пребарај: #ivendpay

当前筛选 #ivendpay清除筛选

💙Bitget Wallet Launches a New Era of Web3 Payments Bitget Wallet has announced its 2025 strategy, focusing on the concept of #PayFi. This is a real breakthrough in the world of crypto payments, which turns passive Web3 investments into an active financial instrument for everyday use. 📊Integration of earnings, expenses and transfers With over 60 million users worldwide, Bitget Wallet is redefining the role of cryptocurrency in personal finance. The PayFi system allows users to earn, spend, and send cryptocurrency in a single ecosystem, making it as useful as possible in everyday life. ✈️PayFi Flywheel Model The strategy is based on the PayFi Flywheel model, which transforms the traditional crypto wallet from a simple storage tool into a full-fledged financial hub. Users will be able to deposit assets, such as stablecoins, into savings accounts with real income, which are immediately used to cover daily expenses under the concept of “buy now, pay later.” 💳Launch of Bitget Wallet Card Key new products include the Bitget Wallet crypto card, which is supported by 💳Mastercard. This card will be linked to a multi-currency, crypto-friendly international bank account, greatly expanding the possibilities for using your crypto assets in real life. In addition to the card, users will have access to an in-app section for online shopping thanks to partnerships with companies like #Bitrefill, #IvendPay and #Coinpal. 🗺Supporting growing markets The significant growth in users in Africa, the Middle East and Latin America (over 1000% in 2024) highlights Bitget Wallet's commitment to making cryptocurrency accessible to everyone, especially those who have been left out of the traditional banking system. Alvin Kahn, COO of Bitget Wallet: This is not just a product — it is a movement that will make cryptocurrency a viable financial instrument for billions of people. We integrate blockchain technology into everyday life, creating a new paradigm for personal finance. 💰How to leverage it? It is assumed that settlements will be made through $BGB, the holders of which will become the beneficiaries of the new direction of the exchange. If you use Bitget Wallet Lite to collect KeyShards, which will probably also be converted to $BGB — you can easily migrate to Bitget Wallet by importing a seed phrase or private key and get all the benefits of PayFi Flywheel. #BitgetWallet#Web3#DeFi#BGB