github.com/aiokitchen/aiomisc

aiomisc - miscellaneous utils for asyncio

Open this visualization on its own page →

Contributors

15

Lines of Code

992

From

2018-04-13

To

2020-11-24

About aiokitchen/aiomisc

aiomisc is a Python library that provides utility functions and classes for building asynchronous applications with asyncio. It addresses the boilerplate and infrastructure challenges that developers face when creating production-ready async code by offering built-in solutions for logging, graceful shutdown, thread pools, error handling, and service management.

The library includes several powerful features designed to make asyncio applications more robust and maintainable. These include worker pools, connection pools, circuit breaker patterns, and retry mechanisms like asyncbackoff and asyncretry. The core abstraction is a Service class that handles lifecycle management through start and stop methods, allowing developers to focus on business logic rather than infrastructure concerns. The library comes with pre-built services for common use cases such as AIOHTTPService, ASGIService, TCPServer, UDPServer, TCPClient, PeriodicService, and CronService.

aiomisc is designed for developers building production asyncio applications who want to reduce boilerplate and complexity. It can be installed from PyPI with optional extras for integrations with popular frameworks like aiohttp, ASGI servers, uvicorn, uvloop, and monitoring tools like Sentry and Graphite. The project is actively maintained, follows semantic versioning, and uses Poetry for dependency management with contributions welcomed from the community.

Share this video