cadrumo.adapters.persistence.profile.extraction_drafts module

Encrypted persistence adapter for pending ledger extraction drafts.

class ExtractionDraftRepository(*, bucket_id, settings)[source]

Bases: SecureBoundRepository[ExtractionDraftDocument]

Store one bucket’s pending drafts through encrypted secure objects.

Parameters:
namespace: ClassVar[str]
sensitivity: ClassVar[SensitivityClass]
schema_version: ClassVar[int]
payload_type

alias of ExtractionDraftDocument

extract_identifier(payload)[source]

Return the application-owned natural key for payload.

Return type:

str

Parameters:

payload (ExtractionDraftDocument)