cmd Package

cmd Package

fastr.utils.cmd.find_commands()[source]
fastr.utils.cmd.get_command_module(command)[source]
fastr.utils.cmd.main()[source]
fastr.utils.cmd.print_help(commands=None)[source]

cat Module

fastr.utils.cmd.cat.fastr_cat(infile, path)[source]
fastr.utils.cmd.cat.get_parser()[source]
fastr.utils.cmd.cat.main()[source]

Print information from a job file

dump Module

fastr.utils.cmd.dump.create_zip(directory, output_file)[source]
fastr.utils.cmd.dump.get_parser()[source]
fastr.utils.cmd.dump.main()[source]

Dump the contents of a network run tempdir into a zip for remote assistance

execute Module

fastr.utils.cmd.execute.get_parser()[source]
fastr.utils.cmd.execute.main()[source]

Execute a fastr job file

extract_argparse Module

fastr.utils.cmd.extract_argparse.cardinality_from_nargs(value)[source]
fastr.utils.cmd.extract_argparse.datatype_from_type(type_, metavar)[source]
fastr.utils.cmd.extract_argparse.extract_argparser(filepath)[source]
fastr.utils.cmd.extract_argparse.find_argparser(entry, basename='/home/docs/checkouts/readthedocs.org/user_builds/fastr/envs/stable/bin/sphinx-build')[source]
fastr.utils.cmd.extract_argparse.get_parser()[source]
fastr.utils.cmd.extract_argparse.main()[source]

Create a stub for a Tool based on a python script using argparse

provenance Module

fastr.utils.cmd.provenance.get_parser()[source]
fastr.utils.cmd.provenance.get_prov_document(result)[source]
fastr.utils.cmd.provenance.main()[source]

Get PROV information from the result pickle.

pylint Module

fastr.utils.cmd.pylint.get_parser()[source]
fastr.utils.cmd.pylint.main()[source]

Tiny wrapper in pylint so the output can be saved to a file (for test automation)

fastr.utils.cmd.pylint.run_pylint(out_file, pylint_args)[source]

report Module

fastr.utils.cmd.report.get_parser()[source]
fastr.utils.cmd.report.main()[source]

Print report of a job result (__fastr_result__.pickle.gz) file

run Module

fastr.utils.cmd.run.create_network_parser(network)[source]
fastr.utils.cmd.run.get_parser()[source]
fastr.utils.cmd.run.main()[source]

Run a Network from the commandline

sink Module

fastr.utils.cmd.sink.get_parser()[source]
fastr.utils.cmd.sink.main()[source]

Command line access to the IOPlugin sink

fastr.utils.cmd.sink.sink()[source]

source Module

fastr.utils.cmd.source.get_parser()[source]
fastr.utils.cmd.source.main()[source]

Command line access to the IOPlugin source

fastr.utils.cmd.source.source()[source]

test Module

fastr.utils.cmd.test.check_network(args)[source]
fastr.utils.cmd.test.check_networks(args)[source]
fastr.utils.cmd.test.check_tool(args)[source]
fastr.utils.cmd.test.check_tools(args)[source]
fastr.utils.cmd.test.directory(path)[source]

Make sure the path is a valid directory for argparse

fastr.utils.cmd.test.get_parser()[source]
fastr.utils.cmd.test.main()[source]

Run the tests of a tool to verify the proper function

fastr.utils.cmd.test.tool(value)[source]

Make sure the value is a correct tool for argparse or reference directory

trace Module

fastr.utils.cmd.trace.get_parser()[source]
fastr.utils.cmd.trace.main()[source]

Trace samples/sinks from a run

fastr.utils.cmd.trace.print_sample_sink(sink_data, dirname, sample_sink_tuples, verbose)[source]
fastr.utils.cmd.trace.print_samples(sink_data, sample_ids, verbose)[source]
fastr.utils.cmd.trace.print_sinks(sink_data, sink_ids, verbose)[source]
fastr.utils.cmd.trace.read_sink_data(infile)[source]
fastr.utils.cmd.trace.switch_sample_sink(sink_data)[source]

upgrade Module

class fastr.utils.cmd.upgrade.FastrNamespaceType(toollist, typelist)

Bases: tuple

__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

__module__ = 'fastr.utils.cmd.upgrade'
static __new__(_cls, toollist, typelist)

Create new instance of FastrNamespaceType(toollist, typelist)

__repr__()

Return a nicely formatted representation string

__slots__ = ()
property toollist

Alias for field number 0

property typelist

Alias for field number 1

class fastr.utils.cmd.upgrade.dummy_container[source]

Bases: object

__dict__ = mappingproxy({'__module__': 'fastr.utils.cmd.upgrade', '__getitem__': <function dummy_container.__getitem__>, '__dict__': <attribute '__dict__' of 'dummy_container' objects>, '__weakref__': <attribute '__weakref__' of 'dummy_container' objects>, '__doc__': None})
__getitem__(value)[source]
__module__ = 'fastr.utils.cmd.upgrade'
__weakref__

list of weak references to the object (if defined)

fastr.utils.cmd.upgrade.find_tool(toolspec)[source]
fastr.utils.cmd.upgrade.get_parser()[source]
fastr.utils.cmd.upgrade.main()[source]

Upgrade a fastr 2.x python file to fastr 3.x syntax

fastr.utils.cmd.upgrade.upgrade_network(infile, outfile)[source]
fastr.utils.cmd.upgrade.upgrade_tool(infile, outfile)[source]

verify Module

fastr.utils.cmd.verify.get_parser()[source]
fastr.utils.cmd.verify.main()[source]

Verify fastr resources, at the moment only tool definitions are supported.

webapp Module

fastr.utils.cmd.webapp.get_parser()[source]
fastr.utils.cmd.webapp.main()[source]

Start the fastr webapp and open in a new browser tab

fastr.utils.cmd.webapp.open_url(url)[source]