Simple IPC server/client
Project description
ipcs
A library for Python for IPC.
(Although it is written as IPC, it can also be used for communication with an external server.)
⚠️ Maintenance Status
This project is currently in maintenance mode. I do not intend to add new features or perform non-critical updates. Security-related issues will be addressed as needed.
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 str to say greetings to world.
await client.request("a", "hello", "World")
# or `await client.connections.a.request("hello", "World")`
client.run("ws://localhost/", port=8080)
License
The license is MIT and details can be found here.
Documentation
Documentation is avaliable here.
Project details
Release history Release notifications | RSS feed
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 ipcs-0.2.2.tar.gz.
File metadata
- Download URL: ipcs-0.2.2.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b6812dd601a1644691be35047924a4f4f238b2b419c3d72189d119b753ada92
|
|
| MD5 |
09fa686f109d414516bff93e76b3a98c
|
|
| BLAKE2b-256 |
d2bf668cd21fd44587c0edcd1d4ac7e2f6cc3807a930c4d3ff9f887b4617ad13
|
File details
Details for the file ipcs-0.2.2-py3-none-any.whl.
File metadata
- Download URL: ipcs-0.2.2-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af4d5101c8c426715b2eb7c93064fcdec4f31bda1b8e3781640f675601628505
|
|
| MD5 |
5c2b48d3ce61fc2509200b2752ebdae0
|
|
| BLAKE2b-256 |
7838e3b13da77d46bff9fa1303fbad4cb187c39420dae2c6a4ddaf049f8c6f7b
|