Cord Python API Client
Project description
Cord Python API Client
Where the world creates and manages training data
💻 Features
- Minimal low-level Python client that allows you to interact with Cord's API
- Supports Python:
3.6
,3.7
, and3.8
✨ Relevant Links
💡 Getting Started
For full documentation, visit Cord Python API Client.
First, install Cord Python API Client using the pip package manager:
pip install cord-client-python
Then, create an API key for authentication via the Cord web app. Pass the project ID and API key as environment variables or pass them explicitly when you initialise the CordClient object.
export CORD_PROJECT_ID="<project_id>"
export CORD_API_KEY="<project_api_key>"
Passing the project ID and API key as environment variables, you can initialise the Cord client directly.
from cord.client import CordClient
client = CordClient.initialise()
If you want to avoid setting environment variables, you can initialise the Cord client by passing the project ID and API key as strings.
from cord.client import CordClient
client = CordClient.initialise("<resource_id>", "<resource_api_key>")
If you wish to instantiate several client objects and avoid passing parameters each time, you can instantiate a CordConfig object, pass the project ID and API key as strings, and initialise the client with the config object.
from cord.client import CordClient
from cord.client import CordConfig
config = CordConfig("<resource_id>", "<resource_api_key>")
client = CordClient.initialise_with_config(config)
Once you have instantiated a Cord client, it is easy to fetch information associated with the given project ID.
from cord.client import CordClient
client = CordClient.initialise()
project = client.get_project()
🐛 Troubleshooting
Please report bugs to GitHub Issues. Just make sure you read the Cord documentation and search for related issues first.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for cord-client-python-0.1.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16574e8670131f7340daf79d3e225d87b0c7f335b851416436ae8b9ad9456daa |
|
MD5 | 418a8fb10b41e9c8489dda6bee1a619a |
|
BLAKE2b-256 | c55ad4de8634c1544b5092b278da9aab16f8de15b44eb3496d7dee724da68e9c |
Hashes for cord_client_python-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6d6e095081c7064208a6f89353684145e947ab0b9408e01f9e241d94d07bcc1 |
|
MD5 | 85c386c8515f29a995d8ef8168afe2db |
|
BLAKE2b-256 | 8b5cfaf66b6c880467d10cc26ef87d5aea91d7f5eeb97101a55433ce0f78305c |