Classes | |
class | DASOptionParser |
class | HTTPSClientAuthHandler |
Functions | |
def | check_auth |
def | check_glidein |
def | convert_time |
def | extract_value |
def | fullpath |
def | get_data |
def | get_value |
def | keys_attrs |
def | main |
def | prim_value |
def | print_from_cache |
def | print_summary |
def | size_format |
def | unique_filter |
def | x509 |
Variables | |
string | __author__ = "Valentin Kuznetsov" |
string | DAS_CLIENT = 'das-client/1.1::python/%s.%s' |
int | EX__BASE = 64 |
int | EX_CANTCREAT = 73 |
int | EX_CONFIG = 78 |
int | EX_DATAERR = 65 |
int | EX_IOERR = 74 |
int | EX_NOHOST = 68 |
int | EX_NOINPUT = 66 |
int | EX_NOPERM = 77 |
int | EX_NOUSER = 67 |
int | EX_OK = 0 |
int | EX_OSERR = 71 |
int | EX_OSFILE = 72 |
int | EX_PROTOCOL = 76 |
int | EX_SOFTWARE = 70 |
int | EX_TEMPFAIL = 75 |
int | EX_UNAVAILABLE = 69 |
int | EX_USAGE = 64 |
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 dqm::implementation::IBooker.bookME(), edm::storage::LStoreStorageMaker.check(), edm::storage::XrdStorageMaker.check(), GEMEfficiencyHarvester.doEfficiency(), GEMEfficiencyHarvester.doResolution(), SiStripQualityChecker.fillDetectorStatusAtLumi(), edm::storage::LocalFileSystem.findCachePath(), edm::storage::LocalFileSystem.findMount(), DQMService.flushStandalone(), get_data(), CommonAnalyzer.getList(), evf::EvFDaqDirector.getLumisectionToStart(), LegacyIOHelper.getMEName(), evf::EvFDaqDirector.getNFilesFromEoLS(), CommonAnalyzer.getObject(), edm::storage::LocalFileSystem.isLocalPath(), keys_attrs(), MuonErrorMatrix.MuonErrorMatrix(), edm::storage::LStoreStorageMaker.open(), edm::storage::XrdStorageMaker.open(), and edm::storage::XrdStorageMaker.stagein().
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(), 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(), join(), keys_attrs(), 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 SiPixelLorentzAngle_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.
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.
string das_client.__author__ = "Valentin Kuznetsov" |
Definition at line 9 of file das_client.py.
string das_client.DAS_CLIENT = 'das-client/1.1::python/%s.%s' |
Definition at line 18 of file das_client.py.
int das_client.EX__BASE = 64 |
Definition at line 35 of file das_client.py.
int das_client.EX_CANTCREAT = 73 |
Definition at line 45 of file das_client.py.
int das_client.EX_CONFIG = 78 |
Definition at line 50 of file das_client.py.
int das_client.EX_DATAERR = 65 |
Definition at line 37 of file das_client.py.
int das_client.EX_IOERR = 74 |
Definition at line 46 of file das_client.py.
int das_client.EX_NOHOST = 68 |
Definition at line 40 of file das_client.py.
int das_client.EX_NOINPUT = 66 |
Definition at line 38 of file das_client.py.
int das_client.EX_NOPERM = 77 |
Definition at line 49 of file das_client.py.
int das_client.EX_NOUSER = 67 |
Definition at line 39 of file das_client.py.
int das_client.EX_OK = 0 |
Definition at line 34 of file das_client.py.
int das_client.EX_OSERR = 71 |
Definition at line 43 of file das_client.py.
int das_client.EX_OSFILE = 72 |
Definition at line 44 of file das_client.py.
int das_client.EX_PROTOCOL = 76 |
Definition at line 48 of file das_client.py.
int das_client.EX_SOFTWARE = 70 |
Definition at line 42 of file das_client.py.
int das_client.EX_TEMPFAIL = 75 |
Definition at line 47 of file das_client.py.
int das_client.EX_UNAVAILABLE = 69 |
Definition at line 41 of file das_client.py.
int das_client.EX_USAGE = 64 |
Definition at line 36 of file das_client.py.