ipckit
Local IPC primitives for Rust and Python. The same package covers pipes, shared memory, local sockets, message channels, file-backed frontend integration, events, tasks, and CLI progress.
Install
Python
python -m pip install ipckit
Prebuilt wheels are available for CPython 3.8 and newer through the stable ABI. CPython 3.7 hosts use the native
cp37-cp37m wheel on Linux x86_64 and Windows x64. The py37-lite wheel contains type stubs only for other
CPython 3.7 environments. Maya 2022 and Blender 2.83 use the native CPython 3.7 wheel.
Rust
[dependencies]
ipckit = "0.1"
CLI
cargo install --path crates/ipckit-cli
Choose a transport
| Use case | API | Transport |
|---|---|---|
| Parent and child processes | AnonymousPipe |
Anonymous pipe |
| Two unrelated processes | NamedPipe or IpcChannel |
Named pipe on Windows |
| Large shared data | SharedMemory |
Memory-mapped region |
| A local request/response socket | LocalSocketListener and LocalSocketStream |
Unix socket or named pipe |
| A web frontend and a local backend | FileChannel |
JSON files with locking |
| In-process workers | ThreadChannel |
Thread channel |
| Events and progress | EventBus |
In-process event stream |
| Long-running work | TaskManager |
Task state and cancellation |
| CLI progress reporting | CliBridge or wrap_command |
Socket-based task updates |
There is no background service to install. The process that creates a channel owns the server side.
Quick start
Python process pair
Start the server first.
# server.py
import ipckit
channel = ipckit.IpcChannel.create("demo")
channel.wait_for_client()
request = channel.recv_json()
channel.send_json({"ok": True, "echo": request})
Connect from another process.
# client.py
import ipckit
channel = ipckit.IpcChannel.connect("demo")
channel.send_json({"message": "hello"})
print(channel.recv_json())
Use NamedPipe when you need raw bytes. Use IpcChannel when messages are JSON values.
Rust typed messages
use ipckit::IpcChannel;
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
struct Message {
text: String,
}
fn main() -> ipckit::Result<()> {
let mut channel = IpcChannel::<Message>::create("demo")?;
channel.wait_for_client()?;
let message = channel.recv()?;
println!("{}", message.text);
channel.send(&Message {
text: "reply".into(),
})?;
Ok(())
}
The client uses IpcChannel::<Message>::connect("demo"), then calls send and recv.
Frontend and backend integration
FileChannel is useful when a desktop WebView or browser frontend can read and write a shared directory.
# backend.py
import ipckit
channel = ipckit.FileChannel.backend("./ipc-channel")
request_id = channel.send_request("getData", {"key": "user_info"})
response = channel.wait_response(request_id, timeout_ms=5000)
print(response)
channel.send_event("status", {"ready": True})
The backend writes to backend_to_frontend.json. The frontend writes to frontend_to_backend.json. Both files contain JSON message arrays and are updated with file locking.
const response = await fetch("./ipc-channel/backend_to_frontend.json");
const messages = await response.json();
Use FileChannel.frontend("./ipc-channel") for a Python frontend process. See examples/frontend for a complete backend, file frontend, and WebView example.
Local sockets
The local socket API keeps the application code the same across Unix and Windows.
# server.py
import ipckit
listener = ipckit.LocalSocketListener.bind("demo-socket")
stream = listener.accept()
print(stream.recv_json())
stream.send_json({"status": "ok"})
# client.py
import ipckit
stream = ipckit.LocalSocketStream.connect("demo-socket")
stream.send_json({"action": "ping"})
print(stream.recv_json())
Use send_json and recv_json for framed JSON messages. Use read_exact and write_all for a byte protocol.
Events and tasks
Publish progress or log events without introducing another service.
import ipckit
bus = ipckit.EventBus()
subscriber = bus.subscribe(ipckit.EventFilter().event_type("task.*"))
publisher = bus.publisher()
publisher.progress("task-1", 1, 2, "running")
event = subscriber.recv_timeout(1000)
print(event.event_type, event.data)
Track cancellable work with TaskManager.
import ipckit
manager = ipckit.TaskManager()
task = manager.create_task("index", "build")
task.start()
task.set_progress(50, "halfway")
if task.is_cancelled:
task.fail("cancelled")
else:
task.complete({"files": 10})
CLI integration
Wrap an existing command and collect its output.
import ipckit
result = ipckit.wrap_command(
["cargo", "build", "--release"],
task_name="Build",
task_type="build",
)
print(result.exit_code, result.duration_ms)
Use CliBridge when the host already exposes an ipckit task server.
import ipckit
with ipckit.CliBridge.connect() as bridge:
bridge.register_task("Build", "build")
bridge.set_progress(50, "compiling")
bridge.complete({"ok": True})
Progress can be parsed from command output with parse_progress(line).
Main-thread host integration
DCC and game-engine hosts often require UI work on their main thread. Rust callers can dispatch work from a worker and drain it from the host idle callback.
use ipckit::MainThreadPump;
use std::time::Duration;
let pump = MainThreadPump::new();
pump.dispatch(|| {
// Call the host UI API here.
});
// Call this from the host's idle or update callback.
let stats = pump.pump(Duration::from_millis(8));
println!("processed: {}", stats.processed);
Attach ThreadAffinity::Main to task builders when the task metadata must record main-thread affinity. The host remains responsible for calling pump.
CLI commands
ipckit create --type pipe --name demo
ipckit listen --type pipe --name demo
ipckit send --type pipe --name demo "hello"
ipckit monitor --format json
ipckit generate client --type pipe --name demo --output client.rs
Run ipckit --help for all commands and options.
Windows application-control policy
If importing the Windows wheel reports that an application-control policy blocked the native .pyd, inspect the CodeIntegrity Operational log for event 3077 and the AppLocker EXE and DLL log for event 8004. Deploy the package through an approved path or installer, add an allow rule, or sign the .pyd with a certificate trusted by the host policy.
$pyd = Get-ChildItem "D:\path\to\site-packages\ipckit\*.pyd"
Get-AuthenticodeSignature $pyd.FullName
Moving the file or removing Mark-of-the-Web metadata does not replace an App Control allow rule.
Build and test
python -m pip install maturin pytest pytest-timeout
maturin develop --release
python -m pytest tests
cargo test --workspace
The Python extension is built with the python-bindings, ext-module, and abi3-py38 features.
Project links
License
MIT or Apache-2.0.
Metadata
Release files for ipckit 0.1.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 8.9 MB
Release files / ipckit-0.1.14-py3-none-any.whl
| Download URL | ipckit-0.1.14-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
780853a310ccb798b774c735d37e70bacdd093ae6cabe3bca4fc44dd4a509abb
|
|
BLAKE2b-256 checksum How to use checksums |
a935aeb0be59a8d23c5bd2806c254d963717f1c220949f0ffbb139429e8d1e9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logRelease files / ipckit-0.1.14-cp38-abi3-win_amd64.whl
| Download URL | ipckit-0.1.14-cp38-abi3-win_amd64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.8 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
f242ba324331b1fa0e27964cc451092325ac4767d862e981e08db1f428e2522f
|
|
BLAKE2b-256 checksum How to use checksums |
e23d79a3e0ee650219ca6dd6595e74e4b1a4660302aec94e632d11412ed8fb9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logRelease files / ipckit-0.1.14-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | ipckit-0.1.14-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
2a94efae6cf27474c8665a52dbffa2ac3aa61129fe6eede934f295511153c25a
|
|
BLAKE2b-256 checksum How to use checksums |
407f4ce836cf201552f343fe5c3cbd81cf04827c9b2f75770186b43b2f2f562a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logRelease files / ipckit-0.1.14-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | ipckit-0.1.14-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
8ad690bdddbb49d5249fe3639ce15265cb588304aae0adf96089f1299228dd63
|
|
BLAKE2b-256 checksum How to use checksums |
92b20fbf88256b4af29d313f265637f6ce3696395a03d9512e50684468e9ddee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logRelease files / ipckit-0.1.14-cp38-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
| Download URL | ipckit-0.1.14-cp38-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.8 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
d1802b4730ac0d2b5d6b2f1fd28e101ba869b5f008dcc5e6135ff9a5aeafd829
|
|
BLAKE2b-256 checksum How to use checksums |
6af85cce4c31a9d1c1cffd7732df50004fd094a773209a2b5437c323dd039102
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logRelease files / ipckit-0.1.14-cp37-cp37m-win_amd64.whl
| Download URL | ipckit-0.1.14-cp37-cp37m-win_amd64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
341f7a07969cfece0a6453e7122d6fcd3d8091e37a2c8e1bb82fb7e3d3d37ec5
|
|
BLAKE2b-256 checksum How to use checksums |
77bb4b31ea68b4d451cb39b1c95dc9c0e29e3a5ce44d61a9d00775ad6d266f1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logRelease files / ipckit-0.1.14-cp37-cp37m-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | ipckit-0.1.14-cp37-cp37m-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
e04cd23f02145d379e8030850fa93c288dcd1d44479423e6f17f2d4e788f314b
|
|
BLAKE2b-256 checksum How to use checksums |
93b48227eecff3a63c10353ecf96a57cbe2c255978c3efa44b97e4af21ab1d8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logSecurity for ipckit 0.1.14
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 7 files in this release have been uploaded with provenance metadata.
Attestation for ipckit-0.1.14-py3-none-any.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.