Skip to content

jaraco/oathtool

Repository files navigation

tests Ruff https://img.shields.io/badge/skeleton-2024-informational

TOTP code generator based on oathtool.

Usage

Command-line:

$ python -m oathtool $key

API:

>>> oathtool.generate_otp(key)

Create standalone script (Unix):

$ python -m oathtool.generate-script
$ ./oathtool $key

Don't want to install oathtool, but just want the script? Use pip-run:

$ pip-run oathtool -- -m oathtool.generate-script
$ ./oathtool $key

generate-script also takes an arbitrary target path in case you wish to generate the script elsewhere:

$ python -m oathtool.generate-script ~/bin/my-oathtool

Or install with pipx:

$ pipx install oathtool
$ oathtool $key

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages