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 sai
ctx = sai.SnorkelSDKContext.from_endpoint_url()
All the functions under submodules are also available under snorkelai.sdk.client
.
Examples
import snorkelai.sdk.client as sai
# get_annotation_sources is available under snorkelai.sdk.client.annotation_sources
sai.annotation_sources.get_annotation_sources()
# also available under snorkelai.sdk.client (recommended)
sai.get_annotation_sources() # noqa: F405
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
Submodules
snorkelai.sdk.client.annotation_sources | Annotation source related functions. |
snorkelai.sdk.client.connector_configs | Dataset views functions for datasets |
snorkelai.sdk.client.ctx | Context related classes. |
snorkelai.sdk.client.external_models | External model endpoints related functions. |
snorkelai.sdk.client.files | File storage related functions to upload and download files and directories. |
snorkelai.sdk.client.fm_suite | Foundation model suite related functions. |
snorkelai.sdk.client.secrets | Secret store related functions. |
snorkelai.sdk.client.synthetic | Synthetic data related functions for generating synthetic data. |
snorkelai.sdk.client.utils | Utility functions. |
snorkelai.sdk.client.users | User related functions. |