Files
rose-ash/artdag/registry/__init__.py
giles cc2dcbddd4 Squashed 'core/' content from commit 4957443
git-subtree-dir: core
git-subtree-split: 4957443184ae0eb6323635a90a19acffb3e01d07
2026-02-24 23:09:39 +00:00

21 lines
528 B
Python

# primitive/registry/__init__.py
"""
Art DAG Registry.
The registry is the foundational data structure that maps named assets
to their source paths or content-addressed IDs. Assets in the registry
can be referenced by DAGs.
Example:
registry = Registry("/path/to/registry")
registry.add("cat", "/path/to/cat.jpg", tags=["animal", "photo"])
# Later, in a DAG:
builder = DAGBuilder()
cat = builder.source(registry.get("cat").path)
"""
from .registry import Registry, Asset
__all__ = ["Registry", "Asset"]