configure.py 文件源码

python
阅读 46 收藏 0 点赞 0 评论 0

项目:hesperides-cli 作者: voyages-sncf-technologies 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号