from meibel import MeibelClient
client = MeibelClient(api_key="your-api-key")
# Upload a file
with open("document.pdf", "rb") as f:
result = client.documents.process(file=f, filename="document.pdf")
print(result){
"job_id": "<string>",
"status": "<string>",
"result": {
"elements": [
{
"type": "<string>",
"text": "<string>",
"level": 123,
"table": {
"cells": [
{
"text": "<string>",
"row": 123,
"col": 123,
"row_span": 1,
"col_span": 1,
"bbox": {
"x": 123,
"y": 123,
"width": 123,
"height": 123,
"page": 123
}
}
],
"rows": 123,
"cols": 123,
"bbox": {
"x": 123,
"y": 123,
"width": 123,
"height": 123,
"page": 123
}
},
"bbox": {
"x": 123,
"y": 123,
"width": 123,
"height": 123,
"page": 123
},
"confidence": 123,
"page": 123
}
],
"pages": 123,
"tables": 123,
"metadata": {}
}
}Upload a document and block until parsing is complete. Returns the full parsed result.
from meibel import MeibelClient
client = MeibelClient(api_key="your-api-key")
# Upload a file
with open("document.pdf", "rb") as f:
result = client.documents.process(file=f, filename="document.pdf")
print(result){
"job_id": "<string>",
"status": "<string>",
"result": {
"elements": [
{
"type": "<string>",
"text": "<string>",
"level": 123,
"table": {
"cells": [
{
"text": "<string>",
"row": 123,
"col": 123,
"row_span": 1,
"col_span": 1,
"bbox": {
"x": 123,
"y": 123,
"width": 123,
"height": 123,
"page": 123
}
}
],
"rows": 123,
"cols": 123,
"bbox": {
"x": 123,
"y": 123,
"width": 123,
"height": 123,
"page": 123
}
},
"bbox": {
"x": 123,
"y": 123,
"width": 123,
"height": 123,
"page": 123
},
"confidence": 123,
"page": 123
}
],
"pages": 123,
"tables": 123,
"metadata": {}
}
}Documentation Index
Fetch the complete documentation index at: https://docs.meibel.ai/llms.txt
Use this file to discover all available pages before exploring further.
Result format: markdown, annotated, docling, json
The document file to process
Was this page helpful?