aistore.sdk.batch.multipart.body_stream_reader
aistore.sdk.batch.multipart.body_stream_reader
Module Contents
Classes
API
Bases: BufferedIOBase
Stream reader that only reads the body portion of a part from a buffered multipart stream. This class extends BufferedIOBase and provides a read-only interface for consuming multipart body content until a boundary is encountered.
Close the reader.
Read up to size bytes from the stream.
For multipart streams, this respects logical boundaries and may return more data than requested to maintain boundary integrity.
Parameters:
Number of bytes to read. If size is omitted, None, or negative read as much as possible. Defaults to -1.
Returns: bytes
Data read from the stream.
Return True if the stream is readable.
Return False as this stream does not support seeking.
Return False as this stream is read-only.