drivendataorg/cloudpathlib

Support backends/clients being used as context managers

Aperta

#39 aperta il 25 ago 2020

 (0 commenti) (0 reazioni) (0 assegnatari)Python (87 fork)auto 404
design decisiongood first issue

Metriche repository

Star
 (624 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor