Async I/O in Zig 0.16, today

Zig 0.16 shipped last month with std.Io, a cross-platform interface for I/O and concurrency. This is a big step for the ecosystem. Libraries can now be written against a standard I/O abstraction, independent of the runtime, and application developers can plug in whatever implementation they want.

Lukáš Lalinský

Took some time to debug, but passing an asyncio.StreamWriter instance to a coroutine executed as a task (either as argument or in a closure) will close the writer. 🤷

Anyway, streaming HTTP message handling matures. SteamReader and StreamWriter of a request connection now get wrapped in custom Decoder/Encoder instances to implement content and transfer encodings (deflate, gzip, chunked, and plain old content-length).

#python3 #asyncio #streams #rfc9110 #rfc9112 #serversentevents

HTTPX2 by Pydantic

HTTPX2는 Python 3용 차세대 HTTP 클라이언트로, 동기 및 비동기 API를 모두 지원하며 HTTP/1.1과 HTTP/2 프로토콜을 지원합니다. 기존 HTTPX 프로젝트를 기반으로 Pydantic Services가 유지보수를 이어받아 안정성과 보안 업데이트를 제공하며, requests와 호환되는 API와 WSGI/ASGI 직접 요청 기능 등 다양한 기능을 갖추고 있습니다. Python 3.9 이상에서 사용 가능하며, HTTP/2, brotli, zstd 등 선택적 기능도 제공합니다.

https://httpx2.pydantic.dev/

#python #httpclient #http2 #asyncio #pydantic

HTTPX2

A next-generation HTTP client for Python.

Show HN: One-shot NAT traversal library

Warpgate는 Python 3 기반의 100% 오픈소스 원샷 NAT 트래버설 라이브러리로, Windows XP부터 최신 OS까지 IPv4/IPv6 및 멀티 NIC를 지원합니다. 8가지 플러그인으로 다양한 NAT 환경을 자동 탐지하고 우회하며, 별도의 키 관리나 유료 서비스 없이 MIT 라이선스로 제공됩니다. 자체 신호 교환, STUN, TURN, 네임 레지스트리, 모니터링 등 공용 인프라를 커뮤니티가 운영하며, 네트워크 프로그래밍을 간소화하는 완전한 비동기 API를 갖추고 있습니다. 상용 및 임베디드 환경에 모두 적합하며, 개발자가 직접 플러그인을 추가해 맞춤형 NAT 우회 전략을 구현할 수 있습니다.

https://warpgate.io/

#nattraversal #python #networking #asyncio #opensource

Warpgate

Okay! I think I have my audio issues sorted out!

In just a few minutes I'll be streaming over at https://www.twitch.tv/srilyk

Join me there as I re-learn #asyncio in Python! I know a bunch, generally and some specifically, about #async in #python

From #threading to #multiprocessing, and #polling and #sockets

Join me as I refresh my memories and learn about the current state of asyncio in Python!

srilyk - Twitch

srilyk streams live on Twitch! Check out their videos, sign up to chat, and join their community.

Twitch

Typing Some Python Quirks

파이썬으로 작성된 XMPP 클라이언트 Poezio의 타입 힌팅 작업 경험을 공유하며, 특히 asyncio와 데코레이터를 함께 사용할 때 발생하는 타입 문제와 이를 해결하기 위한 PEP 612의 ParamSpec, TypeVar, @overload 활용법을 상세히 설명한다. mypy의 엄격 모드에서 발생하는 오류를 줄이기 위한 점진적 타입 적용 과정과, 비동기 함수와 일반 함수 모두를 지원하는 데코레이터 타입 지정의 어려움 및 해결책을 다룬다. 또한, 함수 인자 변환을 위한 데코레이터 작성 시 Concatenate를 이용한 타입 안전한 구현 방법과 Python 3.12에서 도입된 TypedDict, Unpack 활용 가능성도 언급한다.

https://blog.mathieui.net/typing-python-quirks.html

#python #typing #asyncio #mypy #decorators

Typing some python quirks

Taskiq – distributed task queue for Python

Taskiq는 Python용 비동기 분산 작업 큐 라이브러리로, Celery와 Dramatiq에서 영감을 받았으며 동기 및 비동기 함수 모두를 지원합니다. FastAPI, AioHTTP 같은 인기 비동기 프레임워크와 통합되며, 다양한 브로커(NATS, Redis, RabbitMQ, Kafka 등)를 통해 작업을 분산 처리할 수 있습니다. 타입 힌팅과 PEP-612 기반 자동완성 지원으로 개발 편의성을 높였고, 작업자 핫 리로드 및 파일 시스템 자동 탐색 기능도 제공합니다. Python 비동기 작업 큐가 필요한 AI 서비스 백엔드나 ML 파이프라인 작업 분산에 즉시 활용할 수 있는 실용적 도구입니다.

https://github.com/taskiq-python/taskiq

#python #distributed #taskqueue #asyncio #fastapi

GitHub - taskiq-python/taskiq: Distributed task queue with full async support

Distributed task queue with full async support. Contribute to taskiq-python/taskiq development by creating an account on GitHub.

GitHub

Меня раздражает, как объясняют асинхронность

Если что такое параллелизм более-менее все разработчики понимают, то объяснение асинхронности через аналогии с кассирами/поварами вредно, так как вводит в очень большое заблуждение. В данной статье я разберу эту проблему на примерах Python и Go и попробую дать свою правильную аналогию.

https://habr.com/ru/articles/1033914/

#Python #Go #Backend #Asyncio #multithreading #gorutines

Меня раздражает, как объясняют асинхронность

Если что такое параллелизм более-менее все разработчики понимают, то объяснение асинхронности через аналогии с кассирами/поварами не ложно, но, как мне кажется, вредно, так как вводит в очень большое...

Хабр

⚔️ FastAPI WebSockets: Async Connections, Scaling, The Multi-Worker Nightmare (2026)

FastAPI WebSockets crash silently in production due to unmanaged stateful connections.

Read more: https://logicandlegacy.blogspot.com/2026/05/fastapi-websockets-async-connections.html?utm_source=mastodon&utm_medium=social&utm_campaign=dharma_engine

#fastapi #websockets #asyncio

FastAPI WebSockets: Async Connections, Scaling, The Multi-Worker Nightmare (2026)

FastAPI makes WebSockets look easy, but scaling them across multiple workers is a nightmare. Learn how to handle async connections, auth, and Redis

So hey, I think I'm back?

Looks like I have at least some things setup to #stream on #twitch over at https://www.twitch.tv/srilyk

I'll be streaming about #async in #Python -- going through a few things that I know, and then back into the whole world of #asyncio, which it has been a hot minute!

Join me?

 Boosts welcome!

srilyk - Twitch

srilyk streams live on Twitch! Check out their videos, sign up to chat, and join their community.

Twitch