Get Started
- Global and US Encord Platforms
- 1. Prerequisites and Installation
- 2. Register Cloud Data
- 3. Set Up Your Project and Team
- Export Labels
General
Index
Projects
Labels
- Working with Labels
- Delete Labels/Classifications
- Label / Activity logs
- Bitmasks
- Audio Labels and Classifications
- HTML Files and Labels
- Text Files and Labels
- PDF Labels and Classifications
- Import Labels/Annotations
- Import Labels/Annotations to Consensus Branches
- Import COCO Labels/Annotations
- Copy labels between Projects
Datasets
Projects and Workflows
Change Project Status
Learn how to change the status of a Project using Encord’s Python SDK.
You can programmatically change the status of your projects using ProjectStatus
.
You can change a Project’s status to any of the following:
NOT_STARTED
IN_PROGRESS
PAUSED
COMPLETED
CANCELLED
ARCHIVED
# Import dependencies
from encord import EncordUserClient
from encord.project import ProjectStatus
# User input
SSH_PATH = "/Users/chris-encord/ssh-private-key.txt" # Specify the file path to your SSH key
PROJECT_ID = "c96d3d2a-eeb0-433e-8298-27513f7e4585" # Specify the unique Project ID for the Project
# Authenticate with Encord
user_client: EncordUserClient = EncordUserClient.create_with_ssh_private_key(
ssh_private_key_path=SSH_PATH,
# For US platform users use "https://api.us.encord.com"
domain="https://api.encord.com",
)
project = user_client.get_project(PROJECT_ID)
print(project.status)
project.set_status(ProjectStatus.COMPLETE) # Specify the Project status change you want to make
project = user_client.get_project(PROJECT_ID)
print(project.status)
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.