cli.py 文件源码

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

项目:collectors 作者: opentrials 项目源码 文件源码
def cli(argv):
    # Prepare conf dict
    conf = helpers.get_variables(config, str.isupper)

    # Prepare conn dict
    conn = {
        'warehouse': dataset.connect(config.WAREHOUSE_URL),
    }

    # Get and call collector
    collect = importlib.import_module('collectors.%s' % argv[1]).collect
    collect(conf, conn, *argv[2:])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号