DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Functions | |
index () | |
Variables | |
level | |
format | |
datefmt | |
handlers | |
log = logging.getLogger('werkzeug') | |
str | OKGREEN = '\033[92m' |
str | FAIL = '\033[91m' |
str | ENDC = '\033[0m' |
show_server_banner | |
parser = argparse.ArgumentParser(description='POST command object from file to commanded endpoint.') | |
type | |
str | |
default | |
help | |
int | |
None | |
required | |
True | |
group = parser.add_mutually_exclusive_group() | |
dest | |
action | |
interactive | |
args = parser.parse_args() | |
reply_queue = SimpleQueue() | |
app = Flask(__name__) | |
flask_server = Process(target=app.run, kwargs={'port': args.answer_port}) | |
str | url = 'http://'+args.host+':'+str(args.port)+'/'+args.route |
dict | headers = {'content-type': 'application/json', 'X-Answer-Port': str(args.answer_port)} |
cmdstr = None | |
response | |
list | avacmds = [cdict['id'] for cdict in cmdstr if cdict["id"]] |
r = reply_queue.get() | |
nextcmd = input('command >> ') | |
list | cmdobj = [cdict for cdict in cmdstr if cdict["id"] == nextcmd] |
send-recv-restcmd.index | ( | ) |
Definition at line 56 of file send-recv-restcmd.py.
send-recv-restcmd.action |
Definition at line 45 of file send-recv-restcmd.py.
send-recv-restcmd.app = Flask(__name__) |
Definition at line 54 of file send-recv-restcmd.py.
send-recv-restcmd.args = parser.parse_args() |
Definition at line 49 of file send-recv-restcmd.py.
list send-recv-restcmd.avacmds = [cdict['id'] for cdict in cmdstr if cdict["id"]] |
Definition at line 100 of file send-recv-restcmd.py.
Definition at line 136 of file send-recv-restcmd.py.
send-recv-restcmd.cmdstr = None |
Definition at line 73 of file send-recv-restcmd.py.
send-recv-restcmd.datefmt |
Definition at line 19 of file send-recv-restcmd.py.
send-recv-restcmd.default |
Definition at line 34 of file send-recv-restcmd.py.
send-recv-restcmd.dest |
Definition at line 45 of file send-recv-restcmd.py.
str send-recv-restcmd.ENDC = '\033[0m' |
Definition at line 29 of file send-recv-restcmd.py.
str send-recv-restcmd.FAIL = '\033[91m' |
Definition at line 28 of file send-recv-restcmd.py.
send-recv-restcmd.flask_server = Process(target=app.run, kwargs={'port': args.answer_port}) |
Definition at line 63 of file send-recv-restcmd.py.
send-recv-restcmd.format |
Definition at line 18 of file send-recv-restcmd.py.
send-recv-restcmd.group = parser.add_mutually_exclusive_group() |
Definition at line 42 of file send-recv-restcmd.py.
send-recv-restcmd.handlers |
Definition at line 20 of file send-recv-restcmd.py.
dict send-recv-restcmd.headers = {'content-type': 'application/json', 'X-Answer-Port': str(args.answer_port)} |
Definition at line 69 of file send-recv-restcmd.py.
send-recv-restcmd.help |
Definition at line 34 of file send-recv-restcmd.py.
send-recv-restcmd.int |
Definition at line 35 of file send-recv-restcmd.py.
send-recv-restcmd.interactive |
Definition at line 47 of file send-recv-restcmd.py.
send-recv-restcmd.level |
Definition at line 17 of file send-recv-restcmd.py.
send-recv-restcmd.log = logging.getLogger('werkzeug') |
Definition at line 24 of file send-recv-restcmd.py.
send-recv-restcmd.nextcmd = input('command >> ') |
Definition at line 133 of file send-recv-restcmd.py.
send-recv-restcmd.None |
Definition at line 37 of file send-recv-restcmd.py.
str send-recv-restcmd.OKGREEN = '\033[92m' |
Definition at line 27 of file send-recv-restcmd.py.
send-recv-restcmd.parser = argparse.ArgumentParser(description='POST command object from file to commanded endpoint.') |
Definition at line 33 of file send-recv-restcmd.py.
send-recv-restcmd.r = reply_queue.get() |
Definition at line 120 of file send-recv-restcmd.py.
send-recv-restcmd.reply_queue = SimpleQueue() |
Definition at line 51 of file send-recv-restcmd.py.
send-recv-restcmd.required |
Definition at line 41 of file send-recv-restcmd.py.
send-recv-restcmd.response |
Definition at line 85 of file send-recv-restcmd.py.
send-recv-restcmd.show_server_banner |
Definition at line 31 of file send-recv-restcmd.py.
send-recv-restcmd.str |
Definition at line 34 of file send-recv-restcmd.py.
send-recv-restcmd.True |
Definition at line 41 of file send-recv-restcmd.py.
send-recv-restcmd.type |
Definition at line 34 of file send-recv-restcmd.py.
Definition at line 66 of file send-recv-restcmd.py.