How gto76/python-cheatsheet works
This repository is a Python reference cheatsheet published as a web page, with generated COVID/economic charts and a PDF-oriented link-removal script. The principal reader workflow is to browse the topic-organized cheatsheet, use its linked table of contents, and consult code examples; the README documents eight broad subject areas. The excerpts show page generation and chart refresh mechanics, but do not establish how all listed web assets are loaded, nor the PDF production workflow, so those links are omitted.
Main entry points: index.html Rendered page · parse.js Page generator · update_plots.py Chart refresher · script_2.js Responsive TOC
Components 17
Cheatsheet content
- Collections
README.md - Data types
README.md - Syntax rules
README.md - System calls
README.md - Data formats
README.md - Misc topics
README.md - Pip packages
README.md - Multimedia
README.md
Web presentation
- Page generator
parse.js - HTML template
web/template.html - Rendered page
index.html - Responsive TOC
web/script_2.js
Chart data and refresh
- Cases chart
web/covid_cases.js - Deaths chart
web/covid_deaths.js - Chart refresher
web/update_plots.py
PDF support
- Link removal
pdf/remove_links.py
Other components
- Reader
Connections 8
- Reader → Rendered page: browses
README.md - Page generator → Rendered page: writes
parse.js - Page generator → HTML template: reads
parse.js - Page generator → Collections: converts
parse.js - Responsive TOC → Rendered page: updates navigation
- Chart refresher → Cases chart: writes chart
web/update_plots.py - Chart refresher → Deaths chart: writes chart
web/update_plots.py - Link removal → Rendered page: rewrites links
pdf/remove_links.py