The Swiss Army knife of Python web development
Werkzeug is a one of the most advanced WSGI utility modules. It includes a powerful debugger, full featured request and response objects, HTTP utilities to handle entity tags, cache control headers, HTTP dates, cookie handling, file uploads, a powerful URL routing system and a bunch of community contributed addon modules.
To install py27-werkzeug, paste this in macOS terminal after installing MacPorts
sudo port install py27-werkzeug