Table Of Contents

Previous topic

nestly Package

Next topic

Examples

This Page

scripts Package

nestrun Module

nestrun.py - run commands based on control dictionaries.

class nestly.scripts.nestrun.NestlyProcess(command, working_dir, popen, log_name='log.txt')[source]

Bases: object

Metadata about a process run

complete(return_code)[source]

Mark the process as complete with provided return_code

log_tail(nlines=10)[source]

Return the last nlines lines of the log file

running_time[source]
terminate()[source]
nestly.scripts.nestrun.extant_file(x)[source]

‘Type’ for argparse - checks that file exists but does not open.

nestly.scripts.nestrun.invoke(max_procs, data, json_files)[source]
nestly.scripts.nestrun.main()[source]
nestly.scripts.nestrun.parse_arguments()[source]

Grab options and json files.

nestly.scripts.nestrun.template_subs_file(in_file, out_fobj, d)[source]

Substitute template arguments in in_file from variables in d, write the result to out_fobj.

nestly.scripts.nestrun.worker(data, json_file)[source]

Handle parameter substitution and execute command as child process.

nestly.scripts.nestrun.write_summary(all_procs, summary_file)[source]

Write a summary of all run processes to summary_file in tab-delimited format.

nestagg Module

Aggregate results of nestly runs.

nestly.scripts.nestagg.comma_separated_values(s)[source]
nestly.scripts.nestagg.delim(arguments)[source]

Execute delim action.

Parameters:arguments – Parsed command line arguments from main()
nestly.scripts.nestagg.main(args=['-E', '-b', 'readthedocs', '-D', 'language=en', '.', '_build/html'])[source]

Command-line interface for nestagg

nestly.scripts.nestagg.warn(message)[source]