openresponses-types
Python SDK for OpenResponses specification
What it is and what it does
OpenResponses Types is a Python SDK that wraps the OpenResponses API specification as Pydantic models. It provides type-safe data structures for interacting with OpenResponses services, generated directly from the OpenAPI specification. The package is maintained by Mozilla AI and tracks the upstream spec version via a `__spec_hash__` attribute, allowing you to know which API version your models correspond to.
The package depends only on pydantic and is distributed as a pure Python wheel, making installation straightforward. It follows semantic versioning: major bumps for breaking changes to the helper types, minor bumps for new types from spec updates, and patch bumps for bug fixes. The repository is actively maintained with recent releases, and the package supports modern Python versions (3.11–3.13).
Use it for:
- Building a Python client library that consumes the OpenResponses API with full type checking and IDE autocomplete.
- Validating incoming or outgoing data structures against the OpenResponses specification in your application.
- Generating API request/response payloads with confidence that they match the current spec version.
- Integrating OpenResponses into a larger LLM orchestration or AI workflow tool with type safety.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Pydantic models for the OpenResponses API specification, enabling type-safe interaction with OpenResponses services in Python.
Yes, if you are building a Python application that interacts with OpenResponses. The package is actively maintained, has no known vulnerabilities, installs with minimal friction, and provides the type safety and IDE support that Pydantic models offer. The Apache 2.0 license is permissive. If you are not using OpenResponses, this package is not relevant.
Install
openresponses-types on PyPI
pip
pip install openresponses-typesuv
uv add openresponses-typespoetry
poetry add openresponses-typesInstalling openresponses-types
Before you install
Low friction: pure Python wheel with a single runtime dependency on pydantic. Active maintenance with a release 9 days ago; repository is not archived and supports current Python versions (3.11–3.13).
License in practice
Apache 2.0 permissive license allows use in most commercial and open-source projects without significant restrictions.
Quickstart
pip install openresponses-types
from openresponses_types import <model_name>
# Use Pydantic model for type validation
response = <model_name>(**data)
Requires Python 3.11 or later.
Verify before relying
- Which specific Pydantic models are included and what OpenResponses API endpoints they cover.
- Whether the package includes helper utilities beyond raw Pydantic model definitions.
- How frequently the OpenAPI spec is updated and how that triggers version bumps.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — pydantic |
| Maintenance | actively maintained — 9 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 136,127/month — #11,406 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: openresponses_types-2.4.0-py3-none-any.whl
Keywords: ai, llm, openapi, openresponses, pydantic
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
k8Provides Python type models for Kubernetes…
permissive · top 15,000 on PyPI
turnkey-sdk-typesProvides generated Pydantic type definitions…
permissive · top 15,000 on PyPI
openccu-loom-typesProvides generated Pydantic models and string…
permissive · top 15,000 on PyPI
sigstore-rekor-typesProvides Python data models for Rekor's API…
permissive · top 5,000 on PyPI
guardrails-ai-typesProvides type definitions and data structures…
permissive · top 15,000 on PyPI
openapi-pydanticProvides Pydantic-based classes that implement…
permissive · top 1,000 on PyPI
pydantic-geojsonProvides Pydantic-based type-safe validation…
permissive · top 15,000 on PyPI
openapi-schema-pydanticProvides Pydantic classes that map to the…
permissive · top 5,000 on PyPI
pydantic-tesProvides Pydantic models and a lightweight HTTP…
permissive · top 15,000 on PyPI
turnkey-httpTurnkey HTTP is an HTTP client for the Turnkey…
permissive · top 15,000 on PyPI