--- id: types-authlib version: "1.7.2.20260814" license: Apache-2.0 license_treatment: permissive maintenance: active --- # types-Authlib — Typing stubs for Authlib License: permissive · Maintenance: active · Downloads: 1.1M/mo ## 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 above — 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 pip install types-authlib uv add types-authlib 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_current - Install friction: low - Maintenance: active - Downloads: 1.1M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags authlib type stubs, type checking authlib, authlib typing annotations, static type checking oauth, authlib mypy support, authlib pyright stubs, type hints for authlib, type-stubs, type-checking [View on SkillFed](https://skillfed.io/packages/types-authlib) · [View on PyPI](https://pypi.org/project/types-authlib/)