Skip to main content

A python web framework written in C

Project description

Mrhttp

Async Python 3.5+ web server written in C

Benchmarks

  Pipelined
    Hello (cached)  8,534,332 Requests/second
    Hello           6,834,994 Requests/second
    More hdrs       6,193,307 Requests/second
    Sessions        4,396,364 Requests/second
    File Upload     3,510,289 Requests/second
    mrpacker        2,052,674 Requests/second
    Form            1,182,228 Requests/second

  One by one
    Hello           707,667 Requests/second
    Hello hdrs      728,639 Requests/second
    Cookies         588,212 Requests/second
    many args       691,910 Requests/second
    404 natural     763,643 Requests/second
    404             580,424 Requests/second
    Form parsing    338,553 Requests/second
    mrpacker        533,242 Requests/second
    Sessions        325,354 Requests/second
    File Upload     292,331 Requests/second
    get ip          503,454 Requests/second
    

Versus sanic a pure python async server

Hello World       22,366 Requests/second
Cookies           20,867 Requests/second
404                8,256 Requests/second
forms             11,104 Requests/second
sessions           4,053 Requests/second
File upload        1,457 Requests/second

Hello World Example

import mrhttp

app = mrhttp.Application()

@app.route('/')
def hello(r):
  return 'Hello World!'

app.run(cores=2)

Installation

sudo apt install python3-dev -y
pip3 install mrhttp

Project details


Download files

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

Source Distribution

mrhttp-0.12.tar.gz (78.0 kB view hashes)

Uploaded Source

Built Distributions

mrhttp-0.12-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (60.3 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

mrhttp-0.12-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (60.4 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

mrhttp-0.12-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (60.4 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

mrhttp-0.12-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (61.3 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

mrhttp-0.12-cp312-cp312-musllinux_1_1_x86_64.whl (267.1 kB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

mrhttp-0.12-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (252.7 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

mrhttp-0.12-cp311-cp311-musllinux_1_1_x86_64.whl (269.9 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

mrhttp-0.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (245.4 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

mrhttp-0.12-cp310-cp310-musllinux_1_1_x86_64.whl (257.4 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

mrhttp-0.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (244.9 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

mrhttp-0.12-cp39-cp39-musllinux_1_1_x86_64.whl (255.4 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

mrhttp-0.12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (242.9 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

mrhttp-0.12-cp38-cp38-musllinux_1_1_x86_64.whl (264.7 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

mrhttp-0.12-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (247.5 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

mrhttp-0.12-cp37-cp37m-musllinux_1_1_x86_64.whl (253.6 kB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ x86-64

mrhttp-0.12-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (228.5 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

mrhttp-0.12-cp36-cp36m-musllinux_1_1_x86_64.whl (244.5 kB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.1+ x86-64

mrhttp-0.12-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (228.8 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page