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

Резултати

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

Пребарај: #aicertification

当前筛选 #aicertification清除筛选
AI & Law

@ai_and_law · Post #219 · 19.01.2024 г., 08:04

Fairly Trained Introduces Certification Label for Copyright Respecting AI Hello, everyone! In a bid to address copyright concerns in the realm of AI, nonprofit organization Fairly Trained is rolling out a certification program. Aimed at AI companies, the program awards a "Licensed Model" certification to entities that demonstrate obtaining permission to use copyrighted training data. This move comes in response to the growing need for transparency and ethical practices in the AI community. Notably, Fairly Trained refuses certification to developers relying on fair use arguments for training their models. The initiative is a proactive step to mitigate legal issues arising from copyright infringement allegations in AI. #AICertification#EthicalAI#Copyright

AI & Law

@ai_and_law · Post #72 · 01.08.2023 г., 07:04

Navigating the Future of AI Governance: IAPP Introduces AIGP Certification Hello, AI enthusiasts! Exciting news from the International Association of Privacy Professionals (IAPP)! They have released the Artificial Intelligence Governance Professional Body of Knowledge (BoK), a foundational document for the upcoming AIGP certification and training. This certification presents a brand new learning opportunity for legal professionals in the AI domain: 🔹 A Path to Safe and Trustworthy AI: The BoK outlines the knowledge and skills required for AI governance professionals to guide AI implementation responsibly. 🔹 A Living Document for an Ever-Changing Landscape: In a rapidly evolving world, updates to the BoK will be reviewed every six months to ensure it remains up-to-date. 🔹 Empowering Professionals for New Responsibilities: As generative AI increasingly integrates into business operations, organizations face both excitement and concern. The BoK equips professionals from diverse backgrounds to navigate legal and ethical challenges and take a proactive approach to risk mitigation. 🔹 A Collaborative Effort: The BoK is the result of a remarkable collaboration between the IAPP and leading voices from privacy, law, ethics, academia, computer science, and more. 🔹 Elevating AI Governance Professionals: With AI initiatives becoming integral to various organizations, privacy professionals are well-positioned to take the lead. The AIGP certification empowers them to gain the necessary knowledge and expertise to excel in AI governance roles. It's a wonderful new opportunity for legal professionals to advance their expertise in the exciting field of AI! #AIandLaw#AIRegulation#IAPP#DigitalEthics#AIinBusiness#AIcertification