Skip to main content

Sync Coordination Layer

A Python sync coordination engine that orchestrates synchronization between distributed nodes using vector clocks, operation logging, and conflict resolution with last-write-wins semantics.

Features

  • Vector Clocks: Full causality tracking across distributed nodes
  • Operation Logging: Persistent SQLite-backed operation log
  • Conflict Resolution: Automatic last-write-wins with vector clock tie-breaking
  • Entity CRUD: Create, update, delete, and merge operations
  • Remote Sync: Synchronize operations between multiple nodes
  • State Export: Full state export for backup and transfer
  • Thread-Safe: Reentrant lock protection for concurrent access

Installation

pip install sync-coordination

Usage

from sync_coordination import SyncCoordinator, OperationType

# Initialize nodes
node1 = SyncCoordinator("node-1", "./sync_store_1")
node2 = SyncCoordinator("node-2", "./sync_store_2")

# Create entity on node 1
op = node1.create_operation(
    OperationType.CREATE, "user:1",
    {"name": "Alice", "email": "alice@example.com"}
)
node1.apply_operation(op)

# Sync to node 2
result = node2.sync_with_remote([op])
print(result)

License

MIT

Metadata

Release files for sync-coordination 1.0.0

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

Source distribution (sdist)

Source distribution for sync-coordination 1.0.0
File Size Uploaded Provenance
sync_coordination-1.0.0.tar.gz 6.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for sync-coordination 1.0.0
File Interpreter ABI Platform
sync_coordination-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.2 kB

Release files / sync_coordination-1.0.0.tar.gz

Download URL sync_coordination-1.0.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7a3269084df8fb0e355bfa930c083f2af86e240901c64576fcb0a7883ae3ff79
BLAKE2b-256 checksum
How to use checksums
18b9f2d6bcf024eb410f87356cfccd203c0d70ac566d93b70ef3c6cdb059cf33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Release files / sync_coordination-1.0.0-py3-none-any.whl

Download URL sync_coordination-1.0.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac4b9b9df2aa71e6ad1b9dcbdb421e37689e50c81a49d94041bb15ed283607dc
BLAKE2b-256 checksum
How to use checksums
1802a76897cd9eb6653801b4a208e885eade0d4b6b1919031c70ffa3d80a2a84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Security for sync-coordination 1.0.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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