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

Резултати

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

Пребарај: #goldholdings

当前筛选 #goldholdings清除筛选
Crypto M - Crypto News

@CryptoM · Post #65092 · 11.04.2026 г., 00:24

🚀 PRECIOUS METALS | SPDR Gold Trust Holdings Remain Unchanged at 1,052.419 Tons The SPDR Gold Trust, recognized as the world's largest gold ETF, reported no change in its holdings, maintaining a total of 1,052.419 tons. According to Jin10, this stability in holdings comes amid fluctuating market conditions and investor sentiment. The unchanged status reflects the current market dynamics and investor strategies in the precious metals sector. #preciousmetals#SPDRGoldTrust#goldETF#marketdynamics#investorsentiment#goldholdings

Crypto M - Crypto News

@CryptoM · Post #65398 · 13.04.2026 г., 05:07

🚀 PRECIOUS METALS | UBP Increases Gold Holdings, Forecasts Year-End Price to Reach $6,000 Union Bancaire Privée (UBP) has increased its gold holdings, projecting that the price of gold will reach $6,000 by the end of the year. According to Jin10, the bank's decision to bolster its gold reserves reflects a strategic move in response to anticipated market conditions. UBP's forecast suggests a significant rise in gold prices, driven by factors such as global economic uncertainties and inflationary pressures. The bank's outlook aligns with broader market sentiment, where investors are increasingly turning to precious metals as a hedge against volatility. This move by UBP underscores the growing importance of gold in investment portfolios amid fluctuating financial markets. #preciousmetals#gold#UBP#investment#inflation#economicuncertainty#goldholdings#marketforecast#financialmarkets#hedge

Crypto M - Crypto News

@CryptoM · Post #64780 · 09.04.2026 г., 22:29

🚀 PRECIOUS METALS | SPDR Gold Trust Reduces Holdings by 0.571 Tons The world's largest gold ETF, SPDR Gold Trust, has decreased its holdings by 0.571 tons, bringing the current total to 1,052.419 tons. According to Jin10, this adjustment reflects ongoing market dynamics and investor sentiment towards gold. The reduction in holdings may indicate a shift in investment strategies or responses to recent economic developments. SPDR Gold Trust's holdings are closely watched as a barometer for global gold demand and investment trends. #preciousmetals#SPDRGoldTrust#goldETF#goldholdings#investmentstrategies#economicdevelopments#globalgolddemand#goldmarket

Crypto M - Crypto News

@CryptoM · Post #64663 · 09.04.2026 г., 13:13

🚀 PRECIOUS METALS | Poland's Central Bank Holds 580 Tons of Gold Poland's Central Bank Governor, Adam Glapiński, has announced that the central bank currently holds 580 tons of gold. According to Jin10, this substantial reserve underscores Poland's strategic approach to strengthening its financial security and diversifying its assets. The gold holdings are part of a broader effort to ensure economic stability and safeguard against global market fluctuations. Poland's commitment to maintaining a robust gold reserve reflects its proactive measures in navigating the complexities of the international financial landscape. #Poland#CentralBank#GoldReserves#FinancialSecurity#EconomicStability#GlobalMarket#AssetDiversification#GoldHoldings#InternationalFinance