7 from arvados.events import subscribe
9 logger = logging.getLogger('arvados.arv-ws')
11 parser = argparse.ArgumentParser()
12 parser.add_argument('-u', '--uuid', type=str, default="")
13 args = parser.parse_args()
16 if len(args.uuid)>0: filters = [ ['object_uuid', '=', args.uuid] ]
18 api = arvados.api('v1', cache=False)
25 ws = subscribe(api, filters, lambda ev: on_message(ev))