harbor run -t openthoughts/tasktrove-exp-rpt-stack-dockerfile-v2-stack-dockerfile-0269harbor download openthoughts/tasktrove-exp-rpt-stack-dockerfile-v2-stack-dockerfile-0269Task: Build a Python CLI data analyzer for posts
Objective Create a self-contained Python program in /app that fetches or reads a JSON dataset of blog posts and computes simple statistics. The program should run without external dependencies beyond the Python standard library and produce both stdout output and a JSON results file.
What to implement
Usage examples
Run with default behavior (fetch from the internet) and write results to /app/results.json: python3 analyze_posts.py
Run by reading a local file and writing to a custom location: python3 analyze_posts.py --data-file data.sample.json --output /app/my_results.json
Run with verbose output to stdout: python3 analyze_posts.py --verbose
Notes and constraints
Deliverables
Acceptance criteria