sibblegp/b2blaze

File-like object API support.

Opened this issue · 0 comments

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!