skillfed

openresponses-types

Python SDK for OpenResponses specification

openresponses-types v2.4.0 136.1K downloads/30d#11,406 on PyPI11
Permissive license Apache-2.0 Active released

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

uv

uv add openresponses-types

poetry

poetry add openresponses-types

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Typing :: Typed

Tags

pydantic models openapiopenresponses api typesllm api client typestype-safe api specificationopenapi schema pydanticapi specification models
pydantic-modelsopenapi-typesllm-sdk

More Artificial Intelligence packages