How swisscatplus/glas works
File structure
Top-level files and directories:
• base.py, parser.py, jwt.py, logger.py, models.py
– Core runtime entrypoints: configuration loader, workflow parser, logging and authentication utilities, common domain models.
• database/
– Connector, schema setup, ORM models, and CRUD modules for workflows, tasks, nodes, execution/access logs.
• nodes/
– Abstract base classes, enums, models and implementations of “node” plugins that perform real-world lab operations.
• orchestrator/
– Core scheduler logic: decision engines, state machines, domain models for scheduling.
• task/
– Task-level abstractions, enums and models.
• workflow/
– Workflow definitions, core logic to manage workflow life-cycle.
• GLAS.postman_collection.json
– Hints at an HTTP API (Postman definitions for endpoints).
• .env.example, requirements.txt, GitHub Actions workflows, pylintrc
– Configuration, dependency and CI setup.
README for additional insights
• Suggests it is consumed as a service or library; likely exposes an HTTP or CLI interface (Postman collection).
Elements
• Blue for core services (Parser, Orchestrator)
• Green for plugins (nodes/)
• Orange for persistence (Database)
• Gray for external systems (Git Repo, Lab Devices)