{"id":27680,"library":"datalab-python-sdk","title":"Datalab Python SDK","description":"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.","status":"active","version":"0.5.0","language":"python","source_language":"en","source_url":"https://github.com/datalab-ai/datalab-python-sdk","tags":["document-intelligence","api-sdk","machine-learning"],"install":[{"cmd":"pip install datalab-python-sdk","lang":"bash","label":"pip install"}],"dependencies":[{"reason":"For HTTP API calls","package":"requests","optional":false}],"imports":[{"wrong":"from datalab import DatalabClient","symbol":"DatalabClient","correct":"from datalab_sdk import DatalabClient"},{"symbol":"AsyncDatalabClient","correct":"from datalab_sdk import AsyncDatalabClient"},{"symbol":"DatalabError","correct":"from datalab_sdk import DatalabError"}],"quickstart":{"code":"import os\nfrom datalab import DatalabClient\n\nclient = DatalabClient(api_key=os.environ.get('DATALAB_API_KEY', ''))\nresult = client.extract(\n    file_path='invoice.pdf',\n    document_type='invoice',\n    fields=['total', 'date', 'vendor']\n)\nprint(result)","lang":"python","description":"Initialize client with API key (set DATALAB_API_KEY environment variable) and extract fields from a document."},"warnings":[{"fix":"Update code to handle dict response: `result['fields']` instead of `result[0]`.","message":"In version 0.5.0, the `extract` method changed from returning a list to returning a dict.","severity":"breaking","affected_versions":">=0.5.0"},{"fix":"Use `api_key='your_key'` instead of `token='your_token'`.","message":"`DatalabClient` constructor parameter `token` has been renamed to `api_key`.","severity":"deprecated","affected_versions":"<0.5.0"},{"fix":"Always use `DatalabClient(api_key='...')`.","message":"API key must be passed as a keyword argument, not positional.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.5.0':13 '3.10':16 'activ':25 'api':10,31 'api-sdk':30 'cadenc':21 'current':11 'datalab':1,7 'develop':26 'document':8,28 'document-intellig':27 'earli':24 'intellig':9,29 'learn':35 'machin':34 'machine-learn':33 'month':20 'python':2,15 'releas':17 'requir':14 'sdk':3,4,32 'still':22 'version':12","created_at":"2026-05-09T05:51:30.785200+00:00","updated_at":"2026-05-09T05:51:30.785200+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/datalab-python-sdk/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["http-networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}