DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
send-recv-restcmd.py File Reference

Go to the source code of this file.

Namespaces

namespace  send-recv-restcmd
 

Functions

 send-recv-restcmd.index ()
 

Variables

 send-recv-restcmd.level
 
 send-recv-restcmd.format
 
 send-recv-restcmd.datefmt
 
 send-recv-restcmd.handlers
 
 send-recv-restcmd.log = logging.getLogger('werkzeug')
 
str send-recv-restcmd.OKGREEN = '\033[92m'
 
str send-recv-restcmd.FAIL = '\033[91m'
 
str send-recv-restcmd.ENDC = '\033[0m'
 
 send-recv-restcmd.show_server_banner
 
 send-recv-restcmd.parser = argparse.ArgumentParser(description='POST command object from file to commanded endpoint.')
 
 send-recv-restcmd.type
 
 send-recv-restcmd.str
 
 send-recv-restcmd.default
 
 send-recv-restcmd.help
 
 send-recv-restcmd.int
 
 send-recv-restcmd.None
 
 send-recv-restcmd.required
 
 send-recv-restcmd.True
 
 send-recv-restcmd.group = parser.add_mutually_exclusive_group()
 
 send-recv-restcmd.dest
 
 send-recv-restcmd.action
 
 send-recv-restcmd.interactive
 
 send-recv-restcmd.args = parser.parse_args()
 
 send-recv-restcmd.reply_queue = SimpleQueue()
 
 send-recv-restcmd.app = Flask(__name__)
 
 send-recv-restcmd.flask_server = Process(target=app.run, kwargs={'port': args.answer_port})
 
str send-recv-restcmd.url = 'http://'+args.host+':'+str(args.port)+'/'+args.route
 
dict send-recv-restcmd.headers = {'content-type': 'application/json', 'X-Answer-Port': str(args.answer_port)}
 
 send-recv-restcmd.cmdstr = None
 
 send-recv-restcmd.response
 
list send-recv-restcmd.avacmds = [cdict['id'] for cdict in cmdstr if cdict["id"]]
 
 send-recv-restcmd.r = reply_queue.get()
 
 send-recv-restcmd.nextcmd = input('command >> ')
 
list send-recv-restcmd.cmdobj = [cdict for cdict in cmdstr if cdict["id"] == nextcmd]