3603: PySDK Collection objects support file-like APIs.
authorBrett Smith <brett@curoverse.com>
Tue, 4 Nov 2014 14:09:16 +0000 (09:09 -0500)
committerBrett Smith <brett@curoverse.com>
Tue, 4 Nov 2014 14:09:16 +0000 (09:09 -0500)
commit038b1bc4fe952b0bf95b566542973e55c4a6ecc7
tree9bb2df2b5aefc22e6774cdff42f4c0ddba1dda60
parent9166af7ca932880e7577501b8a4a3a8c14b45640
3603: PySDK Collection objects support file-like APIs.

This commit adds an open() method to CollectionReader and
CollectionWriter.  They mimic the built-in open(), returning objects
that implement as much as the Python file API as I can reasonably
manage.
sdk/python/arvados/arvfile.py [new file with mode: 0644]
sdk/python/arvados/collection.py
sdk/python/arvados/stream.py
sdk/python/tests/arvados_testutil.py
sdk/python/tests/test_collections.py
sdk/python/tests/test_stream.py