The official Python library for the Labric API. Full documentation is available at docs.labric.co.
pip install labricfrom labric import Labric
client = Labric() # reads LABRIC_API_KEY from the environment
# or pass the API key explicitly: Labric(api_key="lbk_...")
client.tools.write(
target_name="samples",
target_type="table",
data=[{"sample_id": "S-001", "status": "received"}],
mode="create",
)An async client is also available:
from labric import AsyncLabricSee the API reference for the full list of methods and types.
This SDK is largely generated code. See CONTRIBUTING.md for how it is generated and released.