Skip to content

How to create a connector in with YData SDK?

To create a connector with YData SDK, chose the Connector you want to use from the list and import it, as shown in the code snippets bellow

Don't forget to set up your license key

    import os

    os.environ['YDATA_LICENSE_KEY'] = '{add-your-key}'

Create a Connector for Google Cloud Storage

from ydata.connectors import GCSConnector

connector = GCSConnector('{bucket name}', gcs_credentials={credentials file})

Create a Connector for a local file

from ydata.connectors import LocalConnector

connector = LocalConnector()

# Read the data
data = connector.read_file('data.csv')

Congrats! 🚀 You have now created your first Connector!

You can now use the Coonector to read Datasets, MultiDatasets, work with Metadata, Profile your data and generate Synthetic Datasets!

Get ready for your journey of improved quality data for AI.