Skip to main content

Labric Python SDK

The official Python library for the Labric API. Full documentation is available at docs.labric.co.

Installation

pip install labric

Usage

from labric import Labric, SeriesWrite, TableWrite

client = Labric()  # reads LABRIC_API_KEY from the environment
# or pass the API key explicitly: Labric(api_key="lbk_...")

client.data.write(
    tables=[
        TableWrite(
            table="samples",
            rows=[{"_ref": "s1", "name": "S-001", "status": "received"}],
        ),
    ],
    series=[
        SeriesWrite(
            table="spectra",
            parent="@s1",
            columns={"wavelength": [400, 500, 600], "absorbance": [0.12, 0.34, 0.21]},
        ),
    ],
)

An async client is also available:

from labric import AsyncLabric

See the API reference for the full list of methods and types.

Support

Contributing

This SDK is largely generated code. See CONTRIBUTING.md for how it is generated and released.

Metadata

Release files for labric 0.17.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for labric 0.17.12
File Size Uploaded Provenance Actions
labric-0.17.12.tar.gz 148.0 kB With provenance Details for labric-0.17.12.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for labric 0.17.12
File Interpreter ABI Platform Actions
labric-0.17.12-py3-none-any.whl Python 3 none any Details for labric-0.17.12-py3-none-any.whl

Total release size: 346.3 kB

Release files / labric-0.17.12.tar.gz

Download URL labric-0.17.12.tar.gz
Size 148.0 kB
Tags Source
SHA-256 checksum
How to use checksums
19a819ea15eb3cb2e07a5f07b2e1e838704fedba6181269945e00bf6a87092e9
BLAKE2b-256 checksum
How to use checksums
035ca8b54c4040d8f882e0f5f8e29ad2b3cb4525a956c897060eb299acc63f1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / labric-0.17.12-py3-none-any.whl

Download URL labric-0.17.12-py3-none-any.whl
Size 198.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38b776127245381f229dea60cc78fbb71d2477fbb0011757e37ab96f2c36c05f
BLAKE2b-256 checksum
How to use checksums
da64528b64081d95a329a99d94c1e4c17c6d03309637175c0116013501b464f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for labric 0.17.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for labric-0.17.12.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.17.12 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page