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

Building from source

pip install .

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.13.tar.gz (78.0 kB view details)

Uploaded Source

Built Distributions

mrhttp-0.13-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (60.4 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

mrhttp-0.13-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (60.4 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

mrhttp-0.13-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (60.4 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

mrhttp-0.13-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (61.4 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

mrhttp-0.13-cp312-cp312-musllinux_1_1_x86_64.whl (267.0 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

mrhttp-0.13-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (252.7 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

mrhttp-0.13-cp311-cp311-musllinux_1_1_x86_64.whl (269.9 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

mrhttp-0.13-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (245.3 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

mrhttp-0.13-cp310-cp310-musllinux_1_1_x86_64.whl (257.4 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

mrhttp-0.13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (244.8 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

mrhttp-0.13-cp39-cp39-musllinux_1_1_x86_64.whl (255.3 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

mrhttp-0.13-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (242.9 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

mrhttp-0.13-cp38-cp38-musllinux_1_1_x86_64.whl (264.7 kB view details)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

mrhttp-0.13-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (247.5 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

mrhttp-0.13-cp37-cp37m-musllinux_1_1_x86_64.whl (253.5 kB view details)

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

mrhttp-0.13-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (228.5 kB view details)

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

mrhttp-0.13-cp36-cp36m-musllinux_1_1_x86_64.whl (244.5 kB view details)

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

mrhttp-0.13-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (228.8 kB view details)

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

File details

Details for the file mrhttp-0.13.tar.gz.

File metadata

  • Download URL: mrhttp-0.13.tar.gz
  • Upload date:
  • Size: 78.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for mrhttp-0.13.tar.gz
Algorithm Hash digest
SHA256 13a46755ae24665190994e26db1665b8e981ffedccf0d196c8054f08f499ba6b
MD5 8ab9580904902a8252febf889dbac7b7
BLAKE2b-256 36ba48e687cfc6138f9bf2f8b7fdc556f78e1e7ae3ccb19fbf9818dc29e8113c

See more details on using hashes here.

File details

Details for the file mrhttp-0.13-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mrhttp-0.13-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fd3b7c5797b6ad005cd547706543d84a52a96efec7086af5e9c49727b7e50435
MD5 31ade8efcbbdd7651fdc5f360f6aef56
BLAKE2b-256 06bed5b9eafd67973111923f2302b33d0d39cb05e59ddc3a6bbfe677bb7197de

See more details on using hashes here.

File details

Details for the file mrhttp-0.13-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mrhttp-0.13-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dff1967d39a107a1a76d117ad1e87dd362a47c02eee9fa3082bcd3efd2ef63e4
MD5 28da4f838aa157216a2b96ad5ea4f14a
BLAKE2b-256 1e599224ab1d7ec9a6014ed664033f98ae5e9d6390f9384a34a5eb72e241d832

See more details on using hashes here.

File details

Details for the file mrhttp-0.13-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mrhttp-0.13-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b89e69ced2a8766d15058cebe55ee40886733c37c73b0faa2bd40c6962939173
MD5 9444cd04953151ba2042f52a0d1c67a5
BLAKE2b-256 a345efd1c9bf20d7e77ddc11c2908999af62c6de6aed4678705e133932adde8d

See more details on using hashes here.

File details

Details for the file mrhttp-0.13-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mrhttp-0.13-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9d2971b5234aa6588244850c04a0dbdbc4bfe0d0cdca73b9cc7a8c949ad17b8e
MD5 213a7b2eba9d4012553b436adffd0ef6
BLAKE2b-256 811947c4080bde51c395cdc3d7190b72cae5350c3e7f95b8ccf0e10099d50a59

See more details on using hashes here.

File details

Details for the file mrhttp-0.13-cp312-cp312-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for mrhttp-0.13-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 444795231664aa8b4cb3366c30672100f4cc28d115ec18ef74f35efa58401689
MD5 9ba72755a1e181353256bcf208c110cf
BLAKE2b-256 eada3f7ad3aa28f93c04d498ba68b12675c7cd1bdc54b362343ee77b22f71212

See more details on using hashes here.

File details

Details for the file mrhttp-0.13-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mrhttp-0.13-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 82d69b13b211198493134b0379be61826596b2bec46c47814dcd2d07722d97fb
MD5 45cac7a29e854bffc4002e861fb2951d
BLAKE2b-256 87030fc4e2f23dfc8ea9dc06e667033426a24a49178dcf18ec8cb19c4decd900

See more details on using hashes here.

File details

Details for the file mrhttp-0.13-cp311-cp311-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for mrhttp-0.13-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 8a5bff49d48314854a2d4d68cf6a9d851e5fff09556a0cd54372cd47e362d36a
MD5 52bcc60e89a1f2e28fb169ae46688be8
BLAKE2b-256 f93e607ead2e44511d2133f647dabd0e54179d956d1959a8c3f60ac37c57aaa3

See more details on using hashes here.

File details

Details for the file mrhttp-0.13-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mrhttp-0.13-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d2d728f7d4a85a387533bdae96cbce23fd3012e36faffc7e5d13db426e38bc75
MD5 8aba1bb319c8ec66cb0d9954a8aa2d32
BLAKE2b-256 815faf7d528bab718f8a99b1a856219c3b05786ed3c027953965126d816fbe4d

See more details on using hashes here.

File details

Details for the file mrhttp-0.13-cp310-cp310-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for mrhttp-0.13-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 38491775d3d8f4d75bc153e696655d0a878beaaf51b4a0324732e5a6dccdb5f5
MD5 faa80c1a2666986f84cd8cfda0977c67
BLAKE2b-256 7ee24a56436487f35bb36defd4d5ed477609c828a6258bc3b652fc09d4d68e9b

See more details on using hashes here.

File details

Details for the file mrhttp-0.13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mrhttp-0.13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7389388c577a8e021315caa3bf80e92f1dbe1d309d465c241a91b3ce5caf8caf
MD5 c82197b4945faa90ffffcc560ad19ba5
BLAKE2b-256 6e47f5b82a96be05d1ada5a9219681d82141a3ac7a99b43c5e9d1ec303beb26c

See more details on using hashes here.

File details

Details for the file mrhttp-0.13-cp39-cp39-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for mrhttp-0.13-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 5bd04338efd493508f78918fb69ab439dc6aedd3d82a173089cc834dd810fd21
MD5 b5fe19b5e7f94187335682f73c60a65a
BLAKE2b-256 9ab193c3dc42383dd4d015b02dee57d5edf1a86ae4b988959cf80d83787853e5

See more details on using hashes here.

File details

Details for the file mrhttp-0.13-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mrhttp-0.13-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8e718b4b898fdeb51aa418ede07d9b97e9257116d4c7379fa3526984d359eef3
MD5 30461aedc24b8e8406bf4438417a21ce
BLAKE2b-256 8409e3d4c65a6a1fc7f60e0294dbdc238b772aec69d1ea12e84c9eebce1549ff

See more details on using hashes here.

File details

Details for the file mrhttp-0.13-cp38-cp38-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for mrhttp-0.13-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 835530f052569c2852ac2a9604a337647908914bbcea1d7513b920f4fe411d46
MD5 8ddf118a890b7e8f31f796559a95352d
BLAKE2b-256 44b727c994b938cbb394bc542ca2bfbf688c010a8b8af0e5a69663a8441512c0

See more details on using hashes here.

File details

Details for the file mrhttp-0.13-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mrhttp-0.13-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e78279c5cdd7152c84efebd5bdf62525f360f9d069cc1749b91648bb0a82c707
MD5 0af5f5ccd29f08cffb53038fd587f037
BLAKE2b-256 580e1a15c9d670174d708c8f4a90f3917b732c0d44ca595d477844e2d01fa986

See more details on using hashes here.

File details

Details for the file mrhttp-0.13-cp37-cp37m-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for mrhttp-0.13-cp37-cp37m-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 7d9bebe32e3ed1fc9edb8f21e955262105d45e17ff3801eca796b707d28e9b80
MD5 3f7e34285b41aed71503586fc36138e9
BLAKE2b-256 a179c27d0f64923d53263cdd89ee21009f9faef9f6577cbb6176d89410438529

See more details on using hashes here.

File details

Details for the file mrhttp-0.13-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mrhttp-0.13-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e28a68f8e935698846165e408f524d7af129e046c013e81252931ea31a896d5d
MD5 57d54c41f3759b9665c9b0935c1b4a3d
BLAKE2b-256 68df3810354efa62067c8ae9b747080ca6b175274e08cf6c036a448e92fa4674

See more details on using hashes here.

File details

Details for the file mrhttp-0.13-cp36-cp36m-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for mrhttp-0.13-cp36-cp36m-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 b3d3c93344ff96962377c370a071636a0121e0cfbad30ca0ca79a39520f80822
MD5 097306ddc53ec372502dcd3b7b8a0dfd
BLAKE2b-256 3030a8f7dc3e4ce169f893cf92abdcbf5d1f8b5d1830a554c6c56a445d6b4db7

See more details on using hashes here.

File details

Details for the file mrhttp-0.13-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mrhttp-0.13-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6b222485ded99a0be8f8bce4e217df90a01638cd2360e6f389d64a080af12584
MD5 a76ae8c3530a2c01dff78205dfa7ad6c
BLAKE2b-256 4cc87d4674eaef6c4d178554393195dbad7d2a19028a37708d1fea1a475e58df

See more details on using hashes here.

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