datalab-python-sdk
SDK for the Datalab document intelligence API
What it is and what it does
Datalab SDK is a Python client library for the Datalab document intelligence platform. It provides both a programmatic API and CLI for converting documents to markdown and orchestrating multi-step document processing workflows. The package wraps HTTP calls to a remote Datalab service, handling authentication via API key and managing request/response serialization through pydantic, with built-in retry logic via tenacity and progress reporting via tqdm.
Typical use is to authenticate once with an API key, then call convert() on a document path to retrieve structured output including markdown representation. The SDK also supports chaining multiple processing steps into reusable workflows for more complex document intelligence tasks.
Use it for:
- Convert PDF documents to markdown for downstream processing or storage in knowledge bases.
- Extract text and structure from scanned or complex-layout documents using document intelligence.
- Chain multiple document processing steps into reusable workflows for batch automation.
- Automate document conversion in data pipelines or ETL workflows.
- Build document ingestion layers for applications requiring clean markdown from unstructured documents.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python SDK for calling the Datalab API to convert documents to markdown and execute multi-step document processing workflows.
Yes, if you need to convert documents to markdown or run document processing workflows and have access to a Datalab API key. The package is actively maintained, has low install friction, carries a permissive MIT license, and integrates well with Python data pipelines. No known vulnerabilities. Main consideration is dependency on an external API service and availability of Datalab credentials.
Install
datalab-python-sdk on PyPI
pip
pip install datalab-python-sdkuv
uv add datalab-python-sdkpoetry
poetry add datalab-python-sdkInstalling datalab-python-sdk
Before you install
Low install friction with a pure-Python wheel and seven runtime dependencies. Actively maintained with recent release; requires Python 3.10 or later.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, suitable for both open-source and commercial projects.
Quickstart
pip install datalab-python-sdk
import os
os.environ['DATALAB_API_KEY'] = 'your_api_key_here'
from datalab_python_sdk import DatalabClient
client = DatalabClient()
result = client.convert('document.pdf')
print(result.markdown)
Requires DATALAB_API_KEY environment variable or api_key parameter; requires Python 3.10 or later.
Verify before relying
- Whether marker and surya are bundled dependencies or require separate installation.
- Performance characteristics for large documents or batch processing workflows.
- Rate limits or SLA guarantees of the underlying Datalab API service.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 7 — aiohttp, click, ijson, pydantic-settings, pydantic, tenacity, tqdm |
| Maintenance | actively maintained — 130 days since the last release |
| First released | |
| Downloads | 94,478/month — #13,326 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: datalab_python_sdk-0.5.0-py3-none-any.whl
Keywords: api, datalab, document-intelligence, sdk
Tags
More Text Processing packages
A drop-in replacement for Python's standard…
permissive · top 100 on PyPI
pyparsingpyparsing provides a library for building text…
permissive · top 1,000 on PyPI
docutilsDocutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
RapidFuzzRapidFuzz provides fast fuzzy string matching…
permissive · top 1,000 on PyPI
tinycss2tinycss2 parses CSS strings into token and…
permissive · top 1,000 on PyPI
llama-parseLlamaParse parses complex documents (PDFs,…
permissive · top 1,000 on PyPI
chunkr-aiA Python client for the Chunkr document…
permissive · top 5,000 on PyPI
marker-pdfMarker converts PDFs, images, and other…
permissive · top 15,000 on PyPI
surya-ocrSurya is an OCR and document intelligence model…
permissive · top 5,000 on PyPI
markitdown-no-magikaConverts various file formats (PDF, Excel,…
permissive · top 15,000 on PyPI
aurelio-sdkClient library for the Aurelio Platform that…
unclear · top 15,000 on PyPI
markitdownConverts various file formats (PDF, Excel,…
permissive · top 5,000 on PyPI
landingai-adeConverts PDFs and images into structured…
permissive · top 15,000 on PyPI
liteparseLiteParse provides Python bindings for fast,…
permissive · top 15,000 on PyPI
pymupdfPyMuPDF extracts, renders, converts, and…
agpl · top 1,000 on PyPI
kreuzbergExtracts text, tables, images, and metadata…
permissive · top 15,000 on PyPI