def get_credential():
import yaml
credentialfilename = r'../credential.yaml'
diccredential = yaml.load(open(credentialfilename))
urlbase = diccredential['urlbase']
auth = HTTPBasicAuth(diccredential['username'], diccredential['key'])
#credentialfilename.close()
return (urlbase,auth) |