OVERVIEW
EasySync
Real-time state synchronization for Python.
Manipulate your Python objects as if the network didn't exist. A transparent proxy intercepts every mutation and propagates it instantly to all connected machines.
pip install py-easysync
FEATURES
One decorator, zero sockets to manage. Everything else is handled for you.
Transparent proxy
auto_fix_highAttribute assignments, item writes and in-place mutations (append, update…) are intercepted and propagated automatically.
Hybrid TCP/UDP
swap_callsTCP for critical state, UDP for streams where a lost value is replaced by the next one. Pick the transport for each synced class.
Delta Sync
differenceXOR + zlib differentials for heavy objects: only what changed goes on the wire: 98% fewer bytes on a 720p frame.
Zero-socket IPC
memoryBetween processes on the same machine, the SHM mode syncs through shared memory with EasySHM. No server, no port.
Live telemetry
monitoringLatency, bandwidth and packet counts tracked in real time, with a built-in ping/pong for precise health checks.
Secure auth
lockProtect a SyncServer with your own authentication handler: rejected clients never reach the shared state.
PERFORMANCE
Measured, not promised: separate processes, a real SyncServer and thousands of updates through @SyncedObject.
| Measure | Result |
|---|---|
| Update latency, one-way, TCP (median / p99) | 100 µs / 290 µs |
| Same, UDP transport | 290 µs / 1.1 ms |
Same, SHM mode (shm_connect) |
230 µs / 680 µs |
| Sustained updates, one sender → one receiver | ~100,000 / s, 100 % delivered |
| Broadcast until every client has it: 10 / 50 / 100 clients (median) | 1.1 / 3.0 / 5.2 ms |
| Binary payload, 1 MB / 10 MB | 1.0 ms / 9.5 ms |
| Delta Sync, 720p frame with a 100×100 px change | 2.76 MB → 45 KB (−98 %) |
Version 0.2.0, Linux (WSL2), Python 3.12, 12 CPU, localhost. Latency is half of a ping/pong round trip between two processes; the delta figure is the size of the update actually sent. Run python benchmarks/perf.py to measure your machine.