How saladandonionrings/leaky works
File structure
• Top level:
• Python scripts (clean-file.py, import.py, init.py, scraper.py) and install.sh – these implement CLI tooling and web-server launch.
• source/ – example data.
• views/ – HTML template files (.tpl) & CSS under views/css/.
• .github/workflows/ – CI pipeline for Python package publishing.
• Patterns:
• MVC style: Python code acts as controller/business logic; views/ holds templates for rendering; MongoDB is the model/storage.
• Separate import pipeline (import.py) vs. web service (scraper.py).
README for additional insights
• Stack: Python 3.x, MongoDB 6.0, Jinja2 (implied by .tpl templates), shell installer.
• Functional flow:
a. init.py configures credentials
b. import.py parses files and pushes data into MongoDB
c. scraper.py starts a web instance exposing search, list, upload, links features
Elements
• Clear component labels: Browser, scraper.py (Web Server), import.py, init.py, MongoDB, templates, CSS.
• Browser → Web Server (HTTP GET/POST)
• Web Server → MongoDB (queries, writes)
• import.py → MongoDB (bulk inserts)
• install.sh → Web Server, init.py → configuration.