Skip to main content

Cord Python SDK Client

Project description

Encord Python API Client

Cord logo

license

The data engine for computer vision

💻 Features

  • Minimal low-level Python client that allows you to interact with Encord's API
  • Supports Python: 3.7, 3.8, 3.9, and 3.10

✨ Relevant Links

💡 Getting Started

For full documentation, visit Encord Python API Client.

First, install Encord Python API Client using the pip package manager:

pip install cord-client-python

Then, create an API key for authentication via the Encord web app. Pass the resource ID and API key as environment variables or pass them explicitly when you initialise the EncordClient object.

export ENCORD_PROJECT_ID="<project_id>"
export ENCORD_API_KEY="<project_api_key>"

Passing the resource ID and API key as environment variables, you can initialise the Encord client directly.

from encord.client import EncordClient

client = EncordClient.initialise()

If you want to avoid setting environment variables, you can initialise the Encord client by passing the resource ID and API key as strings.

from encord.client import EncordClient

client = EncordClient.initialise("<resource_id>", "<resource_api_key>")

If you wish to instantiate several client objects and avoid passing parameters each time, you can instantiate a EncordConfig object, pass the resource ID and API key as strings, and initialise the client with the config object.

from encord.client import EncordClient
from encord.client import EncordConfig

config = EncordConfig("<resource_id>", "<resource_api_key>")
client = EncordClient.initialise_with_config(config)

Once you have instantiated an Encord client, it is easy to fetch information associated with the given resource ID.

from encord.client import EncordClient

client = EncordClient.initialise()
project = client.get_project()

🐛 Troubleshooting

Please report bugs to GitHub Issues. Just make sure you read the Encord documentation and search for related issues first.

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

cord-client-python-0.1.34.tar.gz (40.5 kB view details)

Uploaded Source

Built Distribution

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

cord_client_python-0.1.34-py3-none-any.whl (57.5 kB view details)

Uploaded Python 3

File details

Details for the file cord-client-python-0.1.34.tar.gz.

File metadata

  • Download URL: cord-client-python-0.1.34.tar.gz
  • Upload date:
  • Size: 40.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.7.12 Linux/5.11.0-1028-azure

File hashes

Hashes for cord-client-python-0.1.34.tar.gz
Algorithm Hash digest
SHA256 aba58689a81b14de71e26c088012fa6abd4f3c2bacb30fe035514bac5ad64a36
MD5 d2f1ad7a2712db0c248e24f4005c2a18
BLAKE2b-256 eebe411031231744b42996087924cf5b2d878cb77318c63e1eabde9e216c9b49

See more details on using hashes here.

File details

Details for the file cord_client_python-0.1.34-py3-none-any.whl.

File metadata

  • Download URL: cord_client_python-0.1.34-py3-none-any.whl
  • Upload date:
  • Size: 57.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.7.12 Linux/5.11.0-1028-azure

File hashes

Hashes for cord_client_python-0.1.34-py3-none-any.whl
Algorithm Hash digest
SHA256 56ead3a05288b0022361cf89818968e7750a5e4652cdabc5b44528a2651c8517
MD5 48c85dc7a7fb387e12daf989f41aeb89
BLAKE2b-256 c29245c48e8277fded95f09b23541dce565e57946bd72244eadc4854709f2343

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