A multi-threaded WSGI compiliant and secure web server
Project description
Rocket3
Rocket3 is the multi-threaded web server used by web2py stripped of all the Python2 logic and dependencies. It now only supports Python3 and can be used without web2py.
Rocket was originally developed by Massimo Di Pierro, then rewritten much better by Timoty Ferrell, and then has minor refactorings made by Massimo and other web2py contributors.
Example
from rocket3 import Rocket
def demo_app(environ, start_response):
"""simple exmaple WSGI app"""
start_response("200 OK", [("Content-Type", "text/html")])
data = "<html><body><h1>Hello from Rocket Web Server</h1></body></html>"
return [data]
server = Rocket(('0.0.0.0', 8080), "wsgi", {"wsgi_app": demo_app})
server.start()
License
BSDv3
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rocket3-20240929.1.tar.gz
(17.3 kB
view hashes)
Built Distribution
Close
Hashes for rocket3-20240929.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a3a23486747cf64a0ec444ddc7468fdc10153a12b4e65aa5a1fda5ce5475457 |
|
MD5 | 6e9b79a0cc91e238150d6e1806734a0e |
|
BLAKE2b-256 | 4fb552a9a570a9b90a555d03f8e74122febccd2224948642a97f48ba2bda0e3f |