Pydantic models generated from the OXA schema
Project description
oxa-types
Pydantic models generated from the OXA JSON Schema.
Installation
pip install oxa-types
Or with uv:
uv add oxa-types
Usage
from oxa_types import Document, Paragraph, Text, Block, Inline
# Create a simple document
doc = Document(
metadata={},
title=[Text(value="Hello World")],
children=[
Paragraph(children=[Text(value="This is a paragraph.")])
]
)
# Serialize to JSON
print(doc.model_dump_json(indent=2))
Development
This package is automatically generated from the OXA JSON Schema. Do not edit the generated files directly.
To regenerate the types:
pnpm codegen py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oxa_types-0.1.0.tar.gz.
File metadata
- Download URL: oxa_types-0.1.0.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f23637d0c598e8b03fae726bc7f02b5f8e342d93aa00b9bd384d51f88e7e1d18
|
|
| MD5 |
ba12fd1f170d8013fbbdb149117608fd
|
|
| BLAKE2b-256 |
3e3961457ca3f1a261d3e5ff1c7faeabf264edfd28ff10e41d81bb5d5e563f92
|
Provenance
The following attestation bundles were made for oxa_types-0.1.0.tar.gz:
Publisher:
release.yml on oxa-dev/oxa
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oxa_types-0.1.0.tar.gz -
Subject digest:
f23637d0c598e8b03fae726bc7f02b5f8e342d93aa00b9bd384d51f88e7e1d18 - Sigstore transparency entry: 778681787
- Sigstore integration time:
-
Permalink:
oxa-dev/oxa@22996dee5dd01ebad1cbd35f0f59b0806ea49275 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/oxa-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@22996dee5dd01ebad1cbd35f0f59b0806ea49275 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file oxa_types-0.1.0-py3-none-any.whl.
File metadata
- Download URL: oxa_types-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c9175895c4980b93af732602d892dcdad383d9ffbd96b7b72fa7bb409e17b68
|
|
| MD5 |
804ac2f2f65ce58cd0ced6df63bf7e32
|
|
| BLAKE2b-256 |
c1f8686a79195000c87780e6fc0dfb34775bd226c01d595eb62f948eb0312b73
|
Provenance
The following attestation bundles were made for oxa_types-0.1.0-py3-none-any.whl:
Publisher:
release.yml on oxa-dev/oxa
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oxa_types-0.1.0-py3-none-any.whl -
Subject digest:
9c9175895c4980b93af732602d892dcdad383d9ffbd96b7b72fa7bb409e17b68 - Sigstore transparency entry: 778681790
- Sigstore integration time:
-
Permalink:
oxa-dev/oxa@22996dee5dd01ebad1cbd35f0f59b0806ea49275 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/oxa-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@22996dee5dd01ebad1cbd35f0f59b0806ea49275 -
Trigger Event:
workflow_dispatch
-
Statement type: