Package Contents

class flambe.export.Builder(component: Schema, destination: str, storage: str = 'local', compress: bool = False, pickle_only: bool = False, pickle_module=dill, pickle_protocol=DEFAULT_PROTOCOL)[source]

Bases: flambe.runnable.Runnable

Implement a Builder.

A builder is a simple object that can be used to create any Component post-experiment, and export it to a local or remote location.

Currently supports local, and S3 locations.


The secrets that the user provides. For example, ‘config[“AWS”][“ACCESS_KEY”]’

run(self, force: bool = False, **kwargs)

Run the Builder.

save_local(self, force)

Save an object locally.

Parameters:force (bool) – Wheter to use a non-empty folder or not

Get a boto Session

save_s3(self, force)

Save an object to s3 using awscli

Parameters:force (bool) – Wheter to use a non-empty bucket folder or not
class flambe.export.Exporter(**kwargs: Dict[str, Any])[source]

Bases: flambe.Component

Implement an Exporter computable.

This object can be viewed as a dummy computable. It is useful to group objects into a block when those get save, to more easily refer to them later on, for instance in an object builder.


Run the exporter.

Returns:False, as this is a single step Component.
Return type:bool