graceful-shutdown
Type-hint based dependency injection for async Python: client lifecycle, jobs and workers with graceful shutdown, FastAPI and pytest integration
Batteries-optional microservice runtime for async Python: one Host, many Entrypoints (FastAPI, gRPC, Litestar, scheduler, daemon, one-shot) under a single Kubernetes-correct lifecycle
Context manager that provides simple graceful shutdown interface for your asyncio tasks.
Create atomic loop iterations (let the current iteration finish even when interrupted)