|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Variables | |
| parser = argparse.ArgumentParser(description='POST command object from file to commanded endpoint.') | |
| type | |
| str | |
| default | |
| help | |
| int | |
| required | |
| True | |
| dest | |
| action | |
| interactive | |
| args = parser.parse_args() | |
| 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 = requests.post(url, data=json.dumps(cmdstr), headers=headers) | |
| list | avacmds = [cdict['id'] for cdict in cmdstr if cdict["id"]] |
| nextcmd = input('Press enter a command to send next: ') | |
| list | cmdobj = [cdict for cdict in cmdstr if cdict["id"] == nextcmd] |
| send-restcmd.action |
Definition at line 16 of file send-restcmd.py.
| send-restcmd.args = parser.parse_args() |
Definition at line 20 of file send-restcmd.py.
| list send-restcmd.avacmds = [cdict['id'] for cdict in cmdstr if cdict["id"]] |
Definition at line 43 of file send-restcmd.py.
Definition at line 60 of file send-restcmd.py.
| send-restcmd.cmdstr = None |
Definition at line 26 of file send-restcmd.py.
| send-restcmd.default |
Definition at line 10 of file send-restcmd.py.
| send-restcmd.dest |
Definition at line 16 of file send-restcmd.py.
| dict send-restcmd.headers = {'content-type': 'application/json', 'X-Answer-Port': str(args.answer_port)} |
Definition at line 24 of file send-restcmd.py.
| send-restcmd.help |
Definition at line 10 of file send-restcmd.py.
| send-restcmd.int |
Definition at line 11 of file send-restcmd.py.
| send-restcmd.interactive |
Definition at line 18 of file send-restcmd.py.
| send-restcmd.nextcmd = input('Press enter a command to send next: ') |
Definition at line 57 of file send-restcmd.py.
| send-restcmd.parser = argparse.ArgumentParser(description='POST command object from file to commanded endpoint.') |
Definition at line 9 of file send-restcmd.py.
| send-restcmd.required |
Definition at line 14 of file send-restcmd.py.
Definition at line 37 of file send-restcmd.py.
| send-restcmd.str |
Definition at line 10 of file send-restcmd.py.
| send-restcmd.True |
Definition at line 14 of file send-restcmd.py.
| send-restcmd.type |
Definition at line 10 of file send-restcmd.py.
Definition at line 22 of file send-restcmd.py.