wsaio is a callback-based WebSocket library for Python.
Examples
import asyncio
from wsaio import WebSocketClient
class EchoClient(WebSocketClient):
async def on_text(self, data):
await self.write(data)
async def on_binary(self, data):
await self.write(data, binary=True)
async def main(loop):
client = EchoClient(loop=loop)
await client.connect('wss://localhost/helloWorld')
await client.wait_until_closed()
loop = asyncio.get_event_loop()
loop.run_until_complete(main(loop))
Metadata
Release files for wsaio 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wsaio-1.0.0.tar.gz | 13.4 kB | Without provenance | Details for wsaio-1.0.0.tar.gz |
Release files / wsaio-1.0.0.tar.gz
| Download URL | wsaio-1.0.0.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f22c4dfec5a284faf40310c3462c8d3faffd65100b322a27a9b5e13738d894cd
|
|
BLAKE2b-256 checksum How to use checksums |
c3fa3c89ffd50ee40ad6eba042b73603e0bde21c2dcb83c51b40d7b0ebe9b60a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Security for wsaio 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.