def cms_das(query): """ cmssh command which queries DAS data-service with provided query. Examples: cmssh> das dataset=/ZMM* """ host = 'https://cmsweb.cern.ch' idx = 0 limit = 0 debug = 0 das_client(host, query, idx, limit, debug, 'plain')
def cms_das_json(query): """ cmssh command which queries DAS data-service with provided query and returns results in JSON data format Examples: cmssh> das_json dataset=/ZMM* """ host = 'https://cmsweb.cern.ch' idx = 0 limit = 0 debug = 0 res = das_client(host, query, idx, limit, debug, 'json') RESMGR.assign([res]) pprint.pprint(res)