Skip to main content

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


Download files

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

Source Distribution

oxa_types-0.1.0.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

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

oxa_types-0.1.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

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

Hashes for oxa_types-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f23637d0c598e8b03fae726bc7f02b5f8e342d93aa00b9bd384d51f88e7e1d18
MD5 ba12fd1f170d8013fbbdb149117608fd
BLAKE2b-256 3e3961457ca3f1a261d3e5ff1c7faeabf264edfd28ff10e41d81bb5d5e563f92

See more details on using hashes here.

Provenance

The following attestation bundles were made for oxa_types-0.1.0.tar.gz:

Publisher: release.yml on oxa-dev/oxa

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

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

Hashes for oxa_types-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c9175895c4980b93af732602d892dcdad383d9ffbd96b7b72fa7bb409e17b68
MD5 804ac2f2f65ce58cd0ced6df63bf7e32
BLAKE2b-256 c1f8686a79195000c87780e6fc0dfb34775bd226c01d595eb62f948eb0312b73

See more details on using hashes here.

Provenance

The following attestation bundles were made for oxa_types-0.1.0-py3-none-any.whl:

Publisher: release.yml on oxa-dev/oxa

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