this repo is a POC of a python project composed by multiple modules, with shared code (the module_common dir).
Poetry was used as a dependency management tool.
use
$ pytests
to easily run all tests.
module_a contains the main entrypoint of the app
uvicorn module_a.app.main:app --reload
this will record the module into pyproject.toml
poetry new microservice-a
you can use uv to create a new venv
# On macOS and Linux.
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv
you can then enter the venv using poetry
poetry shell
poetry build
The build command builds the source and wheels archives.
poetry add requests pendulum
poetry install