コード例 #1
0
def countPIDtype(args):
    cred = Credentials('os', args.credpath)
    cred.parse()
    pidm = PIDManagement(cred)
    result = pidm.requestPID(cred, args.typepid, args.searchfield)
    print "Number of PIDs = ", len(result)
コード例 #2
0
ファイル: statpid.py プロジェクト: EUDAT-B2SAFE/B2SAFE-core
def countPIDtype(args):
	cred = Credentials('os',args.credpath)
	cred.parse()
	pidm = PIDManagement(cred)
	result = pidm.requestPID(cred,args.typepid,args.searchfield)
	logging.info("Number of PIDs = %s" % len(result))
コード例 #3
0
def countPIDprefix(args):
    cred = Credentials('os', args.credpath)
    cred.parse()
    pidm = PIDManagement(cred)
    result = pidm.requestPID(cred, "limit", "0")
    print "Number of PIDs = ", len(result)
コード例 #4
0
ファイル: statpid.py プロジェクト: EUDAT-B2SAFE/B2SAFE-core
def countPIDprefix(args):
	cred = Credentials('os',args.credpath)
	cred.parse()
	pidm = PIDManagement(cred)
	result = pidm.requestPID(cred,"limit","0")
	logging.info("Number of PIDs = %s" % len(result))