This is an example package that demonstrates how to use imports properly in a project with modules, tests and scripts.
To set up the environment, install poetry. Then just run:
poetry install
Run tests by:
poetry run pytest tests
Run script by:
poetry run python scripts/script.py