Skip to main content

Encord 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, please visit Encord Python SDK.

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

pip install encord

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


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

encord-0.1.47.tar.gz (58.1 kB view details)

Uploaded Source

Built Distribution

encord-0.1.47-py3-none-any.whl (82.0 kB view details)

Uploaded Python 3

File details

Details for the file encord-0.1.47.tar.gz.

File metadata

  • Download URL: encord-0.1.47.tar.gz
  • Upload date:
  • Size: 58.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.7.12 Linux/5.15.0-1017-azure

File hashes

Hashes for encord-0.1.47.tar.gz
Algorithm Hash digest
SHA256 025b546814114d2b89844154465c464fde7461da10eab43ea10a77101b788699
MD5 280656d55c7d6c0f292c4d7d88345a1f
BLAKE2b-256 5a7d42d50acce855ac377fa7701fabbd65cf1290bb531d6fbc28a72c51f77fa2

See more details on using hashes here.

File details

Details for the file encord-0.1.47-py3-none-any.whl.

File metadata

  • Download URL: encord-0.1.47-py3-none-any.whl
  • Upload date:
  • Size: 82.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.7.12 Linux/5.15.0-1017-azure

File hashes

Hashes for encord-0.1.47-py3-none-any.whl
Algorithm Hash digest
SHA256 220b77595d4e1e16c0a2e9780c448e085d7dec2628971555f0f3ef489ef2107a
MD5 8566660cac2b545c0b3e8dea496c87b7
BLAKE2b-256 4dc70a3d68fc8e9f4a1b7dd33460b3a7713b6e7082b5ee338e0fafa7bc8e4da6

See more details on using hashes here.

Supported by

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