Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File-like object API support. #11

Open
amcgregor opened this issue Jun 28, 2018 · 0 comments
Open

File-like object API support. #11

amcgregor opened this issue Jun 28, 2018 · 0 comments

Comments

@amcgregor
Copy link

amcgregor commented Jun 28, 2018

Or; "please make your file like object file-like" ;P

Glad a friend pointed me at this project; I love the idea, B2 is epic. I'm very strongly in favour of following Python standard object conventions for file-likes, that is, supplying File-like methods as described by Python 3's io package. Ref: https://docs.python.org/3/library/io.html#io.RawIOBase

An example of a Python 2 file-like compatible object can be found in Pymongo's GridFS implementation; for DB-distributed file chunking. (They went with distinct reader and writer objects.)

Thanks for consideration!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant