Metadata-Version: 2.4
Name: nubix-ai
Version: 1.1.0
Summary: AI library used for document processing and LLM calls.
Project-URL: Repository, https://git.nubix.online/python/ai.git
Author-email: Nubix <l.laarveld@nubix.nl>
License: MIT
License-File: LICENSE
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.11
Requires-Dist: openai>=2.9.0
Requires-Dist: pydantic>=2.12.5
Requires-Dist: requests>=2.32.5
Description-Content-Type: text/markdown

# nubix-ai

AI library used for document processing and LLM calls.

## Installation

```bash
pip install nubix-ai
```

## Usage

```python
from pydantic import BaseModel
from nubix_ai import NubixAI

# Initialize the client
client = NubixAI(
    docling_api_key="your-docling-api-key",
    openai_api_key="your-openai-api-key"
)

# Process a document
markdown, metadata = client.call_docling_process_file("document.pdf")

# Or send a PDF through the full-PDF LLM markdown endpoint
markdown, metadata = client.call_docling_process_pdf_llm("document.pdf")

# Extract structured data with LLM
class MySchema(BaseModel):
    field1: str
    field2: int

result = client.extract_with_llm(
    markdown_text=markdown,
    prompt_input="Extract the following information:",
    PydanticInput=MySchema
)
```

## Release

Create a PyPI API token for the `nubix-ai` project and export it as `UV_PUBLISH_TOKEN`.

```bash
export UV_PUBLISH_TOKEN=pypi-...
```

Publish the current version from `pyproject.toml`:

```bash
uv build
uv publish --index pypi
```

Or use the helper script from the project root:

```bash
scripts/publish.sh
```

To set the version first and publish in one step:

```bash
scripts/publish.sh 1.1.1
```

To test the upload flow without touching production PyPI:

```bash
uv build
uv publish --index testpypi
```

## License

MIT
