Skip to main content

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()

    def foo(request):
        return jsonify({"hello": "world"})

    return app

if __name__ == "__main__":
    app: Soc = create_app()"localhost", port=8765)

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

soc-0.0.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

soc-0.0.1-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

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