Write a command-line tool /app/pipeline (Python script) that reads a log file in a custom CSV-like format…
Write a command-line tool /app/pipeline (Python script) that reads a log file in a custom CSV-like format…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (read from stdin): - Header line, then data lines. - Fields separated by (pipe). - Header…
The task
**Input format** (read from stdin): - Header line, then data lines. - Fields separated by `|` (pipe). - Header columns: `id|timestamp|user_id|event_type|value` - `id`: integer, unique per line. - `timestamp`: ISO-8601 with timezone offset, e.g., `2024-01-15T08:30:00-05:00` or `2024-01-15T08:30:00Z`. - `user_id`:…
Part of ai-and/termgrade-environments.