Reputation: 5119
Not sure how to phrase this question, but what i want is similar to what azure-cli does:
pip install azure-cli
)az
utility is available at the command line. You can use az configure
and not something like python az configure
. How can you incorporate this in your own package?
Upvotes: 0
Views: 60
Reputation: 2232
To achieve that you can add entrypoints
argument to your setup.py
call:
entrypoints={'console_scripts': ['az = my_package.some_module:main_func']}
See also the setuptools documentation.
Upvotes: 1