Skip to main content

Python SDK for OpenResponses specification

Project description

OpenResponses Types

PyPI version Python versions License

Python SDK providing Pydantic models for the OpenResponses API specification.

Installation

pip install openresponses-types

Development

Setup

# Clone the repository
git clone https://github.com/mozilla-ai/openresponses-python.git
cd openresponses-python

# Create virtual environment and install dependencies
uv venv && source .venv/bin/activate
uv sync --group dev

Generate Types

The types are generated from the OpenResponses OpenAPI specification:

# Generate types (fetches spec if changed)
uv run python scripts/generate_types.py

# Force regeneration
uv run python scripts/generate_types.py --force

# Check if spec has changed
uv run python scripts/generate_types.py --check

# Show current spec hash
uv run python scripts/generate_types.py --version

Versioning

This package follows Semantic Versioning:

  • Major: Breaking changes to helper types/API
  • Minor: New types from spec updates, new helpers
  • Patch: Bug fixes, documentation updates

The package includes a __spec_hash__ attribute to track which OpenAPI spec version was used to generate the types.

License

Apache 2.0 - see LICENSE for details.

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openresponses_types-2.3.0.post1.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openresponses_types-2.3.0.post1-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file openresponses_types-2.3.0.post1.tar.gz.

File metadata

File hashes

Hashes for openresponses_types-2.3.0.post1.tar.gz
Algorithm Hash digest
SHA256 11b8896d3621d2ac2439f6ff106f34ddcb1bbd517c317a6c852a9df2e98a0753
MD5 ab4fc702e404b952887ad3dff531d0d9
BLAKE2b-256 d926b612c3215f5599714fa94d63eb5ee59b4eb66dbdeeaf86bb4d848359484d

See more details on using hashes here.

Provenance

The following attestation bundles were made for openresponses_types-2.3.0.post1.tar.gz:

Publisher: release.yml on mozilla-ai/openresponses-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openresponses_types-2.3.0.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for openresponses_types-2.3.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 88f6abcef9cad839203abff420dd080978bf6eb33cc06ddc5d78da4ccdba7613
MD5 210bd99ae17c1334df230e87674c4dd3
BLAKE2b-256 b25fe16dad89ed24f586da5b01b9b206d3adbf21fe1af8e4dc55d5b93158fde6

See more details on using hashes here.

Provenance

The following attestation bundles were made for openresponses_types-2.3.0.post1-py3-none-any.whl:

Publisher: release.yml on mozilla-ai/openresponses-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page