queenbee.io.artifact_source module

Queenbee ArtifactSource class.

ArtifactSource is a configuration to a source system to acquire artifacts from.

class queenbee.io.artifact_source.HTTP(*, type: ConstrainedStrValue = 'HTTP', annotations: Dict[str, Any] = None, url: str)[source]

Bases: _ArtifactSource

HTTP Source

A web HTTP to an FTP server or an API for example.

property referenced_values: Dict[str, List[str]]
type: ConstrainedStrValue
url: str
class queenbee.io.artifact_source.ProjectFolder(*, type: ConstrainedStrValue = 'ProjectFolder', annotations: Dict[str, Any] = None, path: str = None)[source]

Bases: _ArtifactSource

Project Folder Source

This is the path to a folder where files and folders can be sourced. In the context of a desktop run Workflow this folder will correspond to a local folder. In the context of a workflow run on Pollination this folder will correspond to a Project scoped folder.

path: str
property referenced_values: Dict[str, List[str]]

Get referenced variables if any.

Returns:

Dict[str, List[str]] – A dictionary where keys are attributes and values

are lists contain referenced value string.

type: ConstrainedStrValue
class queenbee.io.artifact_source.S3(*, type: ConstrainedStrValue = 'S3', annotations: Dict[str, Any] = None, key: str, endpoint: str, bucket: str, credentials_path: str = None)[source]

Bases: _ArtifactSource

S3 Source

An S3 bucket artifact Source.

bucket: str
credentials_path: str
endpoint: str
key: str
property referenced_values: Dict[str, List[str]]
type: ConstrainedStrValue