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

Резултати

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

Пребарај: #cryptopolicy

当前筛选 #cryptopolicy清除筛选
Venture Village Wall 🦄

@venturevillagewall · Post #4330 · 07.03.2025 г., 13:00

U.S. Must Lead in Crypto Regulation U.S. Treasury Secretary Bessent emphasizes the need for the U.S. to take a global lead on cryptocurrency. Key points include bringing Bitcoin transactions onshore and ceasing government Bitcoin sales. Notably, the evolving regulatory landscape also aims to foster greater adoption of cryptocurrencies in the U.S. #Crypto#U.S. #Bitcoin#Regulation#SEC#BTC#Blockchain#Innovation#CryptoAdoption#Finance#Bessent#Investment#CryptoPolicy#DigitalAssets#Mainstream#MarketTrends#Tech

Crypto M - Crypto News

@CryptoM · Post #65242 · 12.04.2026 г., 08:25

🚀 Former Bank of China VP Comments on U.S. Crypto Regulation Approach Former Bank of China Vice President Wang Yongli has expressed that the United States' method of classifying and regulating crypto assets warrants examination. According to NS3.AI, Wang Yongli noted that the CLARITY Act guidance document represents a notable advancement. However, he emphasized that nations should tailor their crypto asset regulations to align with their specific circumstances. #BankOfChina#CryptoRegulation#USCrypto#CLARITYAct#WangYongli#CryptoPolicy#FinancialRegulation#Blockchain

Crypto M - Crypto News

@CryptoM · Post #65060 · 10.04.2026 г., 17:27

🚀 Senator Lummis Urges Congress to Pass CLARITY Crypto Bill Before 2030 Senator Cynthia Lummis has called on Congress to expedite the passage of the CLARITY crypto market structure bill, emphasizing its importance as a critical legislative opportunity before 2030. According to NS3.AI, Lummis highlighted the urgency of the situation, framing the bill as a narrowing legislative window rather than a finalized policy measure. Her statement underscores the need for timely action to establish a clear regulatory framework for the cryptocurrency market. #SenatorLummis#CLARITYBill#CryptoRegulation#Cryptocurrency#Congress#Legislation#Blockchain#CryptoPolicy#RegulatoryFramework#CryptoNews

Crypto M - Crypto News

@CryptoM · Post #64785 · 09.04.2026 г., 23:37

🚀 South Korea Implements New Rules for Managing Public-Sector Virtual Assets South Korea has approved a plan to manage 78 billion won, equivalent to approximately $57.7 million, in public-sector virtual assets. According to NS3.AI, the new regulations mandate that any seized or confiscated cryptocurrency from personal wallets must be promptly transferred to an institutional cold wallet, which is not connected to the internet. Additionally, the rules stipulate that private keys and recovery phrases must be controlled by at least two individuals through a split-access arrangement. #SouthKorea#PublicSector#VirtualAssets#Cryptocurrency#Regulations#DigitalAssets#CryptoSecurity#ColdWallet#Blockchain#CryptoPolicy

Venture Village Wall 🦄

@venturevillagewall · Post #4289 · 02.03.2025 г., 19:01

Bitcoin Surges Following Large Whale Activity A Hyperliquid whale profited over $10M after opening positions shortly before the Bitcoin price surge to $90,000. Meanwhile, Donald Trump proposed a U.S. national crypto reserve including XRP, SOL, and ADA, raising concerns about insider trading due to the choice of assets. More details on these developments can be found here: Leviathan News and Wu Blockchain News. #Bitcoin#Crypto#XRP#SOL#ADA#Trump#Whale#Profit#NationalReserve#InsiderTrading#Blockchain#Finance#Investing#MarketTrends#BlockchainNews#CryptoPolicy#DigitalAssets#Fintech#VC#AI

Crypto M - Crypto News

@CryptoM · Post #64854 · 10.04.2026 г., 04:34

🚀 South Korea Proposes Stricter Crypto Transfer Regulations South Korea's Financial Intelligence Unit is set to implement more stringent rules on cryptocurrency transfers. According to NS3.AI, the new regulations will mandate reports on suspicious transactions for low-risk transfers exceeding 10 million won, particularly involving private wallets and overseas exchanges. These low-risk transfers will only be permitted if the sender and receiver are verified as the same individual. Additionally, high-risk transactions will face further restrictions. #SouthKorea#CryptoRegulations#Cryptocurrency#FinancialRegulations#Blockchain#CryptoTransfers#DigitalCurrency#FinTech#CryptoCompliance#CryptoPolicy