skillfed

datalab-python-sdk

SDK for the Datalab document intelligence API

datalab-python-sdk v0.5.0 94.5K downloads/30d#13,326 on PyPI
Permissive license MIT Active released

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-sdk

uv

uv add datalab-python-sdk

poetry

poetry add datalab-python-sdk

Installing 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

pdf to markdown conversiondocument intelligence api clientdatalab sdk pythondocument processing workflowsdocument extraction apiapi client for document conversionmarkdown extraction from pdf
document-processingapi-clientpdf-extraction

More Text Processing packages