skillfed

httpx-oauth

Async OAuth client using HTTPX

httpx-oauth v0.17.0 889.3K downloads/30d#4,808 on PyPI182
Permissive license Active released

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-oauth

uv

uv add httpx-oauth

poetry

poetry add httpx-oauth

Installing 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

Development Status :: 5 - Production/StableFramework :: AsyncIOIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

async oauth clienthttpx oauth authenticationasyncio oauthoauth async pythonasync http oauthoauth client libraryasync authentication
oauthasync-httpauthentication

More WWW/HTTP packages