10 releases (5 breaking)

0.6.0 Oct 31, 2024
0.5.0 Jul 22, 2024
0.4.0 Apr 10, 2024
0.3.0 Nov 7, 2023
0.1.0 Feb 14, 2023

#198 in Web programming

Download history 279/week @ 2024-07-30 363/week @ 2024-08-06 439/week @ 2024-08-13 442/week @ 2024-08-20 376/week @ 2024-08-27 302/week @ 2024-09-03 309/week @ 2024-09-10 651/week @ 2024-09-17 598/week @ 2024-09-24 450/week @ 2024-10-01 302/week @ 2024-10-08 503/week @ 2024-10-15 550/week @ 2024-10-22 1236/week @ 2024-10-29 1242/week @ 2024-11-05 593/week @ 2024-11-12

3,733 downloads per month

MIT license

170KB
3.5K SLoC

darwin-v7

Unofficial rust client for the V7 annotation platform

🚧 UNDER CONSTRUCTION

This crate aims to make all the functionality of both versions 1.0 and 2.0 of the V7 API available to applications written in Rust πŸ¦€.

❓ Why is this crate needed?

At franklin-ai much of our code is written in Rust and find that the guarantees provided by the Rust borrow checker and type safety make our data processing pipelines more reliable, secure and much faster than previous pipelines written in Python. Another goal of this crate is to facilitate some ergonomic improvements to the darwin-cli following extensive usage.

This project is completely independent of the Python package provided by V7 labs and is being written using a combination of the publicly available V7 documentation, previous experience and a thorough use of web browser inspectors.

πŸ—οΈ State of API Compatibility

The following table summarises the current state of the API compatibility for the crate.

The priorities in listed in the table below are purely driven by internal company goals and requirements. However if specific API endpoints are required please lodge an Issue and we will attempt to prioritise the feature.

API Endpoint API Version Status Rust Method Unit Tested Integration Tested Priority Comments
Annotation Classes
List Annotation Classes 1.0/2.0 ❌ ❌ ❌ πŸ”Ό
Create Annotation Classes 1.0/2.0 ❌ ❌ ❌ πŸ”Ό
Update Annotation Classes 1.0/2.0 ❌ ❌ ❌ πŸ”Ό
Delete Annotation Classes 1.0/2.0 ❌ ❌ ❌ πŸ”Ό
Async CSV Reports
List Async CSV Reports 2.0 ❌ ❌ ❌ ▢️
Show Async CSV Reports 2.0 ❌ ❌ ❌ ▢️
Create Async CSV Reports 2.0 ❌ ❌ ❌ ▢️
Delete Async CSV Reports 2.0 ❌ ❌ ❌ ▢️
Comments
List comment threads on Item 2.0 ❌ ❌ ❌ πŸ”½οΈ
Create a new comment with new comment thread 2.0 βœ… ❌ ❌ πŸ”½οΈ
Delete comment 2.0 ❌ ❌ ❌ πŸ”½
Update comment 2.0 ❌ ❌ ❌ πŸ”½
Delete a comment thread 2.0 ❌ ❌ ❌ πŸ”½
Update a comment thread 2.0 ❌ ❌ ❌ πŸ”½
List thread comments 2.0 ❌ ❌ ❌ πŸ”½
Create a comment in a thread 2.0 ❌ ❌ ❌ πŸ”½
Datasets
Create Dataset 1.0/2.0 βœ… Dataset::create_dataset βœ… βœ… ▢️
Update Dataset 1.0/2.0 ❌ ❌ ❌ ▢️
List Dataset 1.0/2.0 βœ… Dataset::list_datasets βœ… βœ… ▢️
Show Dataset 1.0/2.0 βœ… Dataset::show_dataset βœ… βœ… ▢️
Show Dataset Details 1.0/2.0 ❌ ❌ ❌ ▢️
List Dataset Items 1.0 βœ… Dataset::list_dataset_items βœ… βœ… ▢️
List Dataset Items 2.0 βœ… Dataset::list_dataset_items_v2 βœ… βœ… ▢️
List Dataset Folders 1.0/2.0 ❌ ❌ ❌ πŸ”½
Show Item Counts 1.0 ❌ ❌ ❌ β›” To be deprecated by V7
Tag Items 1.0 ❌ ❌ ❌ πŸ”½
Untag Items 1.0 ❌ ❌ ❌ πŸ”½
Add Instructions 1.0/2.0 ❌ ❌ ❌ πŸ”Ό
Get Items Report 1.0/2.0 βœ… Dataset::get_item_reports ❌ ❌ πŸ”Ό
Archive Dataset 1.0/2.0 βœ… Dataset::archive_dataset βœ… βœ… ▢️
Add Workforce Managers to Dataset 2.0 ❌ ❌ ❌ πŸ”Ό
Exports
Generate Export 1.0/2.0 🚧 Dataset::generate_export ❌ ❌ πŸ”Ό Not all arguments parameterized
Delete Export 1.0/2.0 ❌ ❌ ❌ ▢️
List Exports 1.0/2.0 🚧 ❌ ❌ πŸ”ΌοΈ
External Storage
List External Storage Settings 1.0/2.0 ❌ ❌ ❌ πŸ”½οΈ
Show External Storage Endpoint 1.0/2.0 ❌ ❌ ❌ πŸ”½οΈ
Update External Storage 1.0/2.0 ❌ ❌ ❌ πŸ”½οΈ
Create External Storage 1.0/2.0 ❌ ❌ ❌ πŸ”½οΈ
Mark External Storage as default 1.0/2.0 ❌ ❌ ❌ πŸ”½οΈ
Imports
Confirm uploaded files 2.0 ❌ ❌ ❌ πŸ”½οΈ
Register existing data for processing 2.0 ❌ ❌ ❌ πŸ”½οΈ
Get URLs for file upload 2.0 ❌ ❌ ❌ πŸ”½οΈ
Register existing read-only data 2.0 βœ… ❌ ❌ πŸ”½οΈ
Register new data for upload 2.0 ❌ ❌ ❌ πŸ”½οΈ
Items
Set Workflow Stage 1.0 βœ… Dataset::set_stage ❌ βœ… ▢️
Archive 1.0/2.0 ❌ ❌ ❌ πŸ”½οΈ
Restore 1.0/2.0 ❌ ❌ ❌ πŸ”½οΈ
Set Priority 1.0/2.0 ❌ ❌ ❌ πŸ”½οΈ
List Video Frames 1.0 ❌ ❌ ❌ πŸ”½οΈ
Move Items 1.0/2.0 ❌ ❌ ❌ πŸ”½οΈ v2 equivalent
Register Uploading Items 1.0 ❌ ❌ ❌ πŸ”½οΈ
Get Item counts by classes 2.0 ❌ ❌ ❌ πŸ”½οΈ
Sign m3u8 index for streaming 2.0 ❌ ❌ ❌ ⏬️
List slot sections 2.0 ❌ ❌ ❌ ⏬️
Set Layout 2.0 ❌ ❌ ❌ ⏬️
List Item IDs 2.0 ❌ ❌ ❌ πŸ”½οΈ
List Folders 2.0 ❌ ❌ ❌ ⏬️
Delete Items 2.0 ❌ ❌ ❌ ▢️️
List Items 2.0 ❌ ❌ ❌ ▢️️
List slot sections with tiles 2.0 ❌ ❌ ❌ πŸ”½οΈοΈ
Get Item counts by stages 2.0 ❌ ❌ ❌ πŸ”½οΈοΈ
Get Item counts 2.0 ❌ ❌ ❌ πŸ”½οΈοΈ
Get Item counts by status 2.0 ❌ ❌ ❌ πŸ”½οΈοΈ
Get Item 2.0 ❌ ❌ ❌ ▢️️️
Workflow Stages
Assign 1.0 βœ… Dataset::set_stage ❌ βœ… ▢️
Skip 1.0 ❌ ❌ ❌ πŸ”½οΈοΈ
Unskip 1.0 ❌ ❌ ❌ πŸ”½οΈοΈ
Complete 1.0 ❌ ❌ ❌ πŸ”½οΈοΈ
Set Auto-complete 1.0 ❌ ❌ ❌ ⏬
Workflows
Assign items to user 2.0 βœ… WorkflowV2::assign_items ❌ ❌ ▢️
Execute commands for item 2.0 ❌ ❌ ❌ ▢️
Request work batch 2.0 ❌ ❌ ❌ ▢️
Set Stage 2.0 ❌ ❌ ❌ ▢️
List Workflows 2.0 βœ… WorkflowV2::list_workflows ❌ ❌ ▢️
Create Workflows 2.0 βœ… Dataset::set_workflow_v2 ❌ ❌ ▢️
Archive Workflows 2.0 ❌ ❌ ❌ ▢️
Get Workflows 2.0 βœ… Dataset::get_workflows_v2 ❌ ❌ ▢️
Update Workflows 2.0 ❌ ❌ ❌ ▢️
Unlink dataset from a workflow by workflow id 2.0 ❌ ❌ ❌ ▢️
Teams
List Memberships 1.0/2.0 βœ… Team::list_memberships ❌ βœ… ▢️
Create Invitations 1.0 βœ… Team::list_memberships ❌ βœ… ▢️
Time Tracking
Get time summary 2.0 ❌ ❌ ❌ ▢️
Webhooks
Index 1.0 ❌ ❌ ❌ ⏬
Create 1.0 ❌ ❌ ❌ ⏬
Update 1.0 ❌ ❌ ❌ ⏬
Delete 1.0 ❌ ❌ ❌ ⏬
Webhooks V2
Get responses by workflow id 1.0 ❌ ❌ ❌ ⏬
Get responses by workflow id and stage id 1.0 ❌ ❌ ❌ ⏬
Test webhook endpoint 1.0 ❌ ❌ ❌ ⏬

Dependencies

~8–22MB
~316K SLoC