python

Back Open Paginator
13.08.2025 17:02
habr (@habr@zhub.link)

Автоматическая сортировка файлов на Python: из хаоса в порядок одной командой

Привет, Хабр! Думаю, всем знакома ситуация: десятки файлов на рабочем столе, сваленных в единую кучу. Скрины, документы, архивы - и всё в одном рабочем пространстве. Наводить порядок не всегда получается, а жить в беспорядке не очень удобно. Недавно, в процессе наведения порядка, я утомился делать это руками и написал скрипт на Python, который структурирует и раскидает всё по папкам самостоятельно. Скрипт в статье: - Автоматически сортирует файлы по 9 категориям - Поддерживает 50+ форматов файлов - Предоставляет гибкие настройки

habr.com/ru/articles/935560/

#Автоматизация #сортировка #python #скрипт #script




Show Original Post


13.08.2025 16:46
djangocon (@djangocon@fosstodon.org)

🎉 Meet Keanya Phelps, our DjangoCon US 2025 Conference Chair!

2025.djangocon.us/news/confere

💫 A mid-life career changer who found her tech community through Django
🌟 Passionate about creating inclusive spaces where everyone feels seen & supported
🏙️ Bringing Chicago's energy, grit & creativity to DjangoCon US 2025!

📅 September 8-12, 2025 | Chicago, IL
🎟️ Get your tickets now!

"Come as you are - you belong here!" - Keanya 💙

#DjangoCon #Python #Django #Community #Inclusion #Chicago




Show Original Post


13.08.2025 16:33
ginimod (@ginimod@mastodon.social)

La Culture Lokono (Arawak)
inimod.org/graphestellar/lokon





Show Original Post


13.08.2025 16:32
clonbg (@clonbg@masto.es)

Mi primer CRUD con Python myblog.clonbg.es/mi-primer-cru #Programación #Python #PyQT clonbg.es





Show Original Post


13.08.2025 16:29
ginimod (@ginimod@mastodon.social)

Une repésentation sous forme de graphe des SkyCultures de Stellarium

inimod.org/graphestellar-une-e





Show Original Post


13.08.2025 16:05
content (@content@socialhome.network)

Building better APIs: from Django to client libraries with OpenAPI

tl;dr

A summary of resources and learnings related to building REST API I put together over the last couple of years. Complete API development workflow from Django backend to frontend clients using Django REST Framework, drf-spectacular for OpenAPI spec generation, and automated client generation with openapi-generator. Big productivity boost!

There is a lot of discussion about frameworks for building REST APIs, some of them being even able to generate OpenAPI specs directly for you. Django is not quite known for that, but there are ways of doing this by automating most of the process while being very productive and offering your team a clean developer experience.

Overview

The stack I prefer makes use of several additional modules you will require: django-rest-framework and drf-spectacular alongside Django. REST Framework helps you extend your application in order to have a REST API, while drf-spectacular will help you the ability to generate the OpenAPI spec (standalone post: Create OpenAPI spec for Django REST Framework APIs.

After having the OpenAPI spec, you can generate clients with openapi-generator. Here is an example I mapped out of generating an Angular client:

Step-by-step process

There is also a recording from my GLT 2025 talk where I summarize most of these ideas.

<figure> <figcaption>Building Better APIs - From Django to Client Libraries with OpenAPI</figcaption> </figure>

In case you want to follow along, here is a step-by-step guide from the repository I showed during the presentation:

From the last step, you can generate the API clients for the platform you require. You can follow the README and the examples available in my glt25-client repository.

Maintaining compatibility over time

The final tool you can use is openapi-diff, which will help you keep your documentation compatible. This is very important once your REST API is used in production:

Example of a compatible change: glt25-demo v1 to v2

docker run --rm -t openapitools/openapi-diff:latest https://github.com/nezhar/glt25-demo/releases/download/v1/openapi.yaml https://github.com/nezhar/glt25-demo/releases/download/v2/openapi.yaml

Example of a breaking change: glt25-demo v2 to v3

docker run --rm -t openapitools/openapi-diff:latest https://github.com/nezhar/glt25-demo/releases/download/v2/openapi.yaml https://github.com/nezhar/glt25-demo/releases/download/v3/openapi.yaml

Automating the maintenance

The process can be automated even further using GitHub Actions and Dependabot. Here are what the steps look like with this full continuous delivery setup:

Takeways

Building a complete API development workflow from Django to client libraries using OpenAPI creates a powerful and maintainable development experience. By combining Django REST Framework with drf-spectacular for automatic OpenAPI spec generation and openapi-generator for client creation, you can eliminate manual API documentation and reduce integration errors.

If you want to go even further, you can automate the integration of error codes inside the OpenAPI spec. This way you can better support languages that are even more strict when consuming the REST API!

Thank you to Harald Nezbeda for proposing this guest post on the Django blog!

https://www.djangoproject.com/weblog/2025/aug/13/building-better-apis-django-to-clients-openapi/

#django #python #webdev





Show Original Post


13.08.2025 16:04
fink (@fink@chaos.social)

Automated build, version bump, changelog generation for a #python package on #forgejo with #cocogitto:

git.h.oluflorenzen.de/finkregh

A #prometheus exporter for #immich
Blog post soon…




Show Original Post


13.08.2025 16:00
leanpub (@leanpub@mastodon.social)

Practical MCP: A Python Developer's Guide by Arjuna Sky Kok is on sale on Leanpub! Its suggested price is $29.00; get it for $9.50 with this coupon: leanpub.com/sh/XaLBNnC5




Show Original Post


13.08.2025 15:45
lobsters (@lobsters@mastodon.social)

Starting with pytest’s parametrize via @kngl lobste.rs/s/rna1d1
nedbatchelder.com/blog/202508/




Show Original Post


13.08.2025 15:37
zopyx (@zopyx@mastodon.world)

This screencast shows the result of a one day vibe coding session with #PyCharm #Junie and GPT-5...a small PoC for monitoring URLs, their response time and cert validity.

The complete #Python codebase has been generated. I did not touch a single line of code.

91% test coverage. The backend is backed by Sqlite...and it has a dark mode :)

Current project name is "Endpoint Pulse".

The primary purpose was building a PoC using vibe coding...I see some personal usecases for my own domains.





Show Original Post


13.08.2025 15:22
habr (@habr@zhub.link)

Голос клиента на автомате: разбираем, как анализировать звонки с помощью речевой аналитики и LLM

Привет, Хабр! Это Катя Саяпина, менеджер продукта МТС Exolve. Самую честную обратную связь бизнес получает не из опросов, а из живых разговоров — когда клиент сам звонит и рассказывает, что его раздражает, что не работает или чего не хватает. Мы хотим извлекать эту ценность автоматически. Сегодня покажу, как собрать простую систему фонового анализа звонков. Она забирает расшифровки разговоров через API МТС Exolve, отправляет их в GigaChat для обработки, а результаты сохраняет в базу SQLite.

habr.com/ru/companies/exolve/a

#api #llm #гигачат #python #обратная_связь #поддержка_клиентов #анализ_звонков #распознавание_речи #нейросети #виртуальная_атс




Show Original Post


13.08.2025 15:15
pycharm (@pycharm@techhub.social)

Lightning-Fast Python: Mastering the uv Package Manager
#Livestreams #Pycharm #Python #Uv

blog.jetbrains.com/pycharm/202




Show Original Post


1 ...1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 ...1547
UP