julee.domain.models.custom_fields.content_stream

Custom Pydantic field types for the CEAP workflow domain.

This module contains custom field types that provide proper Pydantic validation for specialized data types used in the document processing workflow.

Classes

ContentStream

Wrapper for IO streams that provides proper Pydantic validation.

Module Contents

class julee.domain.models.custom_fields.content_stream.ContentStream(stream)[source]

Wrapper for IO streams that provides proper Pydantic validation.

This class wraps io.IOBase instances to provide proper Pydantic validation without requiring arbitrary_types_allowed. It ensures that only valid stream objects are accepted while providing a clean interface for stream operations.

read(size=-1)[source]

Read from the underlying stream.

seek(offset, whence=0)[source]

Seek in the underlying stream.

tell()[source]

Get current position in stream.

property stream: io.IOBase[source]

Access the underlying stream.