Use this file to discover Exa products, pricing, evaluations, comparisons, use cases, agent interfaces, and technical documentation before exploring further.
Python OAuth libraries implement the OAuth and OpenID Connect flows that let an application act for a user at another service. A client library sends the user to the provider's consent page and exchanges the returned code for tokens. These libraries let apps and AI agents call third-party APIs with a user's permission.
Popularity
Requests-OAuthlib has the most monthly downloads in this comparison, at 278.1M.
def get_token(self, *scopes, **kwargs):
# get the token using the application token = self.app.acquire_token_for_client(list(scopes))
if 'error' in token:
raise Exception(token['error_description'])
expires_on = time.time() + token['expires_in']
# return an access token with the token string and expiration time return AccessToken(token['access_token'], int(expires_on))
Authlib
Builds OAuth and OpenID Connect servers and clients.
def local_server_flow(
client_config: Mapping[str, Any], scopes: Iterable[str], port: int = 0
) -> OAuthCredentials:
"""Run an OAuth flow using a local server strategy.
Creates an OAuth flow and runs `google_auth_oauthlib.flow.InstalledAppFlow.run_local_server <https://google-auth-oauthlib.readthedocs.io/en/latest/reference/google_auth_oauthlib.flow.html#google_auth_oauthlib.flow.InstalledAppFlow.run_local_server>`_.
This will start a local web server and open the authorization URL in
the user's browser.
Pass this function to ``flow`` parameter of :meth:`~gspread.oauth` to run
a local server flow.
"""
flow = InstalledAppFlow.from_client_config(client_config, scopes)
return flow.run_local_server(port=port)
django-allauth
Handles Django authentication, registration, account management, and social account sign-in.
Authlib suits applications that need OAuth clients and Flask or Django authorization servers. Requests-OAuthlib suits client code built on Requests. MSAL suits applications that sign users in with Microsoft identity.
django-allauth is a set of Django apps for sign-up, account management, and social login with many providers. An optional module turns it into an OpenID Connect identity provider.
MSAL acquires and caches tokens for users and apps on the Microsoft identity platform. It handles Microsoft-specific flows rather than arbitrary OAuth providers.
Authlib builds OAuth and OpenID Connect clients and servers. It offers synchronous clients on Requests and asynchronous clients on HTTPX.
For coding agents
Found your OAuth library? Help your agent use it.
Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.
Quickstart
From base.py