Metadata-Version: 2.5
Name: lexio
Version: 0.2.0
Summary: Python type definitions for the lexio frontend library. Provides Pydantic models for type-safe interaction with the lexio UI components, including source references.
Project-URL: Homepage, https://github.com/renumics/lexio
Project-URL: Documentation, https://github.com/renumics/lexio/tree/main/python/lexio#readme
Project-URL: Repository, https://github.com/renumics/lexio.git
Project-URL: Bug Tracker, https://github.com/renumics/lexio/issues
Author: Renumics
Keywords: chatbot,frontend,lexio,pydantic,rag,rag-ui,types,typescript,ui
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: pydantic>=2.0.0
Requires-Dist: typing-extensions>=4.0.0
Description-Content-Type: text/markdown

# Lexio

Python package containing API types for the lexio frontend library.

## Installation

```bash
pip install lexio
# or
uv add lexio
```

## Usage

```python
from lexio.types import Source

# Use the types in your code
source = Source(
    id="12345678-1234-5678-1234-567812345678",
    title="Example Document",
    type="pdf",
    description="A sample PDF document",
    relevance=0.95,
    href="https://example.com/document.pdf"
)

print(source)
# Output: id='12345678-1234-5678-1234-567812345678' title='Example Document' type='pdf' description='A sample PDF document' relevance=0.95 href='https://example.com/document.pdf' data=None metadata=None highlights=None
```

## License

GPL-3.0 license

## Development

> **Note:** This package is automatically generated from the [lexio](https://github.com/Renumics/lexio) frontend library. Do not modify the files in this package directly.
