Welcome to the Python Sourdough starter ❤️
This template repository relies on a number of dependencies that you will need before you start developing your application
- Python (duh). You will need a base python interpreter in order to run this project
- PyEnv. Optional, but very useful as a layer on top of your base interpreter to provide seamless version management.
- Poetry. Python dependency manager
- Changie. (Optional) Automated CHANGELOG management
- Just. (Optional, but highly recommended) Just a command runner
- Docker. Used to provision local infrastructure
- Act (Optional) Allows you to run GitHub Actions locally to debug pipeline issues
Once you have installed the pre-requisites, you are ready to start running the app locally.
Go ahead and run
just setup
The first command will install all dependencies, while the second will install the pre-configured git hooks to ensure that your code is linted and formatted prior to pushing.
To run the API
just api
This will launch your shiny new API ✨ head on over to localhost:8080/docs
and you should be greeted with beautiful,
autoconfigured API documentation
To run the CLI
just cli --help
Tests are managed via pytest, and are set up to be run via
just test
For additional available commands, run
just --list