Classes | |
class | DASOptionParser |
class | HTTPSClientAuthHandler |
Functions | |
def | check_auth (key) |
def | check_glidein () |
def | convert_time (val) |
def | extract_value (row, key, base=10) |
def | fullpath (path) |
def | get_data (host, query, idx, limit, debug, threshold=300, ckey=None, cert=None, capath=None, qcache=0, das_headers=True) |
def | get_value (data, filters, base=10) |
def | keys_attrs (lkey, oformat, host, ckey, cert, debug=0) |
def | main () |
def | prim_value (row) |
def | print_from_cache (cache, query) |
def | print_summary (rec) |
def | size_format (uinput, ibase=0) |
def | unique_filter (rows) |
def | x509 () |
def das_client.check_auth | ( | key | ) |
Definition at line 102 of file das_client.py.
References print().
Referenced by main().
def das_client.check_glidein | ( | ) |
Definition at line 94 of file das_client.py.
References print().
Referenced by main().
def das_client.convert_time | ( | val | ) |
def das_client.extract_value | ( | row, | |
key, | |||
base = 10 |
|||
) |
Generator which extracts row[key] value
Definition at line 233 of file das_client.py.
References convert_time(), and size_format().
Referenced by get_value().
def das_client.fullpath | ( | path | ) |
Definition at line 267 of file das_client.py.
References get_data().
Referenced by get_data(), and keys_attrs().
def das_client.get_data | ( | host, | |
query, | |||
idx, | |||
limit, | |||
debug, | |||
threshold = 300 , |
|||
ckey = None , |
|||
cert = None , |
|||
capath = None , |
|||
qcache = 0 , |
|||
das_headers = True |
|||
) |
Contact DAS server and retrieve data for given DAS query
Definition at line 276 of file das_client.py.
References fullpath(), createfilelist.int, print(), and str.
Referenced by dataset.Dataset.__getData(), cmsswVersionTools.PickRelValInputFiles.apply(), electronDataDiscovery.common_search(), dasFileQuery.dasFileQuery(), dataset.dasquery(), util.getRunInfo.dasQuery(), fullpath(), edmPickEvents.getFileNames_das_client(), and main().
def das_client.get_value | ( | data, | |
filters, | |||
base = 10 |
|||
) |
Filter data from a row for given list of filters
Definition at line 248 of file das_client.py.
References extract_value().
Referenced by cmsswVersionTools.PickRelValInputFiles.apply(), edmPickEvents.getFileNames_das_client(), and main().
def das_client.keys_attrs | ( | lkey, | |
oformat, | |||
host, | |||
ckey, | |||
cert, | |||
debug = 0 |
|||
) |
Definition at line 387 of file das_client.py.
References fullpath(), and print().
Referenced by main().
def das_client.main | ( | ) |
Main function
Definition at line 424 of file das_client.py.
References check_auth(), check_glidein(), spr.find(), get_data(), get_value(), createfilelist.int, join(), keys_attrs(), dqm-mbProfile.log, prim_value(), print(), print_from_cache(), print_summary(), size_format(), str, and unique_filter().
def das_client.prim_value | ( | row | ) |
Extract primary key value from DAS record
Definition at line 350 of file das_client.py.
Referenced by main().
def das_client.print_from_cache | ( | cache, | |
query | |||
) |
Definition at line 378 of file das_client.py.
References beamvalidation.exit(), join(), print(), and fileinputsource_cfi.read.
Referenced by main().
def das_client.print_summary | ( | rec | ) |
Definition at line 365 of file das_client.py.
References SiStripPI.max, and print().
Referenced by main().
def das_client.size_format | ( | uinput, | |
ibase = 0 |
|||
) |
Format file size utility, it converts file size into KB, MB, GB, TB, PB units
Definition at line 182 of file das_client.py.
References nano_mu_digi_cff.float.
Referenced by extract_value(), and main().
def das_client.unique_filter | ( | rows | ) |
Unique filter drop duplicate rows.
Definition at line 203 of file das_client.py.
Referenced by main().
def das_client.x509 | ( | ) |
Definition at line 85 of file das_client.py.
|
private |
Definition at line 9 of file das_client.py.
das_client.DAS_CLIENT |
Definition at line 18 of file das_client.py.
das_client.EX__BASE |
Definition at line 35 of file das_client.py.
das_client.EX_CANTCREAT |
Definition at line 45 of file das_client.py.
das_client.EX_CONFIG |
Definition at line 50 of file das_client.py.
das_client.EX_DATAERR |
Definition at line 37 of file das_client.py.
das_client.EX_IOERR |
Definition at line 46 of file das_client.py.
das_client.EX_NOHOST |
Definition at line 40 of file das_client.py.
das_client.EX_NOINPUT |
Definition at line 38 of file das_client.py.
das_client.EX_NOPERM |
Definition at line 49 of file das_client.py.
das_client.EX_NOUSER |
Definition at line 39 of file das_client.py.
das_client.EX_OK |
Definition at line 34 of file das_client.py.
das_client.EX_OSERR |
Definition at line 43 of file das_client.py.
das_client.EX_OSFILE |
Definition at line 44 of file das_client.py.
das_client.EX_PROTOCOL |
Definition at line 48 of file das_client.py.
das_client.EX_SOFTWARE |
Definition at line 42 of file das_client.py.
das_client.EX_TEMPFAIL |
Definition at line 47 of file das_client.py.
das_client.EX_UNAVAILABLE |
Definition at line 41 of file das_client.py.
das_client.EX_USAGE |
Definition at line 36 of file das_client.py.