Simple aiohttp-based webservice template. Extendable. Scalable.
Webserver and client are based on aiohttp.
Service for cache and states based on redis.asyncio
Telegram API client based on aiogram v3
- ready for polling/webhook update listening mode
You easily can add any other service :)
- pydantic settings – ready to read .env / docker secrets
- uvloop – speed up asyncio event loop
- msgspec – speed up json (de)serialization
- backoff – retry on network and other failures
Example of .env config located in /examples folder.
Copy it to the root of the project or copy into your app manager (e.g. portainer)
Don't forget to edit it :)
python -m app
docker-compose up -d