NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI, #561 most downloaded on PyPI
Python One Time Password Library
Latest stable
2.12.1
Last release 3 days ago
19 Nov 2026
Release timing varies
gaps range from 3 months to 2.9 years
Most releases are documented
notes for 20 of 29 stable releases
Nothing withdrawn
no release was ever pulled
15 years old
29 releases · first in 2011
Drag across the ruler to compare, or tap a release to open it.
Allow subclasses to override minimum secret length
Require 112-bit OTP secrets and update illustrative examples
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Validate OTP configuration and URI parameters
Fix PyPI README markup and validate distributions before release
Fix parse_uri mis-parsing of encoded colon in issuer/account name
Add parse_uri() support for Steam TOTP
Add parse_uri() support for Steam TOTP (#153)
Test and documentation improvements
Modify OTP generation to run in constant time
Modify OTP generation to run in constant time (#148)
Documentation improvements
Drop Python 3.6 support; introduce Python 3.11 support
Build, test, and documentation updates
Support Steam TOTP (#142)
Raise default and minimum base32 secret length to 32, and hex secret length to 40 (160 bits as recommended by the RFC) ( #115 ).
parse_uri accepts and ignores optional image parameter
Add optional image parameter to provisioning_uri
parse_uri: Fix handling of period, counter
parse_uri: Fix handling of period, counter (#108)
TOTP.timecode() (#107)Add support for parsing provisioning URIs
Fix data type for at(for_time) (#85)
Add support for parsing provisioning URIs (#84)
Raise error when trying to generate secret that is too short (The secret must be at least 128 bits)
Add random_hex function (#82)
Fix comparison behavior on Python 2.7
Fix comparison of unicode chars
Fix comparison of unicode chars (#78)
Minor documentation and test fixes
Have random_base32() use 'secrets' as rand source
Have random_base32() use 'secrets' as rand source (#66)
Documentation: Add security considerations, minimal security checklist, other improvements
Update setup.py to reference correct license
Fix tests wrt double-quoting in provisioning URIs
Quote issuer QS parameter in provisioning_uri. Fixes #47.
Quote issuer QS parameter in provisioning_uri. Fixes #47.
Raise an exception if a negative integer is passed to at() (#41).
Documentation and release infrastructure improvements.
Restore Python 2.6 compatibility (however, Python 2.6 is not supported)
Avoid using python-future; it has subdependencies that limit compatibility
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.