
Hatch - a great python project management tool
Hatch is a python packaging tool. Useful for building python projects. Out of the box it supports testing, building, managing dependencies, and linting/formatting support.
https://wwww.hatch.pypa.io/latest.intro
New Project
hatch new “Hatch Demo”
Adding to Existing Project
hatch new –init
Build a project
hatch build
Test a project with coverage
hatch test –cover
Running static analysis
hatch fmt
Open a shell in the project to run scripts
hatch shell
Create a python virtual env
python3 -m venv /tmp/hatch_demo/
Switching to virtual environment
source /tmp/hatch_demo/bin/activate
Open VScode in a hatch virtual environment
source /tmp/hatch_demo/bin/activate code .
Prune hatch environments - useful for clearing caches
hatch evn prune
List hatch evn
hatch env show
Running a specific cript in the project
[project.scripts] script_name = “packagename.package2.script_name:method_name”