Skip to content

MarsSu0618/api-client-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Datasaur API Client Sample

Pre-requisite

pip3 install -r requirements.txt

API Documentation

API Documentation can be found here.

Export Project

python3 export.py https://datasaur.ai <client_id> <client_secret> <project_id> <filename> <export_format> <output_dir>
python3 export.py https://datasaur.ai <client_id> <client_secret> <project_id> datasaur conll_2003 ./output

Create Doc Based Labeling by Using External Files

python3 create_project_doc_file_url.py https://datasaur.ai <client_id> <client_secret> <team_id> 

Create Doc Based Labeling by Uploading Files (Simulation Only)

python3 create_project_doc.py https://datasaur.ai <client_id> <client_secret> <team_id> <file_count>

Create Row Based Labeling

python3 create_project_row.py https://datasaur.ai <client_id> <client_secret> <team_id> <path_to_file>
python3 create_project_row.py https://datasaur.ai <client_id> <client_secret> <team_id> ./sample-files/row-based/bookcover-multiplefiles

Create Token Based Labeling

python3 create_project_token.py https://datasaur.ai <client_id> <client_secret> <team_id> <path_to_file>
python3 create_project_token_multiple_files.py https://datasaur.ai <client_id> <client_secret> <team_id> ./sample-files/token-based/multiple-files

Releases

No releases published

Packages

No packages published

Languages

  • Python 84.4%
  • TypeScript 15.6%