Open maerteijn opened 4 years ago
You can define a __main__.py module to enable invoking the package by name (e.g., python -m apistar).
__main__.py
python -m apistar
# apistar/__main__.py from .cli import cli if __name__ = '__main__': cli()
I know, but just adding this two lines means no new file and does the job.
You can define a
__main__.py
module to enable invoking the package by name (e.g.,python -m apistar
).