Skip to main content
https://img.shields.io/pypi/v/oathtool.svg https://img.shields.io/pypi/pyversions/oathtool.svg tests Ruff https://img.shields.io/badge/skeleton-2025-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

Metadata

Release files for oathtool 2.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oathtool 2.4.0
File Size Uploaded
oathtool-2.4.0.tar.gz 9.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for oathtool 2.4.0
File Interpreter ABI Platform
oathtool-2.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.6 kB

Release files / oathtool-2.4.0.tar.gz

Download URL oathtool-2.4.0.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
43c0dc143d8ddf4805f0b000a8af78661a480f847f647c6cc403b407d9671138
BLAKE2b-256 checksum
How to use checksums
3680d3a48e04d3092c3bbc88975d0a04974d0d9d3bd11b171e7fb45ea31974b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / oathtool-2.4.0-py3-none-any.whl

Download URL oathtool-2.4.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b49e35c220e591541e656dfd775cfabdb35e5664b1d0823b43f136510aeceb9
BLAKE2b-256 checksum
How to use checksums
7d778037c321fd2931bbd6ed654a3d083e06ac28adec680bffb001a624e844d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

2.4.0 This release

2 release files

2.3.3

2 release files

2.3.2

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page