Authenticate with your Darwin team through the SDK to upload data, annotations, and more

To upload data and interact with your Darwin team through the SDK, you need to authenticate by instantiating a client. We use this to send requests to V7 & make sense of the responses we get back.

Initialise the client

You can create a client directly from an API key:

from darwin.client import Client

client = Client.from_api_key(API_KEY)

Or from your ~/.darwin/config.yamlfile. This file is created in your device's home directory the first time you use the CLI to authenticate with a team:

from darwin.client import Client

client = Client.local(team_slug='team_slug')

Once a client object has been created, it can be used to interact with your team.