skillfed

types-Authlib

Typing stubs for Authlib

types-authlib v1.7.2.20260814 1.1M downloads/30d#4,398 on PyPI37
Permissive license Apache-2.0 Active released

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-authlib

uv

uv add types-authlib

poetry

poetry add types-authlib

Installing 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

Programming Language :: Python :: 3Typing :: Stubs Only

Tags

authlib type stubstype checking authlibauthlib typing annotationsstatic type checking oauthauthlib mypy supportauthlib pyright stubstype hints for authlib
type-stubstype-checking

More Software Development packages