snorkelflow.client
Interfaces to interact with the Snorkel Flow REST API.
Most of the functions in the snorkelflow.client
module require a client context
object — SnorkelFlowContext
— that points to the Snorkel Flow instance:
import snorkelflow.client as sf
ctx = sf.SnorkelFlowContext.from_kwargs()
All the functions under submodules are also available under snorkelflow.client
.
Examples:
import snorkelflow.client as sf
# get_node is available under snorkelflow.client.nodes
sf.nodes.get_node(node)
# also available under snorkelflow.client (recommended)
sf.get_node(node)
Since snorkelflow.client
submodules may be reorganized in the future, we recommend accessing functions directly from snorkelflow.client
to minimize the risk of future breaking changes.
Submodules
Submodules
snorkelflow.client.analyses | Analysis related functions |
snorkelflow.client.annotations | Annotations-related SDK functions. |
snorkelflow.client.annotation_sources | Annotation source related functions |
snorkelflow.client.applications | Application related functions |
snorkelflow.client.batches | (Annotation) batch related functions |
snorkelflow.client.blocks | Block related functions |
snorkelflow.client.comments | Comment related functions. |
snorkelflow.client.ctx | Context related classes |
snorkelflow.client.custom_pip | Custom pip install related functions |
snorkelflow.client.datasets | Dataset related functions |
snorkelflow.client.datasources | Datasource related functions |
snorkelflow.client.exports | Export related functions |
snorkelflow.client.file_storage_configs | File storage config related functions |
snorkelflow.client.fm_suite | Warm Start related functions. |
snorkelflow.client.gts | Ground truth related functions. |
snorkelflow.client.lf_packages | LF package related functions |
snorkelflow.client.lf_templates | LF template related functions |
snorkelflow.client.lfs | LF related functions |
snorkelflow.client.metrics | Metric related functions |
snorkelflow.client.models | Model related functions |
snorkelflow.client.monitoring | Monitoring related functions |
snorkelflow.client.nodes | Node related functions |
snorkelflow.client.object_storage | Minio related functions |
snorkelflow.client.operators | Operator related functions |
snorkelflow.client.secrets | Secret store related functions |
snorkelflow.client.studio | Studio related functions |
snorkelflow.client.tags | Tag-related functions. |
snorkelflow.client.training_sets | Training set related functions |
snorkelflow.client.transfer | SDK functions for transferring assets between applications or nodes on a single Snorkel Flow instance. |
snorkelflow.client.utils | Utility functions |
snorkelflow.client.users | User related functions |
snorkelflow.client.workflows | Workflow related functions |