Local Export
The SDK provides functionality to export project data locally. This feature allows you to export annotations in various formats for further analysis or backup purposes. The export created will be available in the exports section of Labellerr dashboard. Here is where you can find the export in our tool.Acceptable values:
- statuses: File workflow statuses to include in the export
None,'assigned','review','r_assigned','client_review','cr_assigned','accepted','rejected','client_rejected','skipped','r_skipped','cr_skipped','critical','r_critical','cr_critical'
- export_format: Output format for the exported data
'json','coco_json','csv','png'
What do these status values mean?
What do these status values mean?
File Status Definitions:
None- Unlabeled or pre-annotated files that haven’t entered the annotation workflow yetassigned- Files assigned to an annotator, annotation work is in progressreview- Files ready for review (passed annotation phase)r_assigned- Files assigned to a reviewer, review work is in progressclient_review- Files that have passed internal review and are now in client review stagecr_assigned- Files assigned for client review, client review work is in progressaccepted- Files that have completed all stages and passed by client (final approved state)rejected- Files rejected by the reviewer during review stageclient_rejected- Files rejected by the client during client review stageskipped- Files skipped by the annotator during annotation stager_skipped- Files skipped by the reviewer during review stagecr_skipped- Files skipped by the client during client review stagecritical- Files skipped 2 times in annotation stage, will go into blocked stater_critical- Files skipped 2 times in review stage, will go into blocked statecr_critical- Files skipped 2 times in client review stage, will go into blocked state
Example Usage:
Local Export Example
S3 Export
The SDK also provides functionality to export project data directly to AWS S3 buckets. This feature allows you to export annotations in various formats directly to your S3 storage for automated workflows, backup, or integration with other systems. The export created will be available in the exports section of Labellerr dashboard. Here is where you can find the export in our tool.Prerequisites:
Before creating an S3 export, you need to:- Create an AWS S3 connection using your AWS credentials
- Get the
connection_idfrom the created connection
Example Usage:
S3 Export Example
- The
export_folder_pathshould follow the pattern:bucket_name/path/to/folder/(the trailing slash is important) - Make sure your AWS credentials have write permissions to the specified S3 bucket
- You can reuse the same
connection_idfor multiple exports without creating a new connection each time - The export will be uploaded directly to your S3 bucket at the specified path
List All Exports
The SDK provides functionality to retrieve all exports associated with a project. This method returns both completed and in-progress exports, making it easy to track and manage your export history.Example Usage:
List All Exports Example
list_exports() method returns an ExportsListResponse object with two properties:
completed: List of all completed exportsin_progress: List of all exports currently being processed
- Track export history for a project
- Find specific export IDs for status checks or downloads
- Monitor ongoing export operations
- Audit export activities
- Automate export management workflows
Incremental Export with Timestamp Filtering
New Feature: Filter files based on their last updated time to create incremental exports!
Key Features:
- Timestamp Format: Unix timestamp in milliseconds
- Filter Criteria: Files updated after the specified timestamp
- Works with: Both local and S3 export destinations
- Optional Parameter: When not provided, all files matching status criteria are exported
Example Usage - Incremental Local Export:
Incremental Export Example
Example Usage - Incremental S3 Export:
Incremental S3 Export Example
Practical Use Cases:
Incremental Backups
Export only files modified since your last backup, reducing storage and bandwidth
Daily/Weekly Exports
Automate exports for specific time windows (last 24 hours, last week, etc.)
Change Tracking
Monitor and export recently modified annotations for quality control
Workflow Automation
Create automated pipelines that process only recent changes
- The timestamp must be in milliseconds (multiply seconds by 1000)
- The filter is based on the file’s “last updated time” in the system
- Combines with status filters - only files matching both criteria are exported
- Works seamlessly with both local and S3 export destinations
Check Export Status
This method allows users to check the export status of a previously triggered export task (both local and S3 exports). The status will indicate whether the export is still processing, completed, or failed. For local exports, if successful, the function also sends the downloadable file link URL with its expiration time and status. For S3 exports, it indicates when the export has been successfully uploaded to your S3 bucket.Example Usage :
Check Export Status Example
Fetch Export Download URL
This endpoint is used to fetch the downloadable link for a previously created local export using the export’s UUID and report ID. The response includes a signed URL from which the export file can be downloaded with the time left to expire. Note: This method is only applicable for local exports. For S3 exports, the files are directly uploaded to your S3 bucket at the specified path.Example Usage :
Fetch Download URL Example
Export Management Features Summary
List All Exports
Retrieve all completed and in-progress exports for your project
Incremental Exports
Filter files by timestamp for efficient incremental backups
Local Export
Export annotations to downloadable files
S3 Export
Export directly to AWS S3 buckets
Export Status
Monitor export progress with automatic download URLs
Download URLs
Fetch signed download links for completed exports
Quick Reference
Export Formats
| Format | Description | Use Case |
|---|---|---|
json | Standard JSON format | General purpose, easy to parse |
coco_json | COCO dataset format | Computer vision, object detection |
csv | Comma-separated values | Spreadsheet analysis, reports |
png | Image format | Visual verification, masks |
Export Statuses
| Status | Description |
|---|---|
review | Files in review stage |
r_assigned | Files assigned for review |
client_review | Files in client review |
cr_assigned | Files assigned for client review |
accepted | Accepted/completed files |

