httpx-oauth
Async OAuth client using HTTPX
What it is and what it does
httpx-oauth is an async OAuth client library that wraps httpx to simplify OAuth authentication in asynchronous Python applications. It abstracts away the complexity of OAuth protocol flows, allowing developers to authenticate users or services without manually constructing HTTP requests and parsing responses. The package is built for modern async/await code and integrates directly with httpx, the async-first HTTP client library.
The library is actively maintained, supports Python 3.10 through 3.14, and carries no known security vulnerabilities. It has a minimal dependency footprint—only httpx—making it lightweight to add to existing projects. The permissive MIT license means you can use it freely in both open-source and commercial applications without licensing concerns.
Use it for:
- Authenticate users via OAuth providers in async web applications.
- Build async service-to-service authentication using OAuth client credentials flow.
- Integrate OAuth into async web frameworks that need third-party login.
- Handle OAuth token exchange and user info retrieval in concurrent async contexts.
- Simplify OAuth protocol handling in async CLI tools or background workers.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides an async OAuth client built on HTTPX for handling OAuth authentication flows in asynchronous Python applications.
Yes. httpx-oauth is actively maintained, has low install friction, no security vulnerabilities, and a permissive license. Install it if you need OAuth authentication in an async Python application and want to avoid hand-rolling OAuth protocol logic. The single dependency on httpx keeps the footprint small.
Install
httpx-oauth on PyPI
pip
pip install httpx-oauthuv
uv add httpx-oauthpoetry
poetry add httpx-oauthInstalling httpx-oauth
Before you install
Low install friction with a single runtime dependency on httpx. Active maintenance with recent commits; supports Python 3.10 through 3.14.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal obligations—suitable for commercial and private projects.
Quickstart
pip install httpx-oauth
import httpx_oauth
# See documentation at https://frankie567.github.io/httpx-oauth/ for OAuth flow examples
Requires Python 3.10 or later.
Verify before relying
- Which OAuth providers or flows (authorization code, client credentials, etc.) are supported.
- Whether the package handles token refresh and storage or only the authentication handshake.
- Performance characteristics when handling concurrent OAuth requests.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — httpx |
| Maintenance | actively maintained — 93 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 889,295/month — #4,808 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: httpx_oauth-0.17.0-py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
httpx-wsAdds WebSocket support to HTTPX, enabling sync…
permissive · top 5,000 on PyPI
httpx-authProvides authentication classes for httpx HTTP…
permissive · top 5,000 on PyPI
google-auth-oauthlibIntegrates oauthlib with google-auth to handle…
permissive · top 1,000 on PyPI
chacha20poly1305-reuseableProvides a reusable ChaCha20Poly1305 AEAD…
permissive · top 15,000 on PyPI
requests-oauthAdds OAuth 1.0 authentication support to the…
permissive · top 5,000 on PyPI
oauth2Implements OAuth 1.0 authentication for Python…
permissive · top 15,000 on PyPI
simple-rest-clientA lightweight HTTP client library for building…
unclear · top 15,000 on PyPI
httpx2HTTPX2 is a fully featured HTTP client library…
permissive · top 1,000 on PyPI
auth0-pythonProvides Python bindings to Auth0's…
permissive · top 5,000 on PyPI