Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Labelbox Python API

Project description

Labelbox Python SDK

Labelbox is the enterprise-grade training data solution with fast AI enabled labeling tools, labeling automation, human workforce, data management, a powerful API for integration & SDK for extensibility. Visit Labelbox for more information.

The Labelbox Python API offers a simple, user-friendly way to interact with the Labelbox back-end.

Table of Contents



Prerequisite: Install pip

pip is a package manager for Python. On macOS, you can set it up to use the default python3 install via -

curl -o

If the installation completes with a warning re: pip not being in your path, you'll need to add it by modifying your shell config (.zshrc, .bashrc or similar). You might have to modify the command below depending on the version of python3 on your machine.

export PATH=/Users/<your-macOS-username>/Library/Python/3.8/bin:$PATH

Install using Python's Pip manager.

pip install labelbox



Labelbox uses API keys to validate requests. You can create and manage API keys on Labelbox. Pass your API key as an environment variable. Then, import and initialize the API Client.

user@machine:~$ export LABELBOX_API_KEY="<your api key here>"
user@machine:~$ python3

from labelbox import Client
client = Client()


Please consult


  1. Update the Makefile with your staging or prod API key. Ensure that docker has been installed on your system. Make sure the key is not from a free tier account.
  2. To test on staging:
make test-staging
  1. To test on prod:
make test-prod
  1. If you make any changes and need to rebuild the image used for testing, force a rebuild with the -B flag
make -B {build|test-staging|test_prod}

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for labelbox, version 2.6.0
Filename, size File type Python version Upload date Hashes
Filename, size labelbox-2.6.0-py3.9.egg (149.6 kB) File type Egg Python version 2.6.0 Upload date Hashes View
Filename, size labelbox-2.6.0-py3-none-any.whl (67.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size labelbox-2.6.0.tar.gz (55.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page