cadrumo.application.modelo.work_unit_repository module

Explicit lifetime binding for Modelo work-unit catalogue persistence.

The domain owns the repository protocol and persistence owns its concrete implementation. Application operations that need to capture a catalogue bind only the factory shape declared here; executable hosts compose the concrete adapter for their own lifetime.

class WorkUnitCatalogueRepositoryFactory(*args, **kwargs)[source]

Bases: Protocol

Construct the repository port for one resolved profile bucket.

bind_work_unit_catalogue_repository_factory(factory)[source]

Bind one outward-composed repository factory for the host context.

Return type:

Generator[WorkUnitCatalogueRepositoryFactory]

Parameters:

factory (WorkUnitCatalogueRepositoryFactory)

work_unit_catalogue_repository(*, bucket_id)[source]

Resolve the explicitly composed repository for bucket_id.

Return type:

WorkUnitCatalogueRepositoryProtocol

Parameters:

bucket_id (str)