avian2 / unidecode

ASCII transliterations of Unicode text - GitHub mirror
https://pypi.python.org/pypi/Unidecode
GNU General Public License v2.0
525 stars 62 forks source link

Add __main__.py file so the CLI can be executed as a module #43

Closed jdufresne closed 5 years ago

jdufresne commented 5 years ago

Allows running the following command to execute the CLI

 $ python -m unidecode ...

https://docs.python.org/3/library/__main__.html

For a package, the same effect can be achieved by including a main.py module, the contents of which will be executed when the module is run with -m.

avian2 commented 5 years ago

Hey. Thanks again for all the clean up pull requests you made recently. They are all merged into master now. I really appreciate the effort.