Skip to main content

One-time password generator

Project description

https://img.shields.io/pypi/v/oathtool.svg https://img.shields.io/pypi/pyversions/oathtool.svg tests Code style: Black https://img.shields.io/badge/skeleton-2021-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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oathtool-2.3.1.tar.gz (7.5 kB view hashes)

Uploaded source

Built Distribution

oathtool-2.3.1-py3-none-any.whl (6.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page