Skip to content

kimymania/tokem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tokens Repository Manager

A CLI application for keeping track of currently used tokens and their expiry dates

The Motivation

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.

Usage

View database:

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

Add tokens to database:

tokem add

You 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).

Remove tokens:

tokem remove

The program will display the list of tokens, and you may choose which tokens to delete by selecting and typing the corresponding token IDs

Clear database:

tokem clear

In case you wish to wipe the database clean of all data, the clear command is provided.

Implementation Details

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

About

CLI tool for managing access tokens

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages