A lightweight websocket micro framework
Project description
Soc - A Python websocket micro-framework
Work in progress
from soc import Soc, jsonify
def create_app() -> Soc:
app: Soc = Soc()
@app.route("/foo")
def foo(request):
return jsonify({"hello": "world"})
return app
if __name__ == "__main__":
app: Soc = create_app()
app.run(host="localhost", port=8765)
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
soc-0.0.1.tar.gz
(3.6 kB
view hashes)
Built Distribution
soc-0.0.1-py3-none-any.whl
(5.3 kB
view hashes)