pydra.engine.environments module
- class pydra.engine.environments.Container(image, tag='latest', root='/mnt/pydra', xargs=None)[source]
Bases:
Environment
Base class for container environments used by Docker and Singularity.
- Parameters:
image (str) – Name of the container image
tag (str) – Tag of the container image
root (str) – Base path for mounting host directories into the container
xargs (Union[str, List[str]]) – Extra arguments to be passed to the container
- class pydra.engine.environments.Docker(image, tag='latest', root='/mnt/pydra', xargs=None)[source]
Bases:
Container
Docker environment.
- class pydra.engine.environments.Environment[source]
Bases:
object
Base class for environments that are used to execute tasks. Right now it is assumed that the environment, including container images, are available and are not removed at the end TODO: add setup and teardown methods
- class pydra.engine.environments.Native[source]
Bases:
Environment
Native environment, i.e. the tasks are executed in the current python environment.