tunel package
Subpackages
- tunel.client package
- tunel.launcher package
- Subpackages
- Submodules
- tunel.launcher.base module
ContainerLauncher
Launcher
Launcher.assets
Launcher.assets_dir
Launcher.environ
Launcher.get_modules()
Launcher.home
Launcher.path
Launcher.prepare_render()
Launcher.remote_assets_dir
Launcher.remote_home
Launcher.remote_sockets
Launcher.remote_work
Launcher.run()
Launcher.run_app()
Launcher.scp_and_run()
Launcher.scp_get()
Launcher.slug
Launcher.stop()
Launcher.stop_app()
Launcher.username
Launcher.write_temporary_script()
- tunel.launcher.singularity module
- tunel.launcher.slurm module
- Module contents
- tunel.ssh package
- tunel.templates package
- tunel.utils package
Submodules
tunel.apps module
- class tunel.apps.App(app_config, app_dir, validate=True)[source]
Bases:
object
- add_args(extras)[source]
Extra is a list of args, in either format:
–name=value –flag
They must start with – to be considered.
- property app_dir
- property has_xserver
Boolean to indicate if an application has an xserver
- property job_name
- property launchers
- load_template()[source]
Given an app, load the template script for it.
This also provides the app directory for any relative template scripts.
- property name
- property post_command
Get a post command, if it exists
- property relative_dir
- property relative_path
tunel.defaults module
tunel.logger module
- class tunel.logger.ColorizingStreamHandler(nocolor=False, stream=<_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>, use_threads=False)[source]
Bases:
StreamHandler
- BLACK = 0
- BLUE = 4
- BOLD_SEQ = '\x1b[1m'
- COLOR_SEQ = '\x1b[%dm'
- CYAN = 6
- GREEN = 2
- MAGENTA = 5
- RED = 1
- RESET_SEQ = '\x1b[0m'
- WHITE = 7
- YELLOW = 3
- colors = {'CRITICAL': 1, 'DEBUG': 4, 'ERROR': 1, 'INFO': 2, 'WARNING': 3}
- emit(record)[source]
Emit a record.
If a formatter is specified, it is used to format the record. The record is then written to the stream with a trailing newline. If exception information is present, it is formatted using traceback.print_exception and appended to the stream. If the stream has an ‘encoding’ attribute, it is used to determine how to do the output to the stream.
- property is_tty
tunel.schemas module
tunel.settings module
- class tunel.settings.Settings(settings_file, validate=True)[source]
Bases:
SettingsBase
The settings class is a wrapper for easily parsing a settings.yml file.
We parse into a query-able class. It also gives us control to update settings, meaning we change the values and then write them to file. It’s basically a dictionary-like class with extra functions.