---
title: Label Studio Python SDK
short: Python SDK
type: guide
tier: all
order: 404
order_enterprise: 404
meta_title: Label Studio Python SDK
meta_description: Overview information for the Label Studio Python SDK.
section: "Integrate & Extend"
The Label Studio Python SDK allows you to seamlessly integrate Label Studio into your data science and machine learning pipelines.
The SDK provides a set of predefined classes and methods to interact with the Label Studio API directly from your Python scripts, making it easier to manage projects, import tasks, and handle annotations.
pip install label-studio-sdk# Define the URL where Label Studio is accessible
LABEL_STUDIO_URL = 'YOUR_BASE_URL'
# API key can be either your personal access token or legacy access token
LABEL_STUDIO_API_KEY = 'YOUR_API_KEY'
# Import the SDK and the client module
from label_studio_sdk import LabelStudio
client = LabelStudio(base_url=LABEL_STUDIO_URL, api_key=LABEL_STUDIO_API_KEY)