How dabeaz-course/practical-python works
This repository is a practical Python training course, not a single deployed application. Its README describes instructor-led lessons and hands-on exercises covering scripting, data manipulation, and program organization. The solution files show one recurring exercise evolving into a stock-portfolio report: read CSV inputs, build holdings, calculate changes, and format output. The report excerpt supports those calls; later package files are represented as course examples, not a claimed production runtime. Evidence is limited to the README, sampled report source, and SOURCE INDEX references.
Main entry points: report.py Report command · README.md Practical Python course · tableformat.py Table formatting · fileparse.py CSV parsing
Components 18
Course material
- Practical Python course
README.md
Portfolio example
- Report command
Solutions/7_4/report.py - Portfolio CSV
- Price CSV
- Change calculation
Solutions/7_4/report.py - Formatted report
Reusable modules
- CSV parsing
Solutions/9_3/porty-app/porty/fileparse.py - Stock holding
Solutions/9_3/porty-app/porty/stock.py - Portfolio collection
Solutions/9_3/porty-app/porty/portfolio.py - Table formatting
Solutions/9_3/porty-app/porty/tableformat.py - Stock exercise
Solutions/4_4/stock.py - Formatter exercise
Solutions/5_8/tableformat.py - Portfolio exercise
Solutions/6_3/portfolio.py - Parser package
Solutions/9_5/porty-app/porty/fileparse.py - Portfolio package
Solutions/9_5/porty-app/porty/portfolio.py - Stock package
Solutions/9_5/porty-app/porty/stock.py - Formatter package
Solutions/9_5/porty-app/porty/tableformat.py
Other components
- Python learner
Connections 12
- Python learner → Practical Python course: learns from
README.md - Practical Python course → Report command: includes exercises
- Python learner → Report command: runs
Solutions/7_4/report.py - Report command → Portfolio CSV: reads
Solutions/7_4/report.py - Report command → Price CSV: reads
Solutions/7_4/report.py - Report command → CSV parsing: parses CSV
Solutions/7_4/report.py - Report command → Stock holding: constructs
- Report command → Portfolio collection: constructs
- Report command → Change calculation: calculates changes
Solutions/7_4/report.py - Report command → Table formatting: selects formatter
Solutions/7_4/report.py - Table formatting → Formatted report: prints rows
- Report command → Formatted report: writes report
Solutions/7_4/report.py