Authlib is the ultimate Python library for building OAuth and OpenID Connect servers. With low level specifications implementations to high level frameworks integrations, Authlib is designed to meet the needs of everyone. Authlib is compatible with Python3.6+. The User’s Guide provides background information about Authlib, installation details, and explanation of OAuth 1.0, OAuth 2.0, and JOSE. It also shows implementation in frameworks and libraries like Flask, Django, Requests, HTTPX, Starlette, FastAPI, and more. Keep up with the updates by following Authlib on Twitter and subscribing to their blog.
https://docs.authlib.org/en/latest/index.html