def set_conf(profile, username, password, hesperides_endpoint, response_format):
basic_auth = base64.b64encode(str.encode('%s:%s' % (username, password))).decode('UTF-8')
config = {'endpoint': hesperides_endpoint, 'format': response_format}
credentials = {'username': username, 'auth': basic_auth}
config_writer = ConfigFileWriter()
config_writer.update_config(profile, config, False)
credentials_writer = ConfigFileWriter()
credentials_writer.update_credentials(profile, credentials, False)
profile_writer = ConfigFileWriter()
config_writer.update_config('config', {}, False)
configure.py 文件源码
python
阅读 46
收藏 0
点赞 0
评论 0
评论列表
文章目录