Import core (art-dag) as core/
This commit is contained in:
20
core/artdag/registry/__init__.py
Normal file
20
core/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