io#

Various input / output functionality.

Functions

common_parent(files)

Provides the common parent directory for a list of files.

create_default_parser()

Creates the default maize commandline arguments.

expand_shell_vars(path)

Expands paths containing shell variables to the full path

get_plugins(package)

Finds packages in a given namespace.

load_file(file[, name])

Load a python file as a module.

parse_groups(parser)

Parse commandline arguments into separate groups.

read_input(path)

Reads an input file in JSON, YAML or TOML format and returns a dictionary.

remove_dir_contents(path)

Removes all items contained in a directory

sendtree(files, dest[, mode])

Links, copies or moves multiple files to a destination directory and preserves the structure.

setup_workflow(workflow)

Sets up an initialized workflow so that it can be run on the commandline as a script.

with_fields(data, keys)

Provide a dictionary based on a subset of object attributes.

with_keys(data, keys)

Provide a dictionary subset based on keys.

write_input(path, data)

Saves a dictionary in JSON, YAML or TOML format.

Classes

Config(packages, scratch, batch_config, ...)

Global configuration options.

NodeConfig(python, modules, commands, ...)

Node specific configuration.

NodeConfigDict

Dictionary form of NodeConfig