This is a template for an API webservice in Python.
- Rename the
.env-exampleto.envand specify values for environment variables - Load environment variables use
direnv allowin the project's directory - Make sure that you have python and uv installed with
asdf install - Install project dependencies with
make venv && make deps - Start PostgreSQL container with
make containers_up - Migrate database with
make migrate_up - Run tests with
make test_once, run server withmake server
To achieve 2–5 times better performance for network and database operations, the project uses the following standard library replacements:
- uvloop - libuv-based asyncio event loop
- asyncpg - async postgresql driver
- orjson - serialize log records to JSON with C-speed
Copyright © 2026 Ivan Rublev.
This project is licensed under the MIT license.