Skip to main content

API client for the online platform ESDD (evaluation, standardization, and derived data)

Project description

ESDD Client

PyPI

This is the API client for the online platform ESDD (evaluation, standardization, and derived data). Install it with pip install esdd-client.

Basic commands

Authentication via Github

# Get authorization URL
esdd auth github
# you also can use MPDS platform for login
# Copy URL to browser, authorize, get access token from url

# set token
esdd auth set-token <token>

# Check token
esdd auth info

Working with tasks

# Create task
esdd task create --question "Annotate dataset" --bid 50

# List tasks
esdd task list
esdd task list --status pending --limit 5

# Get task details
esdd task get 123

# Assign to user
esdd task assign 123 456

# Start task
esdd task start 123

# Finalize with data
esdd task update 123 --json_data '{"result": "completed"}'
esdd task finalize 123

# Approve/Reject
esdd task approve 123
esdd task reject 123

Complete workflow example

# 1. Login as admin
esdd auth set-token <admin_token>

# 2. Create and assign task
esdd task create --question "Validate data" --assign-to 789 --bid 100

# 3. Login as assessor
esdd auth logout
esdd auth set-token <assessor_token>

# 4. Perform a task
esdd task list
esdd task start <task_id>
esdd task finalize <task_id>

# 5. Return as admin
esdd auth logout
esdd auth set-token <admin_token>
esdd  task approve <task_id>

License

MIT © Gumar Arutynian, Materials Platform for Data Science OÜ

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

esdd_client-0.1.9.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

esdd_client-0.1.9.0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file esdd_client-0.1.9.0.tar.gz.

File metadata

  • Download URL: esdd_client-0.1.9.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for esdd_client-0.1.9.0.tar.gz
Algorithm Hash digest
SHA256 0c42b3ae9fbb2101a2fdaa3d6332bc837ca725dcc2568874d33eb0e55e407c6a
MD5 3bb48cd3ae9dae1c501d987611639d76
BLAKE2b-256 dc788a53d7001f50bd686c8c032d45462ec6300ff8ea7e678b238843d1d41794

See more details on using hashes here.

File details

Details for the file esdd_client-0.1.9.0-py3-none-any.whl.

File metadata

  • Download URL: esdd_client-0.1.9.0-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for esdd_client-0.1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd5d1389f4325c4b7b1824ee073409077a4d2a57e1f40dbed6ed7a2269f5c94c
MD5 bc41f5646e23bbbb3c085d5615c46052
BLAKE2b-256 5273598499be5dd2a840641e780238f3d7e3d5a4d43747b2e29e7d2ff4bb4d0c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page