Push data

To create a dataset, add labels, and upload data all via the API, we'll first start by initialising a client.

Initialise the client

A client is an entity that we use to send requests to V7, and make sense of the responses we get back. To create one, enter the API key that you generated in V7 in the code below:

from darwin.client import Client

API_KEY = "YOUR_API_KEY_HERE"
client = Client.from_api_key(API_KEY)

Once a client object has been generated, we can create our dataset.