Pump support

Note

Pump is not a PEP nor a standard.

Pump is a new project aiming at a “better” WSGI.

An example Pump app, for your convenience:

  1. def app(req):
  2. return {
  3. "status": 200,
  4. "headers": {"content_type": "text/html"},
  5. "body": "<h1>Hello!</h1>"
  6. }

To load a Pump app simply use the pump option to declare the callable.

  1. uwsgi --http-socket :8080 -M -p 4 --pump myapp:app

myapp is the name of the module (that must be importable!) and app is the callable. The callable part is optional – by default uWSGI will search for a callable named ‘application’.