Initial release
First tagged release of python-backend.
What's included
- FastAPI 0.115 app with
lifespanevent hooks - Health-check endpoints at
/healthand/api/v1/health - Structured logging via stdlib
logging - Pydantic v2 +
pydantic-settingsconfiguration with env-driven defaults - pytest test suite (3 tests, all passing)
- Ruff 0.8 for lint + format
- mypy 1.14 for type checking
- GitHub Actions CI on Python 3.11 and 3.12
- Dependabot for pip + github-actions
- Multi-stage Dockerfile (non-root user + healthcheck)
- README, CONTRIBUTING, CODE_OF_CONDUCT, SECURITY, CHANGELOG
- Branch protection on
main(PR required, linear history, no force-push)
API endpoints
| Method | Path | Description |
|---|---|---|
| GET | / |
Root — service info |
| GET | /health |
Public health check |
| GET | /api/v1/health |
Versioned health check |
| GET | /docs |
Swagger UI |
| GET | /redoc |
ReDoc UI |
| GET | /openapi.json |
OpenAPI schema |
Install and run
git clone https://github.com/mohit-tanwar-dev/python-backend.git
cd python-backend
pip install -r requirements-dev.txt
uvicorn app.main:app --reloadOr with Docker:
docker build -t python-backend:0.1.0 .
docker run --rm -p 8000:8000 python-backend:0.1.0Changelog
See CHANGELOG.md.