h2o-authn
H2O Python Clients Authentication Helpers
Decision gist · record as of 2026-08-14
Yes. Low install friction, active maintenance, no known vulnerabilities, and permissive licensing make this a straightforward choice if you are using H2O Python clients. Install only if you need OAuth token management for H2O services; it is not a general-purpose OAuth library.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later.
- Token endpoint URL or issuer URL must be provided; issuer URL requires network access for OIDC discovery.
- Low friction: pure Python wheel with a single runtime dependency (httpx).
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions.
last release 2025-04-28 (473 days) · last repo commit 2026-08-11 · 5 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 223,827 downloads/mo, #9,240 on PyPI
Alternatives
Verify before relying
pip install h2o-authn
import h2o_authn
provider = h2o_authn.TokenProvider(
refresh_token="your_refresh_token",
client_id="your_client_id",
issuer_url="https://your-issuer-url"
)
access_token = provider()- Whether the package handles token refresh automatically or requires explicit calls
- Performance characteristics under high-frequency token requests
- Compatibility with H2O services outside the documented examples
What it is and what it does
h2o-authn wraps OAuth 2.0 token exchange for H2O.ai's Python ecosystem. It manages refresh tokens, handles access token expiration, and provides both synchronous and asynchronous token providers that can be passed directly to H2O client libraries. The package accepts either an issuer URL (for OIDC discovery) or a direct token endpoint URL, plus credentials and optional scope/expiry configuration. Tokens are exposed as callable objects that return fresh access strings, or as Token instances with additional attributes like expiration time and scope.
The package is designed as a thin authentication layer for H2O services—MLOps, Drive, Enterprise Steam—and optionally integrates with H2O Cloud Discovery for simplified configuration in cloud environments. It depends only on httpx for HTTP requests and supports current Python versions (3.9+).
Use it for
- Authenticate to H2O MLOps Python Client by passing a TokenProvider instance as the token_provider argument
- Manage OAuth tokens in async H2O Wave applications using AsyncTokenProvider with environment-sourced credentials
- Exchange refresh tokens for access tokens in H2O Enterprise Steam login workflows
- Simplify multi-service authentication using H2O Cloud Discovery to auto-configure token providers
- Clone token providers with different scopes when accessing H2O services with varying permission requirements
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Low install friction, active maintenance, no known vulnerabilities, and permissive licensing make this a straightforward choice if you are using H2O Python clients. Install only if you need OAuth token management for H2O services; it is not a general-purpose OAuth library.
Install
h2o-authn on PyPI
Before you install
Low friction: pure Python wheel with a single runtime dependency (httpx). Active maintenance with recent release on 2025-04-28 and last commit 2026-08-11.
Requires Python 3.9 or later. Token endpoint URL or issuer URL must be provided; issuer URL requires network access for OIDC discovery.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions.
Quickstart
pip install h2o-authn
import h2o_authn
provider = h2o_authn.TokenProvider(
refresh_token="your_refresh_token",
client_id="your_client_id",
issuer_url="https://your-issuer-url"
)
access_token = provider()
Verify before relying
- Whether the package handles token refresh automatically or requires explicit calls
- Performance characteristics under high-frequency token requests
- Compatibility with H2O services outside the documented examples
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagehttpx |
| Maintenance | Actively maintained 473 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 223,827 / month, #9,240 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersOperating System :: OS IndependentTopic :: InternetTopic :: Scientific/Engineering :: Artificial IntelligenceTopic :: SecurityTopic :: Utilities |
Evidence: h2o_authn-3.1.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “oauth token provider”
- h2o-authnProvides OAuth 2.0 token management for H2O Python clients, handling…
- Flask-OAuthlibFlask-OAuthlib adds OAuth 1.0a and OAuth 2.0 client and provider…
- Flask-DanceFlask-Dance simplifies OAuth authentication in Flask applications by…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also requests-oauth2client · h2o-wave · oauth2-client · requests-oauthlib · pycognito · auth0-api-python · django-oauth-toolkit · requests-oauth · Flask-OAuthlib · google-oauth