plugin: add dataset and resource indexing

This commit is contained in:
scawful
2025-12-30 12:33:07 -05:00
parent c282272287
commit c3342100e0
10 changed files with 657 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
"""Build the dataset registry for AFS Scawful."""
from __future__ import annotations
from afs_scawful.registry import index_datasets
def main() -> int:
path = index_datasets()
print(f"dataset_registry: {path}")
return 0
if __name__ == "__main__":
raise SystemExit(main())

View File

@@ -0,0 +1,17 @@
"""Rebuild the resource index for AFS Scawful."""
from __future__ import annotations
from afs_scawful.resource_index import ResourceIndexer
def main() -> int:
indexer = ResourceIndexer()
result = indexer.build_index()
path = indexer.write_index(result)
print(f"resource_index: {path}")
return 0
if __name__ == "__main__":
raise SystemExit(main())