file
File-like objects returned by LakeFSFileSystem.open().
These are thin subclasses of the lakeFS SDK's ObjectReader and ObjectWriter,
which translate lakeFS API errors into Python builtin exceptions.
LakeFSObjectReader ¶
Bases: _ErrorTranslationMixin, ObjectReader, Generic[AnyStr]
A file-like object for reading from lakeFS, raising Python builtin exceptions on lakeFS API errors.
Returned by LakeFSFileSystem.open() in read mode.
The type parameter is bytes for binary modes and str for text modes.
Source code in src/lakefs_spec/file.py
LakeFSObjectWriter ¶
Bases: _ErrorTranslationMixin, ObjectWriter, Generic[AnyStr]
A file-like object for writing to lakeFS, raising Python builtin exceptions on lakeFS API errors.
Returned by LakeFSFileSystem.open() in write mode. The type parameter is bytes for binary modes
and str for text modes, mirroring typing.IO.
Data is buffered locally and only uploaded to the lakeFS server on close().