Skip to main content

wsipc

Async Python IPC using WebSockets

Server Example (Simple Broker)

from asyncio import run

from wsipc import WSIPCServer

server = WSIPCServer(heartbeat=45)

run(server.start(block=True))

Client Example

from asyncio import create_task, run, sleep

from wsipc import WSIPCClient


client = WSIPCClient()

@client.listener()
async def on_message(message):
    print(message)

@client.listener()
def sync_listener(message):
    print(message)

async def main() -> None:
    create_task(client.connect())

    await client.connected.wait()

    await client.send("Hello World!")

    await sleep(1)

    await client.close()

run(main())

Metadata

Release files for wsipc 0.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 wsipc 0.0.3
File Size Uploaded Provenance Actions
wsipc-0.0.3.tar.gz 5.8 kB Without provenance Details for wsipc-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wsipc 0.0.3
File Interpreter ABI Platform Actions
wsipc-0.0.3-py3-none-any.whl Python 3 none any Details for wsipc-0.0.3-py3-none-any.whl

Total release size: 12.7 kB

Release files / wsipc-0.0.3.tar.gz

Download URL wsipc-0.0.3.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
14c105fbba37272b64753e968718e9550249e8e146d6dd3dafc2eebfa83339d1
BLAKE2b-256 checksum
How to use checksums
2b23fcb7cb854aab7b3ecf22303b16618ee0f05e496aeeca8b31f93ccfd887d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.2 Linux/5.16.0-arch1-1

Release files / wsipc-0.0.3-py3-none-any.whl

Download URL wsipc-0.0.3-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d86f0dc42a1daac836baf7bfa30384e765be4e81b2895b3b188d44b3c9dd1a0
BLAKE2b-256 checksum
How to use checksums
73e9e3d7494b3bd5413321cc354d7625b02eee0c356b2cef9ea18e13e563541d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.2 Linux/5.16.0-arch1-1

Security for wsipc 0.0.3

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.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files No provenance

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