OpenAI Python Types
Tiny package that exposes only the openai SDK's types as openai_types,
keeping install size as small as possible while staying in sync with upstream.
Install
pip install openai-python-types
Usage
- Instead of
from openai.types.realtime.realtime_audio_formats import RealtimeAudioFormatsusefrom openai_types.realtime.realtime_audio_formats import RealtimeAudioFormats.
What’s Included
- Only the upstream
src/openai/typestree, vendored underopenai_types/types. - A tiny
_models.BaseModelshim (pydantic v2) needed by the generated types. - Auto-generated import proxies so
openai_types.<module>maps toopenai_types.types.<module>.
What’s Not Included
- No client logic, transport, or other
openaiSDK files — keeping the wheel minimal.
Syncing with Upstream
- A GitHub Action (
.github/workflows/sync.yml) runs hourly and on demand to:- Fetch the latest OpenAI Python release tag
- Copy
src/openai/typesinto this repo - Generate import proxies
- Bump this package version to match upstream
- Open a PR with changes
- Build a wheel and run a smoke import test against it
Releasing
- On PR merge to
main, a workflow (.github/workflows/tag-on-merge.yml) tags the repo asv<version>ifpyproject.tomlversion changed. - Publishing workflow (
.github/workflows/release.yml) automatically uploads to PyPI on tag pushv*.*.*. - Configure repository secret
PYPI_API_TOKENfor automated publishing.
Local Development
- Run
python scripts/sync_types.pyto sync locally. - Build locally with
python -m build.
Notes
- Requires Python 3.8+ and
pydantic>=2at runtime.
Metadata
Release files for openai-python-types 1.107.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openai_python_types-1.107.2.tar.gz | 206.6 kB | Without provenance | Details for openai_python_types-1.107.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openai_python_types-1.107.2-py3-none-any.whl | Python 3 | none | any | Details for openai_python_types-1.107.2-py3-none-any.whl |
Total release size: 850.5 kB
Release files / openai_python_types-1.107.2.tar.gz
| Download URL | openai_python_types-1.107.2.tar.gz |
|---|---|
| Size | 206.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d6acb5ae72b626c959a6887f30aa14d59bad12ffee012160912556dcb6f29ced
|
|
BLAKE2b-256 checksum How to use checksums |
18f42e0c31ab0c485b5d4cdc0cb0a9a0628cbd1de21e8416ea0cd80fe74983c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|
Release files / openai_python_types-1.107.2-py3-none-any.whl
| Download URL | openai_python_types-1.107.2-py3-none-any.whl |
|---|---|
| Size | 643.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36599d4845e60f184edd786b7a3cf81dac2e9bde3980818296c08f280efce65c
|
|
BLAKE2b-256 checksum How to use checksums |
06a3c9f802ed5dc51e280cb849508a071060d79f697966703bedf2ce76fc9ea6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|
Security for openai-python-types 1.107.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.