Files
ai-exchange/scripts/show_models.py
T
2026-04-24 13:39:01 +08:00

24 lines
489 B
Python

from pathlib import Path
import sys
ROOT = Path(__file__).resolve().parents[1]
if str(ROOT) not in sys.path:
sys.path.insert(0, str(ROOT))
MODELS_DIR = ROOT / "src" / "models"
def main() -> None:
model_files = sorted(
path.stem
for path in MODELS_DIR.glob("*.py")
if path.is_file() and path.stem != "__init__"
)
print(f"model exports: {len(model_files)}")
for name in model_files:
print(name)
if __name__ == "__main__":
main()