Работа с YAML-Файлами в Python с Помощью Библиотеки PyYAML
PyYAML позволяет эффективно работать с файлами в формате YAML (YAML Ain't Markup Language), который широко используется для конфигураций, настроек и обмена данными в структурированной форме.
import yaml
data_to_write = {'name': 'John Doe', 'age': 30, 'city': 'Example City'}
with open('example.yaml', 'w') as file:
yaml.dump(data_to_write, file, default_flow_style=False)
with open('example.yaml', 'r') as file:
loaded_data = yaml.safe_load(file)
print(f"Загруженные данные: {loaded_data}")
Результат (файл example.yaml):
age: 30
city: Example City
name: John Doe
В этом примере мы используем PyYAML для записи словаря data_to_write в файл example.yaml и затем загружаем данные из этого файла обратно в переменную loaded_data.
Библиотека PyYAML предоставляет удобные средства для работы с данными в формате YAML в Python. Будь то сохранение конфигураций, обмен структурированными данными или другие сценарии, где YAML имеет преимущество, PyYAML обеспечивает легкость в использовании и читаемый код🐍
#python#yaml#pyyaml
✅ На этой неделе
✅ IT Global Meetup #12
📅 17 марта/ 11:00–18:00 (время МСК) / Санкт-Петербург, пр. Медиков д.3 к.1
💵 Бесплатно
📝 Регистрация тут: https://goo.gl/MmSrxw
Известнейшие сообщества Петербурга на одной площадке! PiterJS, UX SPb, SPb IT HR, SPb DotNet, SPb Open Data и другие уже заканчивают последние приготовления и ждут вас, чтобы обсудить последние тренды мира IT.
Фишкой дня станут дебаты на тему «Нужна ли типизация данных» между сообществами PiterJS и FProg. Будет жарко🔥
🔗 Программа: https://goo.gl/ReTGNF
#frontend#backend#js#DotNet#javascript#UX#testing#DevOps#python#HR#СанктПетербург
✅ GopherCon
📅 17 марта/ 09:00–22:00 (время МСК) / Москва, Волгоградский проспект, 42к5
💵 Платно
📝 Регистрация тут: https://goo.gl/p8ahNR
Первая конференция о разработке на Go в России!
Свежая инициатива для приверженцев Go, которая проводится в партнерстве с Gett, JetBrains, Google и другими интересными людьми.
🔗 Программа: https://goo.gl/jxzH1o
#backend#go#Москва
#javascript#erp#hacktoberfest#odoo#python
OCA/web offers 40+ free addons for Odoo 18 web interface, like dark mode, responsive design, custom calendars, notifications, charts, and tree view improvements with maintainers listed. All pass pre-commit, build, and translation checks, licensed AGPL-3.0 or per module. You gain easy UI enhancements to customize Odoo backend faster, boost usability on mobile/touchscreens, save time on exports/filters, and improve productivity without coding from scratch.
https://github.com/OCA/web
#python#adk#agent_samples#agents
The Agent Development Kit (ADK) offers ready-made sample agents in Python and Java to help you quickly build AI-powered agents for various tasks, from simple chatbots to complex multi-agent workflows. It supports flexible design, letting you combine multiple specialized agents, use diverse tools, and create adaptable workflows. ADK also includes developer tools for easy testing, debugging, and deployment, and works well with Google’s AI models and other large language models. Using these samples can save you time and effort by providing practical examples and a strong foundation to develop your own intelligent agents efficiently. This helps you focus on your agent’s logic while ADK handles orchestration and scaling.
https://github.com/google/adk-samples
https://github.com/mehrdadrad/pubdns
pubdns is a library for python to have more than 28K public #dns#servers from 190+ countries at your #python script. it works based on the public-dns.info collected data and there is a wrapper based on the dnspython to resolve all type of dns records through these public dns server smoothly.
#imp
#TimeSeries#Analysis#Python
⌚️
Forecasting Models and Time Series for Business in Python
Time Series Analysis in Python. Demand Planning & Business Forecasting. Forecast with 6 Models: Prophet, ARIMA & More.
-----
Main channel: @repo_science
Coupons: @freecoupons_reposcience
-----
#python#docker#react#webDevelopment
😎
React and Django A Practical Guide with Docker
In Django you will learn:
How to create APIs with Django Rest Framework
Use Docker
Create protected routes
Login with HttpOnly Cookies
Use APIViews, ViewSets, Generic API Views
Authorize users for different routes
Upload Images
Export CSV files
In React you will learn:
Create a React project with Typescript
Use Docker
Use Redux
Create public and private routes
Restrict routes for unauthorized users
Upload Images
Export CSV’s
Build a chart with c3.js (part of d3.js)
🔗Link
-----
Main channel:@repo_science
Coupons:@freecoupons_reposcience
-----
https://pypi.python.org/pypi/hyperledger/0.1.5
#Python#client for #Hyperledger.
This work is licensed under the Apache License, Version 2.0.
Hyperledger Project is a new Collaborative Project at The Linux Foundation. The technical community is just getting started and will be adding code to the repository in the coming weeks. Check hyperledger.org for more information about joining the mailing lists and participating in the conversations.
#Blockchains
#вакансия#machinelearning#ml#datascience#ds#python#middle#senior#nlp#asr#tts
Middle/Senior Machine Learning Engineer
Вилка: 3000–5500 евро (в зависимости от уровня)
📍Локации: Россия, СНГ, ЕС, Сербия, Турция
Компания: североамериканская компания, работающая на рынке VoIP-решений
Стек: Python, ML&DL, NLP, ASR, Speech synthesis (TTS), PyTorch/TensorFlow, HuggingFace, ONNX/TensorRT, NeMo, NumPy
Что предстоит делать:
— Разрабатывать решения в области речевых технологий — обработка аудио и речи (в оффлайн и потоковом режиме), анализ текста (суммаризация, поиск сущностей, классификация, выделение тем и т.д.), детектирование угроз (мошенничество, спам и т.д.).
— Быстро создавать прототипы решений и подстраивать их под бизнес-требования.
— Разрабатывать и оптимизировать ML-модели для распознавания речи, анализа текста и смежных задач.
— Взаимодействовать с проектным менеджером и продакт-лидом для преобразования бизнес-требований в технические решения.
— Следить за современными методами и исследованиями в области обработки речи и NLP.
— Участвовать в профессиональном развитии команды.
Будет существенным плюсом:
— Опыт работы с современными библиотеками обработки речи.
— Опыт конвертации/оптимизации/ускорения моделей с помощью TensorRT или аналогичных инструментов.
— Участие в ML-соревнованиях (Kaggle и др.).
Требования к английскому: уровень B1 и выше.
Позиция подразумевает участие во всех этапах разработки — от уточнения бизнес-требований до реализации продакшн-решений.
Контакт для связи: @sl_sergei
https://realpython.com/blog/python/introduction-to-mongodb-and-python/#.WMfv6BURLc4.linkedin
#Python is a powerful programming language used for many different types of applications within the development community. Many know it as a flexible language that can handle just about any #task. So, what if our complex Python application needs a #database that’s just as flexible as the language itself? This is where #NoSQL, and specifically #MongoDB, come in to play.
#python#glm#image2text#ocr
GLM-OCR is a top 0.9B-parameter model for accurate OCR on complex documents like tables, code, formulas, seals, and receipts, scoring 94.62 on OmniDocBench V1.5. Install via `pip install glmocr`, use cloud API (no GPU needed) or self-host with vLLM/SGLang for fast, low-cost inference, and get JSON/Markdown outputs easily via CLI or Python. You benefit from quick, robust document parsing that saves time, cuts compute costs, and integrates simply into your apps for real-world tasks.
https://github.com/zai-org/GLM-OCR