This is a type stub package for the Authlib library, providing static type checking for Authlib code. As part of the typeshed project, it's automatically released up to once a day. This version of types-Authlib aims to provide accurate annotations for Authlib==1.6.9. [9, 8, 23]
pip install types-authlibVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates setting up an Authlib OAuth client using Flask integration. While it's a runtime example for Authlib, its purpose here is to show code that `types-authlib` would type-check. You must install `Authlib` (e.g., `pip install Authlib Flask`) and optionally `python-dotenv` for environment variables, in addition to `types-authlib`.
Ensure both `Authlib` and `types-authlib` are present in your project's dependencies.
Align the major and minor version of `types-authlib` with your `Authlib` installation (e.g., `pip install 'Authlib==1.6.*' 'types-Authlib==1.6.*'`).
Consider pinning the version of `types-authlib` in your `requirements.txt` or `pyproject.toml` to ensure consistent type checking results across environments.
Ensure your project is running on Python 3.10 or newer.
Refer to the Authlib changelog for breaking changes (e.g., `docs.authlib.org/en/latest/history.html`) and update both `Authlib` and `types-Authlib` accordingly.