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.

貢獻者指南