types-Authlib
Typing stubs for Authlib
What it is and what it does
types-Authlib is a type stub package that provides type annotations for the Authlib authentication library. It allows Python type checkers like mypy, pyright, and others to understand and validate code that uses Authlib, catching type errors at development time rather than runtime. The stubs are maintained as part of the typeshed project and are tested against multiple type checkers.
This package is purely for static analysis—it does not provide runtime functionality. You install it alongside Authlib to enable type checking in your IDE and CI/CD pipelines. It depends on cryptography as a runtime dependency and requires Python 3.10 or later.
Use it for:
- Enable mypy or pyright to type-check code using Authlib for OAuth/OpenID Connect flows.
- Catch type errors in authentication middleware before deployment.
- Provide IDE autocomplete and type hints for Authlib's API in editors like VS Code.
- Validate custom Authlib integrations in a typed codebase.
- Support strict type checking in CI/CD pipelines for projects using Authlib.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for Authlib, enabling static type checkers to validate code that uses the Authlib authentication and authorization library.
Yes, if you use Authlib and want static type checking. The package is actively maintained, has no known vulnerabilities, and installs with minimal friction. It's part of the official typeshed project and tested against current type checkers. Install it if type safety is a priority in your project.
Install
types-authlib on PyPI
pip
pip install types-authlibuv
uv add types-authlibpoetry
poetry add types-authlibInstalling types-Authlib
Before you install
Low friction install with a single runtime dependency on cryptography. Actively maintained as part of the typeshed project with recent releases.
License in practice
Apache-2.0 permissive license allows use in most projects without significant restrictions.
Quickstart
pip install types-authlib
# In your code, use Authlib normally; type checkers will now understand it:
import authlib.integrations.httpx_client
# Run your type checker:
mypy your_code.py
Requires Python 3.10 or later.
Verify before relying
- Whether the stubs cover all Authlib 1.7.2 APIs or only a subset.
- Compatibility with Authlib versions other than 1.7.2.
- Whether cryptography is only a transitive dependency or actively used by the stubs.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — cryptography |
| Maintenance | actively maintained — 0 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,079,844/month — #4,398 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_authlib-1.7.2.20260814-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-oauthlibProvides type stubs for the oauthlib package,…
permissive · top 5,000 on PyPI
types-httplib2Provides type stubs for the httplib2 HTTP…
permissive · top 5,000 on PyPI
types-pyinstallerProvides type stubs for pyinstaller, enabling…
permissive · top 15,000 on PyPI
types-boltonsProvides type stubs for the boltons library,…
permissive · top 15,000 on PyPI
types-mypy-extensionsProvides type stubs for mypy-extensions,…
permissive · top 15,000 on PyPI
types-geventProvides type stubs for the gevent library,…
permissive · top 15,000 on PyPI
types-requests-oauthlibProvides type hints for requests-oauthlib,…
permissive · top 15,000 on PyPI
types-auth0-pythonProvides type stubs for auth0-python 4.10.x,…
permissive · top 15,000 on PyPI
types-setuptoolsProvides type annotations for the setuptools…
permissive · top 1,000 on PyPI
types-grpcioProvides type stubs for the grpcio package,…
permissive · top 5,000 on PyPI