Skip to main content
Version: 25.5

snorkelai.sdk.client

Interfaces to interact with the Snorkel Flow REST API.

Most of the functions in the snorkelai.sdk.client module require a client context object — SnorkelSDKContext — that points to the Snorkel Flow instance:

import snorkelai.sdk.client as sf
ctx = sf.SnorkelSDKContext.from_endpoint_url()

All the functions under submodules are also available under snorkelai.sdk.client.

Examples

import snorkelai.sdk.client as sf
# get_node is available under snorkelai.sdk.client.nodes
sf.nodes.get_node(node)
# also available under snorkelai.sdk.client (recommended)
sf.get_node(node)

Since snorkelai.sdk.client submodules may be reorganized in the future, we recommend accessing functions directly from snorkelai.sdk.client to minimize the risk of future breaking changes.

Submodules

snorkelai.sdk.client.analysesAnalysis related functions.
snorkelai.sdk.client.annotationsAnnotations allow subject matter experts (SMEs) and LLMs to add labels to your data.
snorkelai.sdk.client.annotation_sourcesAnnotation source related functions.
snorkelai.sdk.client.applicationsApplication related functions.
snorkelai.sdk.client.batches(Annotation) batch related functions.
snorkelai.sdk.client.blocksBlock related functions.
snorkelai.sdk.client.commentsComment related functions.
snorkelai.sdk.client.ctxContext related classes.
snorkelai.sdk.client.dataset_viewsDataset views functions for datasets
snorkelai.sdk.client.datasourcesDatasource related functions.
snorkelai.sdk.client.evaluationEvaluation related functions.
snorkelai.sdk.client.external_modelsExternal model endpoints related functions.
snorkelai.sdk.client.filesFile storage related functions to upload and download files and directories.
snorkelai.sdk.client.file_storage_configsFile storage config related functions.
snorkelai.sdk.client.fm_suiteFoundation model suite related functions.
snorkelai.sdk.client.gtsGround truth related functions.
snorkelai.sdk.client.lf_packagesLF package related functions.
snorkelai.sdk.client.lf_templatesLF template related functions.
snorkelai.sdk.client.lfsLF related functions.
snorkelai.sdk.client.metricsMetric related functions.
snorkelai.sdk.client.modelsModel related functions.
snorkelai.sdk.client.nodesIn a data pipeline, nodes are configurable computation steps that organize and connect the flow of your data in a Directed Acyclic Graph (DAG).
snorkelai.sdk.client.object_storageMinio related functions.
snorkelai.sdk.client.operatorsOperator related functions.
snorkelai.sdk.client.secretsSecret store related functions.
snorkelai.sdk.client.syntheticSynthetic data related functions for generating synthetic data.
snorkelai.sdk.client.tagsTag-related functions.
snorkelai.sdk.client.training_setsTraining set related functions.
snorkelai.sdk.client.transferSDK functions for transferring assets between applications or nodes on a single Snorkel Flow instance.
snorkelai.sdk.client.utilsUtility functions.
snorkelai.sdk.client.usersUser related functions.