Skip to main content

Simple IPC server/client

Project description

PyPI PyPI - Python Version PyPI - Downloads PyPI - License Documentation Status Discord Buy Me a Coffee

ipcs

A library for Python for IPC.

WARNING This library is currently in beta.

Installation

pip install ipcs

Examples

Run ipcs-server and run following code.

Client A

# Client A

from ipcs import Client, Request

client = Client("a")

@client.route()
async def hello(request: Request, word: str):
    print("Hello, %s!" % word)

client.run("ws://localhost/", port=8080)

Client B

# Client B

from ipcs import Client

client = Client("b")

@client.listen()
async def on_ready():
    # Run client a's hello Route to say greetings to world.
    await client.connections.a.request("hello", "World")

client.run("ws://localhost/", port=8080)

LICENSE

MIT License

Contributing

Please follow this coding style as much as possible.

Documentation

Documentation is avaliable here.

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

ipcs-0.1.0b1.tar.gz (13.8 kB view hashes)

Uploaded Source

Built Distribution

ipcs-0.1.0b1-py3-none-any.whl (16.4 kB view hashes)

Uploaded Python 3

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