Skip to main content

Inter-Process Communications (IPC)

GitHub Latest Version image image PyPI - Downloads

A simple library to allow processes to use UDP to communicate with each other.

This is yet again another rehash of old work in a new way ... I keep reinventing the wheel. :)

in development

Example

import ipcpy as ipc
import struct
from collections import namedtuple

MSG_SIZE = 4
TIMEOUT = 0.1
run = True

def client():
    global run
    print("Client started")
    s = ipc.SocketUDP()
    s.open(TIMEOUT)

    for i in range(10):
        pkt = struct.pack("<i", i)
        print(f"send: {pkt}")
        s.sendto(pkt, (HOST,PORT))
        time.sleep(0.25)

    run = False

def server():
    global run
    print("Client started")
    s = ipc.SocketUDP()
    s.bind(HOST,PORT,TIMEOUT)

    while run:
        data, address = s.recvfrom(MSG_SIZE)

        if data is None:
            continue
            
        msg = struct.unpack("<i", data)
        print(f"recvfrom: {address} {data} {msg}")
                

if __name__ =="__main__":
    print(f"*** Main start ***")
    t1 = threading.Thread(target=server)
    t2 = threading.Thread(target=client)

    t1.start()
    t2.start()

    t1.join()
    t2.join()
    print("*** Main stop ***")

MIT License

Copyright (c) 2003 Kevin J. Walchko

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for ipcpy 2026.8.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ipcpy 2026.8.4.1
File Size Uploaded
ipcpy-2026.8.4.1.tar.gz 11.4 kB Details

Built distribution (wheel)

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

Total release size: 22.5 kB

Release files / ipcpy-2026.8.4.1.tar.gz

Download URL ipcpy-2026.8.4.1.tar.gz
Size 11.4 kB
Tags Source
SHA-256 checksum
How to use checksums
725d348e19b59cf232323a11558080410994b21b333d8ccb31581b2562a36ecb
BLAKE2b-256 checksum
How to use checksums
3644c45a45b4f05b7cce85ef3384318ce03bc5436d91eb7000ef33fd47401d87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / ipcpy-2026.8.4.1-py3-none-any.whl

Download URL ipcpy-2026.8.4.1-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb68d30c8ddaf6f205db2dd71e789805d11d696298b6852cf37c4d486317e955
BLAKE2b-256 checksum
How to use checksums
32948c9b7e861f46e796a72e65b3576f08982d846e22557a20dd8bb5bc50febd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

2026.8.4.1 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

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