A CLI application for keeping track of currently used tokens and their expiry dates
We developers have to handle many access tokens, and while it is convenient to set the expiry date to never and continue our lives, it isn't recommended for security reasons, obviously. So we end up having a bunch of tokens with different expiry dates from different providers. So I created this simple CLI application to help manage the lifespans of these access tokens in one place, and give me reminders of upcoming expiry dates.
tokem [view]tokem without any commands by default displays the current database state. For your convenience, the tables are restricted to ID, Name, Provider, Consumer, Date until expiry. If you wish to see the exact creation date and expiry date as well, use the -e or --explicit argument along with the view command like so: tokem view -e
tokem addYou will be prompted to give a Name (identifier for you to distinguish tokens with), a Provider (token origin), a Consumer (the place where the token is used), a creation date formatted in YYYY-MM-DD, and an expiry date (in days).
tokem removeThe program will display the list of tokens, and you may choose which tokens to delete by selecting and typing the corresponding token IDs
tokem clearIn case you wish to wipe the database clean of all data, the clear command is provided.
This app uses SQL for storing data - the DB file will be created when the app is first run
Internals are built with argparse and rich to minimize dependencies