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 details)
Built Distribution
soc-0.0.1-py3-none-any.whl
(5.3 kB
view details)
File details
Details for the file soc-0.0.1.tar.gz
.
File metadata
- Download URL: soc-0.0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bef6d6f3de5573222a0c86baedda9b1e9ac4db5c1d5dd4eb09a5205efadc14e5 |
|
MD5 | d3cf6d6f1719648149d4b20a8278caa5 |
|
BLAKE2b-256 | b050f53628546a5bef9a38f9ba682f37a73887eb2376acdade8a41cfc8011a42 |
File details
Details for the file soc-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: soc-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7c56f36f38cbb93866a17d0ce84e1c6e792694e528266800071de7fa46b3811 |
|
MD5 | 342535b100ad1ac7038a82734c818117 |
|
BLAKE2b-256 | f7afb844ec5503de27356d6ee501eb01ec73b9ecf31e9a59adc5b011d5501a61 |