Squashed 'core/' content from commit 4957443
git-subtree-dir: core git-subtree-split: 4957443184ae0eb6323635a90a19acffb3e01d07
This commit is contained in:
20
artdag/registry/__init__.py
Normal file
20
artdag/registry/__init__.py
Normal file
@@ -0,0 +1,20 @@
|
||||
# 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"]
|
||||
Reference in New Issue
Block a user