openlayer
The official Python library for the openlayer API
Decision gist · record as of 2026-08-14
Yes. The library is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive Apache-2.0 license. It is the official client for Openlayer's API and is essential if you need to integrate Openlayer monitoring into a Python application. The typed interface, async support, and automatic retries make it production-ready.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires OPENLAYER_API_KEY environment variable or explicit api_key parameter; Python 3.9 or later.
- Low install friction; pure Python wheel with 12 runtime dependencies including httpx, pydantic, and pandas.
- Actively maintained with a release 10 days old and recent commits.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions—suitable for most production and proprietary projects.
last release 2026-08-04 (10 days) · last repo commit 2026-08-04 · 17 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 200,517 downloads/mo, #9,691 on PyPI
Alternatives
Verify before relying
pip install openlayer
import os
from openlayer import Openlayer
client = Openlayer(api_key=os.environ.get("OPENLAYER_API_KEY"))
response = client.inference_pipelines.data.stream(
inference_pipeline_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
config={"input_variable_names": ["user_query"], "output_column_name": "output"},
rows=[{"user_query": "test", "output": "result"}]
)
print(response.success)- Whether the library's retry behavior (2 retries by default for connection/timeout/429/5xx errors) is configurable beyond max_retries setting.
- Performance characteristics when streaming large datasets through inference_pipelines.data.stream().
- Whether aiohttp integration (optional extra) provides measurable concurrency improvements over default httpx backend.
What it is and what it does
Openlayer is the official Python client library for the Openlayer REST API, generated using Stainless. It wraps Openlayer's inference pipeline and project management endpoints in a typed, ergonomic interface. The library provides both Openlayer (synchronous) and AsyncOpenlayer (asynchronous) clients, both powered by httpx, with full type hints for request parameters and response objects via Pydantic models and TypedDicts.
The library is designed for developers integrating Openlayer's monitoring and data-streaming capabilities into Python applications. It handles authentication via API key, includes automatic retry logic for transient failures (connection errors, timeouts, rate limits, and 5xx responses), and offers helper methods on response objects for JSON serialization and dictionary conversion. Async usage is straightforward: import AsyncOpenlayer, use await on API calls, and optionally swap the HTTP backend to aiohttp for improved concurrency.
Use it for
- Stream inference pipeline data (inputs, outputs, tokens, costs, timestamps) to Openlayer for monitoring and analysis.
- Create and manage project commits programmatically to track model and prompt changes over time.
- Build async data pipelines that batch-upload inference results without blocking application logic.
- Integrate Openlayer monitoring into existing Python ML workflows with full IDE autocomplete and type checking.
- Handle API errors gracefully with typed exception hierarchy (APIConnectionError, RateLimitError, APIStatusError subclasses).
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The library is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive Apache-2.0 license. It is the official client for Openlayer's API and is essential if you need to integrate Openlayer monitoring into a Python application. The typed interface, async support, and automatic retries make it production-ready.
Install
openlayer on PyPI
Before you install
Low install friction; pure Python wheel with 12 runtime dependencies including httpx, pydantic, and pandas. Actively maintained with a release 10 days old and recent commits. Supports Python 3.9 through 3.14.
Requires OPENLAYER_API_KEY environment variable or explicit api_key parameter; Python 3.9 or later.
License in practice
Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions—suitable for most production and proprietary projects.
Quickstart
pip install openlayer
import os
from openlayer import Openlayer
client = Openlayer(api_key=os.environ.get("OPENLAYER_API_KEY"))
response = client.inference_pipelines.data.stream(
inference_pipeline_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
config={"input_variable_names": ["user_query"], "output_column_name": "output"},
rows=[{"user_query": "test", "output": "result"}]
)
print(response.success)
Verify before relying
- Whether the library's retry behavior (2 retries by default for connection/timeout/429/5xx errors) is configurable beyond max_retries setting.
- Performance characteristics when streaming large datasets through inference_pipelines.data.stream().
- Whether aiohttp integration (optional extra) provides measurable concurrency improvements over default httpx backend.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 12 packagesanyiodistrohttpxpandaspyarrowpydanticpyyamlrequests-toolbeltsniffiotqdmtyping-extensionswrapt |
| Maintenance | Actively maintained 10 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 200,517 / month, #9,691 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: openlayer-0.31.2-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 › “openlayer api client python”
- openlayerProvides a typed Python client for the Openlayer REST API, supporting…
- twentyc.rpcA client library for consuming 20c's RESTful API, built on top of the…
- codewords-clientA Python client library for the Codewords API with built-in FastAPI…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also opencode-ai · agentex-client · composio-client · modern-treasury · runloop_api_client · supermemory · bilibili-api-python · hiddenlayer-sdk · pipedream · llama-stack-client