Skip to content

Streaming

Chunk(path, content, offset=0, length=0) dataclass

A contiguous slice of streamed binary content.

A chunk represents a portion of a logical file or resource, carrying both its raw bytes and positional metadata within the original stream.

ContentStream = AsyncGenerator[Chunk, None] module-attribute