Serving with the stand-alone HTTP server:
from meinheld import server def hello_world(environ, start_response): status = '200 OK' res = "Hello world!" response_headers = [ ('Content-type','text/plain'), ('Content-Length',str(len(res)))] start_response(status, response_headers) return [res] server.listen(("0.0.0.0", 8000)) server.run(hello_world)
Meinheld can also serve through Gunicorn.
$ gunicorn --workers=2 \
--worker-class="egg:meinheld#gunicorn_worker" \
gunicorn_test:app
Installation
Installation of Meinheld is easy.
$ easy_install -ZU meinheld
or
$ python setup.py install
to install Meinheld from the source package that is available on PyPI.
Meinheld depends on the following third-party component.
You need to install it before building and installing Meinheld.
Who uses Meinheld?
Meinheld is used by the following organizations / companies:
License
BSD-style license. You can review the full license terms here: github.org/mopemope/meinheld/LICENSE
Contact
You can reach the developers via
Development
The source repository of Meinheld is available on GitHub.