Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

PyOTP

Generate and validate one-time passwords (OTP) for two-factor authentication.

Auth and security librariesPYPI

GitHubWebsite

1. License

License from PyPI license expression.

github.com/pyauth/pyotp

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What PyOTP does

Generate and validate one-time passwords (OTP) for two-factor authentication.

PyOTP popularity

59 / 100
Gid Score, #1111 overall
11M
downloads a week, pypi
3,348
GitHub stars
8
agent projects use it
PyOTP: downloads per weekPyPI, pyotp 11,010,313
PyOTP: GitHub starspyauth/pyotp 3,348

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How PyOTP is used

  • PyOTP is a dependency in 8 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 77 projects, and what it is used with below comes from all of them.
  • The most used alternative in our scan is PyJWT (118 projects).
  • Projects that use it most often also use Requests (79.2%), cryptography (77.9%), python-dotenv (76.6%).

By coding agent

5 projects, 0.2%

Often used with

In 79.2% of its projects
In 77.9% of its projects
In 76.6% of its projects
In 64.9% of its projects
In 59.7% of its projects
In 53.2% of its projects
In 53.2% of its projects
In 51.9% of its projects

More about PyOTP

Funding
  • GitHub Sponsors: https://github.com/kislyuk

See all

More in Auth and security libraries

Alternatives

PyOTP This page

MITGid 5911M/wk

PyJWT

Python library for encoding and decoding JSON Web Tokens.

MITGid 74176M/wk

passlib

Comprehensive password hashing framework supporting 30+ algorithms and schemes.

BSDGid 647.9M/wk

python-jose

JOSE (JSON Object Signing and Encryption) implementation for Python.

MITGid 587.1M/wk

bcrypt (Python)

Modern password hashing library with secure bcrypt algorithm implementation.

Apache-2.0Gid 6641M/wk

Authlib

Ultimate Python library for building OAuth and OpenID Connect servers and clients.

BSDGid 7038.2M/wk

oauthlib

Comprehensive OAuth request-signing implementation for Python, handling authentication flows securely.

BSD-3-ClauseGid 6962.8M/wk

Compare PyOTP with another tool

Get started

Install it.

pip install pyotp

No step-by-step start for PyOTP yet: we have not written its hand-checked card.