Skip to content

src/dazzle_back/email/blob_store.py

Generated: 2026-03-30T04:38:45.924616+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Blob storage for email content.

Stores raw email content and attachments separately from events. Events contain pointers to blobs, not the content itself.

Implementations: - LocalBlobStore: File-based for development - S3BlobStore: AWS S3 for production

Key Exports

  • BlobMetadata
  • BlobStore
  • LocalBlobStore
  • S3BlobStore
  • get_blob_store
  • store
  • retrieve
  • delete
  • get_metadata
  • exists
  • initialize
  • store
  • retrieve
  • delete
  • get_metadata
  • exists
  • initialize
  • store
  • retrieve
  • delete

Dependencies

Imports

  • __future__.annotations
  • hashlib
  • json
  • logging
  • os
  • uuid
  • abc.ABC
  • abc.abstractmethod
  • dataclasses.dataclass
  • datetime.UTC
  • datetime.datetime
  • pathlib.Path
  • typing.TYPE_CHECKING
  • typing.Any
  • boto3

Event Interactions

None detected.

Invariants and Assumptions

  • S3 metadata must be strings

  • Validates: DAZZLE_S3_BUCKET environment variable required for S3 blob store

Tests

No related tests found.

Notes

This page was automatically generated by tools/gen_reference_docs.py.