Metadata-Version: 2.4
Name: meibel
Version: 0.1.0b3
Summary: The Meibel API provides document parsing, datasource management, and AI agent orchestration.
License: MIT
Project-URL: Homepage, https://docs.meibel.ai
Project-URL: Repository, https://github.com/meibel-ai/meibel-python
Project-URL: Documentation, https://docs.meibel.ai/sdk/python
Project-URL: Bug Tracker, https://github.com/meibel-ai/meibel-python/issues
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Typing :: Typed
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.25.0
Requires-Dist: pydantic>=2.0.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
Requires-Dist: black>=23.0.0; extra == "dev"
Requires-Dist: mypy>=1.0.0; extra == "dev"

# Meibel Python SDK

The official Python SDK for the [Meibel API](https://docs.meibel.ai). Provides document parsing, datasource management, and AI agent orchestration.

## Installation

```bash
pip install meibel==0.1.0b1
```

## Quick Start

```python
from meibel import MeibelClient

client = MeibelClient(
    api_key="your-api-key",
    base_url="https://api.meibel.ai/v2",
)

# Parse a document
with open("document.pdf", "rb") as f:
    result = client.documents.parse_document(file=f)
    print(result.job_id)

# Process a document synchronously (waits for completion)
with open("document.pdf", "rb") as f:
    result = client.documents.process_document(file=f)
    print(result)

# List datasources
datasources = client.datasources.list_datasources()
for ds in datasources.items:
    print(ds.name)
```

## Async Usage

```python
from meibel import AsyncMeibelClient

client = AsyncMeibelClient(
    api_key="your-api-key",
    base_url="https://api.meibel.ai/v2",
)

result = await client.documents.process_document(file=open("doc.pdf", "rb"))
```

## Documentation

- [API Reference](https://docs.meibel.ai/api-reference/overview)
- [SDK Guide](https://docs.meibel.ai/sdk/python)

## License

MIT
