client.py 文件源码

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

项目:rets 作者: opendoor-labs 项目源码 文件源码
def _get_http_auth(username: str, password: str, auth_type: str) -> AuthBase:
    if auth_type == 'basic':
        return HTTPBasicAuth(username, password)
    if auth_type == 'digest':
        return HTTPDigestAuth(username, password)
    raise RetsClientError('unknown auth type %s' % auth_type)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号