sarumont / py-trello

Python API wrapper around Trello's API
BSD 3-Clause "New" or "Revised" License
945 stars 330 forks source link

Add module command for OAuth token #298

Closed bhrutledge closed 4 years ago

bhrutledge commented 4 years ago

i.e., python -m trello oauth

This allows creating an OAuth token from any virtual environment where this package is installed, whereas the prior instructions required executing the source code directly.

This could be improved by using argparse for command-line parsing and a help message. Happy to do that (and other improvements) if there's interest.