Asynchronous websockets library
Project description
Stickney is an asynchronous websockets library for AnyIO and Python 3.11+. This is primarily designed for Trio (as asyncio is a bastard evil terrible library that deadlocks constantly) usage.
Installation
Stickney is available on PyPI.
$ poetry add stickney@latest
Usage
Create a new websocket with the open_ws_connection function:
async with open_ws_connection(url="wss://example.websocket.server/path?a=b") as ws:
...
You can send messages with the send_message function and receive messages with the receive_single_message function. You can also use close, but the WS is closed automatically when the context manager exits.
There’s not really much else to it. See stickney/frames.py for the available message types.
Naming
Stickney is named after the Stickney crater on Phobos.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stickney-0.8.0.tar.gz.
File metadata
- Download URL: stickney-0.8.0.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.23.1 CPython/3.13.3 Linux/6.12.21-gentoo-dist
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fa3f4371f66c05f9822ca8a51d1c58c9403dd166e0094c8807a22239c1d426a
|
|
| MD5 |
cdc6b1e5cc7b5b3117db61b9f72bf624
|
|
| BLAKE2b-256 |
bee5ab23010195bb99e79f802a507b014e5b687e04275b3503214172551131b4
|
File details
Details for the file stickney-0.8.0-py3-none-any.whl.
File metadata
- Download URL: stickney-0.8.0-py3-none-any.whl
- Upload date:
- Size: 23.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.23.1 CPython/3.13.3 Linux/6.12.21-gentoo-dist
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c924c5bb24bd0063cc8243d2d611d683f3f96625dee9aabfc575064471a23cb7
|
|
| MD5 |
a4ab8c74863e5b14b44aa29f4337f62c
|
|
| BLAKE2b-256 |
f6cfd80b4beb81cef33e09f4bbd55ed358cb825c84336d7a311e6fcf14a9a9a6
|