@user it's called a
script; if you're using setuptools (with a
setup.py
), follow the guide I linked exactly; if you're using another tool (e.g. Poetry (<3)) then you need to check its documentation for setting up entry points and use
console_scripts
as described in that guide