Projects
List, create, retrieve, update, and soft-delete project resources.
project = client.projects.create("Road scenes")
project = client.projects.get(project.id)
project.update(name="Road scenes v2", description="Night and rain")
for item in client.projects.list():
print(item.id, item.name)projects.create(name, ontology_hash=None) can attach a Workspace Ontology at creation. Project creation itself does not upload data or wait for processing. project.delete() soft-deletes the project and schedules backend cleanup; resolve the exact ID and downstream release dependencies before calling it.
Operating contract
Execution surface
Pinned unitlab==3.1.6 application environment on Python 3.10+.
Identity
Least-privilege API key supplied through approved configuration.
Target resolution
Stable resource IDs and an explicitly bounded target set.
Success evidence
Typed return fields, server-side state, and downstream acceptance of the result.
Failure and recovery boundary
Authentication or authorization fails
Stop, correct the service identity or access model, rotate exposed credentials, and rerun a read-only check.
Validation or entitlement rejects the operation
Correct the input or entitlement; do not retry an unchanged request.
A request times out
Inspect remote state before repeating a mutation because the server may have accepted it.
Asynchronous processing exceeds its deadline
Preserve the Batch Queue or release ID, continue bounded monitoring, and inspect item-level failures.
Only part of a batch succeeds
Keep successful identifiers, isolate failed rows, and retry only the corrected subset.
Related Unitlab capability guides: Unitlab’s data annotation platform