cli.py 文件源码

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

项目:bocco-api-python 作者: YUKAI 项目源码 文件源码
def cli(ctx, config, access_token):
    # type: (click.Context, str, str) -> None
    """BOCCO API http://api-docs.bocco.me/ ? CLI ????????"""
    debug = False
    downloads = None
    if config:
        with open(config, 'r') as f:
            config_json = json.load(f)
            debug = config_json['debug']
            downloads = config_json['downloads']
            access_token = config_json['access_token']

    ctx.obj['api'] = Client(access_token)
    ctx.obj['debug'] = debug
    ctx.obj['downloads'] = downloads
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号