How shahabathar25/h.a.w.k. works
Project type and purpose
• From the README (“H.A.W.K. – Hierarchical Allocation With Knowledge”) and the file tree, this is a small, self-contained library/application (likely a command-line or programmatic tool) for performing hierarchical portfolio allocation.
• There is no “frontend” folder or web UI; instead, it exposes a main entrypoint (main.py) and a suite of core modules under /core.
File structure
• Top‐level files:
• .env.template – environment variable placeholders
• main.py – the CLI or script entrypoint
• test.py – standalone smoke/integration tests
• /core directory: the main functional modules
• data_handler.py – ingestion & normalization of raw market/portfolio data
• engine.py – computes allocation hierarchies and weightings
• executor.py – transforms allocation plans into executable orders or actions
• portfolio.py – model and state of the portfolio (positions, constraints)
• No direct database or web server config is present; data may come from CSVs, APIs, or in-memory structures.
Detail—but don’t overthink
• Break the system into as many meaningful components as possible (each .py).
• External dependencies (config, data feeds, broker APIs).