A collection of opinionated methods, functions, classes and utils for Python, FastAPI and related libraries.
Supports Python 3.11 and newer. Local development defaults to Python 3.12 via .python-version.
pip install tunsbergThis project uses uv. After cloning:
uv sync --group dev
uv run pre-commit installWhen you change dependencies in pyproject.toml, refresh the lockfile and commit it:
uv lockSee the docs index for responses, konfig, and utsikten.
uv run pytestLint and format:
uv run ruff check
uv run ruff format- Bump
__version__intunsberg/__init__.pyonmain. - Create a GitHub release whose tag matches that version (for example
0.4.0, orv0.4.0). - The release workflow validates the tag against
__version__, builds, and publishes to PyPI.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.