Skip to main content
Version: 0.93

snorkelflow.sdk.SnorkelFlowPackageDeployment

class snorkelflow.sdk.SnorkelFlowPackageDeployment(deployment_uid, **kwargs)

Bases: Deployment

SnorkelFlowPackageDeployment class represents a deployment of a Snorkel Flow application as a SnorkelFlowPackage. This class inherits from the Deployment class.

note
This class supports backward compatibility for the deprecated SnorkelFlowPackage deployment method. Creating new deployments is not supported. To create a new deployment, use MLflowDeployment.create instead.

__init__

__init__(deployment_uid, **kwargs)

Initializes a Deployment object. This constructor should not be called directly. Instead, use the Deployment.create method to create a deployment.

Parameters

NameTypeDefaultInfo
deployment_uidintThe unique identifier of the deployment.

Methods

__init__(deployment_uid, **kwargs)Initializes a Deployment object.
create(application, name)This method is not supported for SnorkelFlowPackageDeployment.
delete(deployment_uid)Delete a deployment based on the provided identifier.
execute(df)Execute a deployment on a pandas DataFrame.
get(deployment_uid)Fetches a Deployment object based on the provided identifier.
list([application])List all deployments for an application.
update(name)Update the metadata for the deployment.

create

classmethod create(application, name)

This method is not supported for SnorkelFlowPackageDeployment. Please use MLflowDeployment.create instead.

Parameters

NameTypeDefaultInfo
applicationUnion[str, int]The name or UID of the application to be exported.
nameOptional[str]The name of the deployment. If this is not provided, deployment name will be created using the application name. Deployment names are not unique and re-running this method with the same name will create a new deployment.

Return type

SnorkelFlowPackageDeployment