Metadata-Version: 2.4
Name: oxa-types
Version: 0.1.0
Summary: Pydantic models generated from the OXA schema
Project-URL: Homepage, https://github.com/oxa-dev/oxa
Project-URL: Repository, https://github.com/oxa-dev/oxa.git
License-Expression: MIT
Keywords: oxa,pydantic,schema,types
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: pydantic>=2.0
Description-Content-Type: text/markdown

# oxa-types

Pydantic models generated from the OXA JSON Schema.

## Installation

```bash
pip install oxa-types
```

Or with uv:

```bash
uv add oxa-types
```

## Usage

```python
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:

```bash
pnpm codegen py
```
