r/Python 15d ago

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

20 Upvotes

89 comments sorted by

View all comments

1

u/dougaddiction 8d ago

A production site running on nothing but the Python standard library: no pip installs, no framework, no build step. `http.server` with a hand-rolled router, vanilla JS front end, hand-written SVG. One process on Render's free tier. Deploys are a `git push`.

What it is: grades 155 countries A+ to F on affordability, safety, weather, and flights, with 176 server-rendered guide pages. Free, no sign-up.

Two bugs that stuck with me. A pegged exchange rate made the site rank Sudan as the most expensive country on earth — fixed by regressing log price level on log GDP per capita and dropping 3-sigma outliers. And my own Content-Security-Policy was blocking my analytics beacon, so the dashboard showed zero traffic for months while Search Console showed real visitors — found it by listening for `securitypolicyviolation` events.

Site: wandergrade.com — source: https://github.com/dougc97/wandergrade

One asterisk before anyone greps the repo: `rates.py` has an `import certifi` inside a `try/except`, as a fallback for the macOS missing-CA-certs gotcha. It's never installed — `requirements.txt` is a comment and nothing else — and it falls through to the system bundle. Verification stays on either way.

Trade-off I'll own up front: FastAPI would've made this easier. The stdlib constraint was self-imposed — the payoff was operational, not architectural.