Skip to main content

High performance Python WSGI Web Server

Project description

What’s this

This is a fork of meinheld, the high performance python wsgi web server.

Minefield removes asynchronous feature from meinheld and have some experimental tuning.

And minefield is a WSGI compliant web server. (PEP333 and PEP3333 supported)


minefield requires Python 2.x >= 2.7 or Python 3.x >= 3.3.

minefield supports Linux, FreeBSD, Mac OS X.


Install from pypi:

$ pip install -U minefield

Install from source:

$ python install

minefield supports gunicorn.

To install gunicorn:

$ pip install -U gunicorn

Basic Usage

simple wsgi app:

from minefield import server

def hello_world(environ, start_response):
    status = '200 OK'
    res = b"Hello world!"
    response_headers = [('Content-type', 'text/plain'), ('Content-Length', str(len(res)))]
    start_response(status, response_headers)
    return [res]

server.listen(("", 8000))

with gunicorn. user worker class “egg:minefield#gunicorn_worker” or “minefield.gminefield.MinefieldWorker”:

$ gunicorn --workers=2 --worker-class="egg:minefield#gunicorn_worker" gunicorn_test:app


For parsing HTTP requests, meinheld uses Ryan Dahl’s http-parser library.


It is built around the high performance event library picoev.



Meinheld uses sendfile(2), over wgsi.file_wrapper.

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for minefield, version 0.6
Filename, size File type Python version Upload date Hashes
Filename, size minefield-0.6.tar.gz (64.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page