A CLI tool for creating weekly reports.
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install -e .Build the image:
docker compose buildRun the interactive menu:
docker compose run --rm reportrickRun CLI commands directly:
docker compose run --rm reportrick add GREEN "Shipped onboarding flow"
docker compose run --rm reportrick listThe database and generated reports are persisted to database/ and work_report/ via volumes.
If you hit Permission denied on /app/bin/reportrick.py (common on SELinux systems), ensure the volumes use the :Z label as in docker-compose.yml.
Run the interactive menu:
python3 bin/reportrick.pyAdd entries (categories are case-sensitive and must be GREEN, AMBER, RED, or MEETING):
python3 bin/reportrick.py add GREEN "Shipped onboarding flow"
python3 bin/reportrick.py add MEETING "Weekly sync with team"List the current week report:
python3 bin/reportrick.py listOpen the menu explicitly:
python3 bin/reportrick.py menuWhen you run python3 bin/reportrick.py (or menu), you can choose:
- Add new entry
- Change calendar week or the year
- Show work report
- Export work report (HTML/PDF/HTML+PDF/Text)
- Configure user data
- Exit the program
While viewing the weekly report, you can also delete entries by choosing d and then selecting a category.
- Run
python3 bin/reportrick.py - Choose
1(Add new entry) - Enter the entry text
- Pick a category (
GREEN,AMBER,RED, orMEETING)
You can also add entries directly via CLI:
python3 bin/reportrick.py add GREEN "Shipped onboarding flow"Use this when you need to log or view entries for a different week/year:
- Run
python3 bin/reportrick.py - Choose
2 - Enter the target year
- Enter the target calendar week
- Run
python3 bin/reportrick.py - Choose
3
This prints the current week’s report grouped by category.
- Run
python3 bin/reportrick.py - Choose
4 - Select the output format:
1HTML2PDF3HTML and PDF4Text (currently no file output)
Use the menu to set employee details (stored in the local SQLite database):
- Run
python3 bin/reportrick.py - Choose
5(Configure user data) - Enter first name, last name, and team name (department)
To update these later, choose option 5 again.
- Open the weekly report (
3) - Press
d - Select the category
- Enter the exact entry text to remove
- The SQLite database is created on first run at
database/reportrick_database.sqlite. - Exported HTML/PDF reports are written to
work_report/jinja_workreport.htmlandwork_report/jinja_workreport.pdf.
- Editable install fails with
file '.../bin/reportrick.py,' does not exist:- Ensure the
setup.cfgscripts list has no trailing commas and re-runpip install -e ..
- Ensure the