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.2.tar.gz (14.1 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.2-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

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

Hashes for ipcs-0.2.2.tar.gz
Algorithm Hash digest
SHA256 1b6812dd601a1644691be35047924a4f4f238b2b419c3d72189d119b753ada92
MD5 09fa686f109d414516bff93e76b3a98c
BLAKE2b-256 d2bf668cd21fd44587c0edcd1d4ac7e2f6cc3807a930c4d3ff9f887b4617ad13

See more details on using hashes here.

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

Hashes for ipcs-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 af4d5101c8c426715b2eb7c93064fcdec4f31bda1b8e3781640f675601628505
MD5 5c2b48d3ce61fc2509200b2752ebdae0
BLAKE2b-256 7838e3b13da77d46bff9fa1303fbad4cb187c39420dae2c6a4ddaf049f8c6f7b

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