Socketify.py is a reliable, high-performance Python web framework for building large-scale app backends and microservices.
 
 
 
 
 
 
Go to file
Ciro 2bfb007ce4 fixed forking/timing thread 2022-05-24 18:51:41 -03:00
LICENSE
README.md
libuwebsockets.so
main.py fixed forking/timing thread 2022-05-24 18:51:41 -03:00

README.md

uWebSockets.py

Fast WebSocket and Http/Https server using CFFI with C API from uNetworking/uWebSockets

This project will adapt the full capi from uNetworking/uWebSockets but for now it's just this.

Overly simple hello world app

from "uws" import UWSApp

app = UWSApp()
app.get("/", lambda res, req: res.end("Hello World uWS from Python!"))
app.listen(3000, lambda socket, config: print("Listening on port http://localhost:%s now\n" % str(config.port)))
app.run()

pip (working progress)

pip install git+https://github.com/cirospaciari/uWebSockets.py.git

Run

pypy3 ./hello_world.py