Skip to main content

Small websocket server implementation

You can use this program for various uses. For example, communicate with browser's JavaScript, send command request to minecraft ("/connect HOST:PORT" command).

example


How to install

pip install thin-ws-server

Usage

from thin_ws_server import WebSocketServer

ws = WebSocketServer(8000)  # initialize with port number
ws.accept()  # accept client connection

ws.send(data)  # data: str or bytes
ws.recv()  # returns bytes

Metadata

Release files for thin-ws-server 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for thin-ws-server 1.0.3
File Size Uploaded
thin_ws_server-1.0.3.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for thin-ws-server 1.0.3
File Interpreter ABI Platform
thin_ws_server-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / thin_ws_server-1.0.3.tar.gz

Download URL thin_ws_server-1.0.3.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
45c3a85c8a2e0dc59809fc920aca09a48feaf75282f7ae13f3492af811374b87
BLAKE2b-256 checksum
How to use checksums
616a7307507e13c5d36656e96bda54b64434d539023c114054135e8158a939ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

Release files / thin_ws_server-1.0.3-py3-none-any.whl

Download URL thin_ws_server-1.0.3-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a70488bc6e29fdfb41bbf862e0c68b186f2ef15d2b9a59c20cc6aeb0766cd18a
BLAKE2b-256 checksum
How to use checksums
e17c67272e5356c8d08c4e20671d4cdbf114f3a205016f245e2e36b38edba89d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page