Registry / http-networking / datalab-python-sdk

datalab-python-sdk

JSON →
library0.5.0pypypi✓ verified 81d ago

SDK for the Datalab document intelligence API. Current version 0.5.0, requires Python >=3.10. Released on a monthly cadence, still in early active development.

pip install datalab-python-sdk
INSTALL
IMPORT
SIG · DATALAB-PYTHON-SDK
D
datalab-python-sdk
http-networkingpythonv0.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DatalabClient
from datalab_sdk import DatalabClient
from datalab import DatalabClient
AsyncDatalabClient
from datalab_sdk import AsyncDatalabClient
DatalabError
from datalab_sdk import DatalabError

Initialize client with API key (set DATALAB_API_KEY environment variable) and extract fields from a document.

import os from datalab import DatalabClient client = DatalabClient(api_key=os.environ.get('DATALAB_API_KEY', '')) result = client.extract( file_path='invoice.pdf', document_type='invoice', fields=['total', 'date', 'vendor'] ) print(result)
Debug
Known issues
breakingIn version 0.5.0, the `extract` method changed from returning a list to returning a dict.
fix
Update code to handle dict response: `result['fields']` instead of `result[0]`.
affects: >=0.5.0
deprecated`DatalabClient` constructor parameter `token` has been renamed to `api_key`.
fix
Use `api_key='your_key'` instead of `token='your_token'`.
affects: <0.5.0
gotchaAPI key must be passed as a keyword argument, not positional.
fix
Always use `DatalabClient(api_key='...')`.
affects: all
Upgrade
Version history
0.5.0latest on PyPI · released Apr 6, 2026
Audit
Dependencies
requestsrequiredFor HTTP API calls
Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
datalab-python-sdk — pip install datalab-python-sdk · libregistry