# File: ./src/utils.py - **Module:** utils - **Defined symbols:** 4 - **Imports:** 2 ## File intent (manual) --- ## Imports & file-level dependencies > Generated. Do not edit inside this block. - json - os --- ## Symbols index > Generated. Do not edit inside this block. - `load_config` (Function) - `save_config` (Function) - `get_file_size` (Function) - `format_bytes` (Function) --- ## Symbol details ### `load_config` - **Kind:** Function - **Signature:** `def load_config(config_path: str)` - **Docstring:** `Load configuration from a JSON file.` #### What it does extracted from AST #### Relations **Outbound calls (best-effort):** **Inbound (used by) (best-effort):** #### Integrations (heuristic) - HTTP: no - DB: no - Queue/Tasks: no #### Risk / impact - fan-in: 0 - fan-out: 2 - cycle participant: no - critical: no #### Manual notes ### `save_config` - **Kind:** Function - **Signature:** `def save_config(config: dict, config_path: str)` - **Docstring:** `Save configuration to a JSON file.` #### What it does extracted from AST #### Relations **Outbound calls (best-effort):** **Inbound (used by) (best-effort):** #### Integrations (heuristic) - HTTP: no - DB: no - Queue/Tasks: no #### Risk / impact - fan-in: 0 - fan-out: 2 - cycle participant: no - critical: no #### Manual notes ### `get_file_size` - **Kind:** Function - **Signature:** `def get_file_size(filepath: str)` - **Docstring:** `Get the size of a file in bytes.` #### What it does extracted from AST #### Relations **Outbound calls (best-effort):** **Inbound (used by) (best-effort):** #### Integrations (heuristic) - HTTP: no - DB: no - Queue/Tasks: no #### Risk / impact - fan-in: 0 - fan-out: 1 - cycle participant: no - critical: no #### Manual notes ### `format_bytes` - **Kind:** Function - **Signature:** `def format_bytes(size: int)` - **Docstring:** `Format bytes into a human-readable string.` #### What it does extracted from AST #### Relations **Outbound calls (best-effort):** **Inbound (used by) (best-effort):** #### Integrations (heuristic) - HTTP: no - DB: no - Queue/Tasks: no #### Risk / impact - fan-in: 0 - fan-out: 0 - cycle participant: no - critical: no #### Manual notes