Skip to main content

What’s this

https://travis-ci.org/methane/minefield.svg

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)

Requirements

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

minefield supports Linux, FreeBSD, Mac OS X.

Installation

Install from pypi:

$ pip install -U minefield

Install from source:

$ python setup.py 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(("0.0.0.0", 8000))
server.run(hello_world)

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

Performance

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

(see https://github.com/joyent/http-parser)

It is built around the high performance event library picoev.

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

sendfile

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

Metadata

Release files for minefield 0.6

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

Source distribution (sdist)

Source distribution for minefield 0.6
File Size Uploaded Provenance Actions
minefield-0.6.tar.gz 64.8 kB Without provenance Details for minefield-0.6.tar.gz

Release files / minefield-0.6.tar.gz

Download URL minefield-0.6.tar.gz
Size 64.8 kB
Tags Source
SHA-256 checksum
How to use checksums
72ac0d3f867aecaf2a0421c678187c116840868aed764da1e54ba0258a934603
BLAKE2b-256 checksum
How to use checksums
bd560dcc62f22bd118cabdc795b0300cde4a2c61665d75d1aa969070d5b4fa68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for minefield 0.6

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.6 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