labelbox
Labelbox Python API
What it is and what it does
Labelbox is the official Python SDK for the Labelbox data labeling platform. It provides a structured client interface to manage labeling projects, retrieve annotations, and work with labeled datasets programmatically. The SDK is built around an ORM layer that maps Labelbox data entities to Python objects, with GraphQL-backed queries for efficient server communication.
The package is organized into functional modules: a data/ package for annotation serialization and deserialization (including NDJson support), an orm/ package providing base classes and generic query patterns, a schema/ package defining entity types, and a Client class serving as the main entry point. It handles pagination, custom exceptions, and utility functions for common workflows. The SDK supports Python versions 3.9 through 3.13 and integrates with standard libraries like pydantic for validation and requests for HTTP communication.
Use it for:
- Retrieve and process labeled datasets from Labelbox projects for training machine learning models.
- Programmatically create, update, and manage labeling projects and export annotations in bulk.
- Serialize and deserialize annotation data between Labelbox and external formats like NDJson.
- Automate quality assurance workflows by querying label metadata and project statistics.
- Integrate Labelbox labeling workflows into custom data pipeline and ETL processes.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Labelbox is a Python SDK for interacting with the Labelbox data labeling platform, providing client-side access to projects, labels, annotations, and related data management through a GraphQL-backed API.
Yes. Labelbox is actively maintained, has low install friction, carries no known vulnerabilities, and is licensed permissively. Install it if you need to programmatically interact with Labelbox projects, export annotations, or integrate labeling workflows into Python applications. Not relevant if you do not use the Labelbox platform.
Install
labelbox on PyPI
pip
pip install labelboxuv
uv add labelboxpoetry
poetry add labelboxInstalling labelbox
Before you install
Low install friction with a pure-wheel distribution. Actively maintained with a recent release and ongoing repository activity. Nine runtime dependencies are all standard, well-established packages.
License in practice
Licensed under Apache Software License (permissive), allowing use in commercial and private projects with minimal restrictions.
Quickstart
pip install labelbox
from labelbox import Client
client = Client(api_key='your_api_key')
project = client.get_project('project_id')
labels = project.labels
Requires a valid Labelbox API key to authenticate; integration with Labelbox servers is necessary for most operations.
Verify before relying
- Whether the SDK supports offline annotation workflows or requires live server connectivity for all operations.
- Performance characteristics when working with large annotation datasets or high-volume label exports.
- Extent of support for custom annotation types beyond the built-in schema definitions.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (<3.14,>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 9 — geojson, google-api-core, lbox-clients, pydantic, python-dateutil, pyyaml, requests, strenum, tqdm |
| Maintenance | actively maintained — 17 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 595,808/month — #5,840 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: labelbox-7.11.0-py3-none-any.whl
Keywords: ai, edu, labelbox, labeling, llm, machinelearning, ml
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
surge-apiA Python SDK for accessing the Surge API to…
permissive · top 5,000 on PyPI
label-studioLabel Studio is a web-based data annotation…
permissive · top 15,000 on PyPI
connected-components-3dLabels connected components in 2D and 3D images…
copyleft · top 15,000 on PyPI
strawberry-graphqlStrawberry GraphQL is a Python library for…
permissive · top 5,000 on PyPI
superviselyPython SDK for the Supervisely computer vision…
unclear · top 15,000 on PyPI
simplegmailA Python wrapper around the Gmail API that…
permissive · top 15,000 on PyPI
argillaArgilla is a Python SDK client for a…
permissive · top 15,000 on PyPI
grapheneGraphene is a Python library for building…
permissive · top 1,000 on PyPI
dtlpymetricsCalculates and generates quality scores for…
unclear · top 15,000 on PyPI