finds.dev← search

// the find

dongweiming/web_develop

★ 1,239 · Python · GPL-3.0 · updated Oct 2023

《Python Web开发实战》书中源码

Source code companion for a Chinese-language book on Python web development published in 2016. It's a chapter-by-chapter collection of standalone scripts covering Flask, SQLAlchemy, Celery, gevent, asyncio, Ansible, and performance tooling — not a framework or library you'd import, just worked examples to read alongside the book.

The breadth is genuine: Flask basics, MongoDB, Redis, Memcached, HAProxy/Keepalived configs, Thrift RPC, Cython FFI, and Jupyter profiling all get working code, not pseudocode. The asyncio chapter (chapter13/section5) shows the evolution from old yield-based coroutines to the new async/await syntax side by side, which is actually useful for understanding how the model changed. The proxy-fetcher example across sections 1–4 of chapter 13 is a running case study — same problem solved progressively with gevent, asyncio, and concurrent.futures, making the tradeoffs visible.

The book shipped in 2016 and the code has barely been touched since — Flask 0.x patterns, Python 2/3 mixed assumptions, and a `manage.py` using the old Flask-Script (killed in 2017). Anyone following this today will hit deprecation walls immediately. There's no requirements.txt at the top level and the per-chapter ones are incomplete, so reproducing the environment is a guessing game. The Vagrant/VirtualBox setup it was designed around is increasingly painful to run on modern hardware, and the Baidu Netdisk download link for the box is almost certainly dead. Without the physical book, the code is context-free — variables like `mc`, `ext`, and `config` are imported from siblings with no explanation of what they wire up.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →