Python SDK providing Pydantic models for the OpenResponses API specification.
pip install openresponses-types# 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 devThe 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 --versionThis 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.
Apache 2.0 - see LICENSE for details.