Meibel Python SDK
The official Python SDK for the Meibel API. Provides document parsing, datasource management, and AI agent orchestration.
Installation
Install from Git (v2):
pip install git+https://github.com/meibel-ai/meibel-python.git@v2.0.0
Quick Start
from meibel import MeibelClient
client = MeibelClient(api_key="your-api-key")
# 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)
Nested Resources
Resources are organized hierarchically. Content, downloads, data elements, and table descriptions are accessed through datasources:
# Upload content to a datasource
with open("data.csv", "rb") as f:
result = client.datasources.content.upload_content(file=f, file_name="data.csv")
# List data elements
elements = client.datasources.data_elements.list_data_elements(datasource_id="ds-123")
Agent sessions (chat) are accessed through agents:
# Create a session and send a message
session = client.agents.sessions.create_session(agent_id="agent-123")
response = client.agents.sessions.send_chat_message(session_id=session.id, message="Hello")
Async Usage
from meibel import AsyncMeibelClient
client = AsyncMeibelClient(api_key="your-api-key")
result = await client.documents.process_document(file=open("doc.pdf", "rb"))
Documentation
License
MIT
Metadata
Release files for meibel 2.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| meibel-2.0.7.tar.gz | 45.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| meibel-2.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 105.2 kB
Release files / meibel-2.0.7.tar.gz
| Download URL | meibel-2.0.7.tar.gz |
|---|---|
| Size | 45.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
053e02b2dffc90fd9925323148e2f92c1fdb6cef088b11ff17af96cd0f3f74f3
|
|
BLAKE2b-256 checksum How to use checksums |
65bc6a394691a40de01fbea133af8ceebada583b46990b2ae264723589da533f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / meibel-2.0.7-py3-none-any.whl
| Download URL | meibel-2.0.7-py3-none-any.whl |
|---|---|
| Size | 59.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c411089791dfc6528f1d7146f70155175d33e3ec1230b992d5bc83ddb031f5b0
|
|
BLAKE2b-256 checksum How to use checksums |
df3da71b4390e2c325d654896c471007440f278106293aaf1204d2e77bde640e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for meibel 2.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.