drivendataorg / drivendataorg/cloudpathlib

Support backends/clients being used as context managers

Open
#39 0 comments 0 reactions 0 assignees View on GitHub
design decision good first issue
Dominant language
Python
Stars
628
Forks
88
Avg merge
17h 28m
Merged PRs (30d)
2

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.