Hacker News new | ask | show | jobs
by TelonAlex 1092 days ago
The cli tool [fire](https://github.com/google/python-fire/blob/master/docs/guide...) has a nifty feature where it can generate a cli for any file for you.

So random and math are somewhat usable that way

    $ python -m fire random uniform 0 1
    0.5502786602920726

    $ python -m fire math radians 180
    3.141592653589793

    $ python -m fire math e
    2.718281828459045
Just running

    $ python -m fire random
will give you a nice "manpage" for your module as well.