Skip to main content

minimal WebSocket framework and works as a HTTP upgrader for slimHTTP.

Project description

slimWS

WebSocket framework writtein in Python.
Works standalone but is preferred as @upgrader for slimHTTP.

Installation

pypi

pip install slimWS

Git it to a project

git submodule add -b master https://github.com/Torxed/slimWS.git 

(Or just git clone https://github.com/Torxed/slimWS.git)

Example usage

from slimWS import slimws

server = slimws.host(address='', port=4001)

@server.route_parser
def parse(self, frame):
	print('Got WebSocket frame:', frame.data)
	yield {'status' : 'successful'}

while 1:
	for event, *event_data in server.poll():
		pass

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

slimWS-1.0.0rc2.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

slimWS-1.0.0rc2-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

Details for the file slimWS-1.0.0rc2.tar.gz.

File metadata

  • Download URL: slimWS-1.0.0rc2.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.0

File hashes

Hashes for slimWS-1.0.0rc2.tar.gz
Algorithm Hash digest
SHA256 e86cee1d1a1e5568802596cb89e495f81938a9cee5ba2a410a05a1d27095cafa
MD5 c02abc7d06ff3caf6b6ec688c63cd975
BLAKE2b-256 3d5a4f501de48c84a86c7109ec3226d13c752b44aefdd82e33dcc3acb9053ba2

See more details on using hashes here.

File details

Details for the file slimWS-1.0.0rc2-py3-none-any.whl.

File metadata

  • Download URL: slimWS-1.0.0rc2-py3-none-any.whl
  • Upload date:
  • Size: 23.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.0

File hashes

Hashes for slimWS-1.0.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 3875aae1f74916e608290f4a407ed2556c170205ff5eb0accbbfb1148564b711
MD5 5856364eb2b356cfd57a5b480b6d5385
BLAKE2b-256 0c0d26d0b7d2111fd4845f7414786eb3940fb4fc6fed5a1c76cda71a71f2b571

See more details on using hashes here.

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