item_io

File-like (stream) read and write on items

Functions

pydelfini.item_io.new_empty_item(collection_id, version_id, name, type, client, within_folder_id='ROOT')[source]
Parameters:
Return type:

Item

pydelfini.item_io.new_folder(collection_id, version_id, name, client, within_folder_id='ROOT')[source]
Parameters:
Return type:

Item

Parameters:
Return type:

Item

pydelfini.item_io.read_item(mode: Literal['r'], collection_id: str, version_id: str, item_id: str, client: AuthenticatedClient) TextIO[source]
pydelfini.item_io.read_item(mode: Literal['rb'], collection_id: str, version_id: str, item_id: str, client: AuthenticatedClient) BinaryIO

Read the contents (binary or text mode) of an item.

This is typically called by the high-level client libraries in pydelfini.collections.

Classes

DelfiniItemCreatorBinary

File-like interface for creating a new item in binary mode.

DelfiniItemCreatorCore

DelfiniItemCreatorText

File-like interface for creating a new item in text mode.

DelfiniItemWriterBinary

File-like interface for writing binary data to items.

DelfiniItemWriterCore

DelfiniItemWriterText

File-like interface for writing text data to items.