matgrioni / betacode

A small python package to flexibly convert from betacode to unicode and back.
MIT License
20 stars 2 forks source link

Add CLI commands to the package #13

Open andredelft opened 2 years ago

andredelft commented 2 years ago

Hi!

Thanks for this great package! I use it a lot, and thought it might be helpfull to use it directly from the terminal, to improve my workflow. I therefore created the two terminal commands beta-to-uni and uni-to-beta using click. I have created this PR to share this with you, should you be interested in it as well! Please refer to the added section in the README for instructions.

Best,

André

matgrioni commented 2 years ago

Thanks André for the PR! Glad to know this has been helpful to you.

To me it looks like a good direction. I think it should be taken. I am thinking of moving this project to poetry to make it easier to support packaging and releases. In which case poetry supports cli commands and doesn't seem interoperable with click so I'd likely have to move move to that. But for now, this is a good addition and hope it simplifies things for you.

andredelft commented 2 years ago

Thanks for the feedback, I will soon take the time to process it.

As for your comment regarding poetry: I'm not very experienced with it, but poetry supports a scripts section in pyproject.toml. Perhaps this can be used as an equivalent to the entry_points from setup.py.