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-20231022.2.tar.gz
(17.1 kB
view hashes)
Built Distribution
Close
Hashes for rocket3-20231022.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c3188b20394ee32cb37e528a8f70a43fcaae36ede076b448f2c0064761369af |
|
MD5 | 3d35eccdb37f82783b8357f39149f4ce |
|
BLAKE2b-256 | 63af70c5e1e46a9ade312615f2f8e387f388717bf1821b3ff9fc0cbf189a1238 |