Skip to main content

Simple IPC server/client

Project description

PyPI PyPI - Python Version PyPI - License Documentation Status

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


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.2.1.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipcs-0.2.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file ipcs-0.2.1.tar.gz.

File metadata

  • Download URL: ipcs-0.2.1.tar.gz
  • Upload date:
  • Size: 14.3 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

Hashes for ipcs-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f3460288323bb54718d04072d1dfd5339220b1ed172cca644fb28c80b875a2a7
MD5 ff33f7779fae47192bd1148191895e4a
BLAKE2b-256 8ee41d4bd4f5ab1272340b2f451b1c8b23400e28c9d07bc92b0de48a234dcedc

See more details on using hashes here.

File details

Details for the file ipcs-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: ipcs-0.2.1-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

Hashes for ipcs-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 99d5ae7fec05ae636d90ab455e5c3aac1124755d27f9845024fd02774611994c
MD5 ce0624ce91819d7371428253d6c21db5
BLAKE2b-256 3297a60494014e65a65ec8b676fc4fa84f6ee3df2c93ba7a54f1288fb31beaf5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page