Skip to main content

What’s this

this is a python wsgi web server.

Thus this is yet an another asynchronous web server like fapws3, tornado.

And meinheld is a WSGI compliant web server.

Require

meinheld requires Python 2.x >= 2.5.

sorry meinheld supported linux only.

Installation

Install from pypi:

$ easy_install -ZU meinheld

Install from source:

$ python setup.py install

meinheld support gunicorn .

To install gunicorn:

$ easy_install -ZU gunicorn

Basic Usage

simple wsgi app:

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)

with gunicorn. user worker class “meinheld.gmeinheld.MeinheldWorker”:

$ gunicorn --workers=2 --worker-class="meinheld.gmeinheld.MeinheldWorker" gunicorn_test:app

Performance

meinheld is used high performance http_parser.

(see http://github.com/ry/http-parser)

and useing high performance event library picoev.

(see http://developer.cybozu.co.jp/kazuho/2009/08/picoev-a-tiny-e.html)

simple benchmark

simple hello_world bench:

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]

use apach bench:

$ ab -c 100 -n 10000 http://127.0.0.1:8000/

spec

  • CPU : Intel(R) Atom(TM) CPU N270 @ 1.60GHz

  • Memoy : 1G

  • OS: Ubuntu 10.04

server

Requests per second

meinheld 0.1

2927.62 [#/sec]

fapws3 0.6

1293.53 [#/sec]

sendfile

meinheld use sendfile(2), over wgsi.file_wrapper.

Metadata

Release files for meinheld 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meinheld 0.1.1
File Size Uploaded Provenance Actions
meinheld-0.1.1.tar.gz 34.9 kB Without provenance Details for meinheld-0.1.1.tar.gz

Release files / meinheld-0.1.1.tar.gz

Download URL meinheld-0.1.1.tar.gz
Size 34.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9339aafaec59e168644fa06067a75f317beee880c7a8c1eba565cf24c1aaed05
BLAKE2b-256 checksum
How to use checksums
60f9b5fd217b3ea4c30aa3c039e012329e14e38ee8d4b546b77e2f850b255cdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for meinheld 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page