Spaces:
Paused

yaz / src /core /artifacts /__init__.py
anaselamr's picture
feat: Hybrid Architecture + Docs Reorganization
3808f98
Raw History Blame Contribute Delete
775 Bytes
"""
Core Artifacts — Content-Addressed Immutable Storage
=====================================================
IPFS-style content-addressed artifact storage with multi-peer replication.
Artifacts are immutable binary objects (reports, media, protocols, signed outputs)
referenced by their SHA-256 content ID. Metadata lives in PostgreSQL;
actual bytes live on local disk (primary) with async replication to
S3/Minio and peer nodes.
Usage:
from core.artifacts.service import ArtifactService
artifact = await ArtifactService.store(
file_bytes, filename="report.pdf", artifact_type="report",
tenant_id=tid, owner_id=uid
)
# artifact.content_id == "sha256:a1b2c3..."
"""
from .service import ArtifactService
__all__ = ["ArtifactService"]