Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cirro/sdk/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ def read(self, encoding='utf-8', compression=None) -> str:
) as handle:
return handle.read()

def read_bytes(self) -> BytesIO:
"""Get a generic BytesIO object representing the Data Portal File, to be passed into readers."""
return BytesIO(self._get())

def download(self, download_location: str = None):
"""Download the file to a local directory."""

Expand Down
Loading