drivendataorg/cloudpathlib

Support backends/clients being used as context managers

开放

#39 创建于 2020年8月25日

 (0 条评论) (0 个反应) (0 位负责人)Python (87 个派生)auto 404
design decisiongood first issue

仓库指标

星标
 (624 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Now that we have the CloudPath factory on the client, it can be nice to have a scoped backend that you don't have to worry about conflicting with other backends.

This may be as easy as defining __enter__ and __exit__, but we should think if there are any resources that would be scoped to the context. Might be more relevant in backends/clients with persistent connections, etc.

贡献者指南