Datalab SDK
A Python SDK for the Datalab API - a document intelligence platform powered by marker and surya.
See the full documentation at https://documentation.datalab.to.
Installation
pip install datalab-python-sdk
Quick Start
Authentication
Get your API key from https://www.datalab.to/app/keys:
export DATALAB_API_KEY="your_api_key_here"
Basic Usage
from datalab_sdk import DatalabClient
client = DatalabClient() # use env var from above, or pass api_key="your_api_key_here"
# Convert PDF to markdown
result = client.convert("document.pdf")
print(result.markdown)
Workflows
Workflows allow you to chain multiple document processing steps together. Each workflow consists of one or more steps that can depend on previous steps.
Note: All workflow operations require authentication. Make sure you have set your DATALAB_API_KEY environment variable or pass api_key when creating the client (see Authentication section above).
For more Workflow tips, see our documentation.
CLI Usage
The SDK includes a command-line interface:
# Convert document to markdown
datalab convert document.pdf
# Workflow commands
datalab create-workflow --help
datalab execute-workflow --help
datalab get-execution-status --help
datalab list-workflows --help
datalab get-workflow --help
datalab visualize-workflow --help
License
MIT License
Metadata
Release files for datalab-python-sdk 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| datalab_python_sdk-0.5.0.tar.gz | 2.0 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| datalab_python_sdk-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.0 MB
Release files / datalab_python_sdk-0.5.0.tar.gz
| Download URL | datalab_python_sdk-0.5.0.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f8ba0d61632d4a71466f021b997a67ea2abc9a0d357febf0007fca7b892f1d33
|
|
BLAKE2b-256 checksum How to use checksums |
32e388a6943f5b2b57a1187291970b40802c9c348184d115802f07f3ca99baae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / datalab_python_sdk-0.5.0-py3-none-any.whl
| Download URL | datalab_python_sdk-0.5.0-py3-none-any.whl |
|---|---|
| Size | 33.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ea48c2f3c191fae65220309aaa6bf2038b8b72f2680d60d95534b414403a986
|
|
BLAKE2b-256 checksum How to use checksums |
e1c49fe858fd577f2b7b9743ec678c34cb91cc52f5bc1bef6279d4a69bf345c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|