QueryRunner

class servicemon.query_runner.QueryRunner(args)[source]

Bases: object

args is assumed to be a Namespace object args with each attribute having a valid value (no defaults will be applied here). Using vars(args) to show the object as a dict would yield an object like this:

{‘cone_file’: ‘input/cones-10000-0_05-0_25.py’,

‘cone_limit’: 2, ‘load_plugins’: None, ‘max_radius’: 0.25, ‘min_radius’: 0, ‘norun’: True, ‘num_cones’: None, ‘result_dir’: ‘output’, ‘save_results’: True, ‘services’: ‘input/stsci/ps_tap.py’, ‘start_index’: 14, ‘tap_mode’: ‘async’, ‘verbose’: False, ‘writers’: [‘csv_writer:outfile=output/ps-tap-2020-08-02-16:19:37.484191.csv’, ‘some_writer’]}

Methods Summary

getval(obj, key[, default])

Gets the value as either an attribute val or key val.

run()

Methods Documentation

getval(obj, key, default=None)[source]

Gets the value as either an attribute val or key val.

run()[source]