4.3. sciexp2.exprun.files

Source: sciexp2/exprun/files.py

Functions

install Install given package using shell.
install_deps Install all needed system packages.
rsync Synchronize two directories using rsync.

4.3.1. install

install(shell, package)

Install given package using shell.

4.3.2. install_deps

install_deps(shell)

Install all needed system packages.

Must be called on a local shell before using other functions that require a shell, and before using other functions through the same shell.

Parameters:
shell

Target system.

4.3.3. rsync

rsync(src_shell, src_path, dst_shell, dst_path, run_shell=None, args=[])

Synchronize two directories using rsync.

Parameters:
src_shell

Source shell.

src_path

Source directory.

dst_shell

Destination shell.

dst_path

Destination directory.

run_shell : optional

Shell where to run rsync. Default is local machine.

args : list of str, optional

Additional arguments to rsync. Default is none.