Skip to main content

The Meibel API provides document parsing, datasource management, and AI agent orchestration. Read the docs at https://docs.meibel.ai to learn more.

Project description

Meibel Python SDK

The official Python SDK for the Meibel API. Provides document parsing, datasource management, and AI agent orchestration.

Installation

pip install --pre meibel

Quick Start

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

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

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meibel-0.4.0.tar.gz (23.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

meibel-0.4.0-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

File details

Details for the file meibel-0.4.0.tar.gz.

File metadata

  • Download URL: meibel-0.4.0.tar.gz
  • Upload date:
  • Size: 23.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for meibel-0.4.0.tar.gz
Algorithm Hash digest
SHA256 b4e8b7092c572f4479aa3ea4ae04988c6c4649c2b8b757f6d6fbc53e3bd07700
MD5 d5c4c4ceb0d7914bb653ca4b15fcc63b
BLAKE2b-256 3edfe75cba35f077c8846cc1c0b4246efea397eeeeaee59193e4566df25cfff3

See more details on using hashes here.

File details

Details for the file meibel-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: meibel-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 33.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for meibel-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92d42be8999007598eb3404d225dd47ff1c8d62a6e15f3d205e8070b1cef2425
MD5 ef12736111a871b97414a2911f6ca209
BLAKE2b-256 806d3c3e5807bb9a7c4276e55a4281879eaed0f5a05e2902e8d9bc998ed8c2ca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page