Skip to main content
Version: 0.19.3

JSON example

from featurestore import Client, JSONFile

# Initialise feature store client
client = Client("url")
client.auth.login()

# Set project specifics
project = client.projects.create("demo")

# Create the json source
json =
JSONFile("wasbs://data@featurestoretesting.blob.core.windows.net/weather.json", multiline=True)
json_schema = client.extract_schema_from_source(json)

# Register the feature set
my_feature_set = project.feature_sets.register(json_schema, "feature_set_name", primary_key=["key_name"])

# Ingest to cache
my_feature_set.ingest(json)

# Retrieve feature set
ref = my_feature_set.retrieve()
ref.download()

Feedback