Note

This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the user guide for the big picture.

hopla.config.Config

class hopla.config.Config(**options)[source]

Bases: object

Context manager for modifying execution options when the Executor is called.

Parameters:
**optionsdict

Keyword arguments intercepted are: - verbose : bool, default False - print information or not. - dryrun : bool, default False - execute commands or not. - delay_s : int, default 60 - refresh interval in seconds.

Notes

  • The context variable hopla_options holds the current configuration.

  • Options are scoped to the with block and automatically restored afterward.

__init__(**options)[source]

Examples using hopla.config.Config

Basic example on how to use the CCC cluster

Basic example on how to use the CCC cluster

Basic example on how to use the CCC cluster using multi-tasks

Basic example on how to use the CCC cluster using multi-tasks

Basic example on how to use the PBS cluster

Basic example on how to use the PBS cluster

Basic example on how to use the SLURM cluster

Basic example on how to use the SLURM cluster