Open JackKelly opened 1 year ago
The maturin docs contain this relevant info, about lines to add to pyproject.toml
:
Pip allows adding so called console scripts, which are shell commands that execute some function in your program. You can add console scripts in a section
[project.scripts]
. The keys are the script names while the values are the path to the function in the formatsome.module.path:class.function
, where theclass
part is optional. The function is called with no arguments. Example:[project.scripts] get_42 = "my_project:DummyClass.get_42"
So
pip install
installs the cli. So it's available from all paths.