Skip to main content

TollMeshCache - Python SDK

Distributed CRDT-based caching and coordination for Python applications.

Installation

pip install tollmeshcache

Quick Start

from tollmeshcache import Client, ClientConfig

client = Client(ClientConfig(host='localhost', port=8080))

# Job Queues - distributed task processing
job = client.enqueue('tasks', 'my-job', priority=5)
claimed = client.claim('tasks', 'worker-1')
client.complete('tasks', claimed['id'])

# Sorted Sets - O(log n) leaderboards
client.zadd('scores', 100, 'player-1')
client.zadd('scores', 150, 'player-2')
top_scores = client.zrevrange('scores', limit=10)  # highest first

# Streams - append-only event logs
entry = client.xadd('events', {'event': 'login', 'user': 'alice'})
client.xgroup_create('events', 'analytics')
for e in client.xreadgroup('analytics', 'worker-1', 'events'):
    client.xack('events', 'analytics', 'worker-1', e['id'])

Features

  • Job Queues: Distributed task processing with exactly-once semantics
  • Sorted Sets: O(log n) leaderboards and rankings
  • Streams: Append-only event logs with consumer groups
  • CRDT-based: Eventual consistency without central coordinator
  • Async Support: Full async/await support
  • Distributed: Multi-node coordination with Lamport clocks

Documentation

See https://github.com/TollMesh/toll-mesh-store for complete documentation.

License

Apache License 2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tollmeshcache-1.1.1.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tollmeshcache-1.1.1-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file tollmeshcache-1.1.1.tar.gz.

File metadata

  • Download URL: tollmeshcache-1.1.1.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for tollmeshcache-1.1.1.tar.gz
Algorithm Hash digest
SHA256 6f53cba2d8605d9d9a987bf1762e2fa9d98aeed98cd77e5be0ae915521b6dd0a
MD5 315776a07e87221dc3409cf182dcb799
BLAKE2b-256 cc647825110e7f88cc62f3e54f708bdf43bc9abb7570635a30a60bb40d3f1e78

See more details on using hashes here.

Provenance

The following attestation bundles were made for tollmeshcache-1.1.1.tar.gz:

Publisher: publish-python.yml on TollMesh/toll-mesh-store

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tollmeshcache-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: tollmeshcache-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for tollmeshcache-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ef8cb42f09d18cea4c75c8a9916f2dfd3e6201e0d4543e4b4b8aeb78463a5bf
MD5 d87d993c0348c790d6bf4351ca5efc7f
BLAKE2b-256 263b7f2ab6a8111760338d31f633ab3eacfc592afbc6f99f1121c8d8954b19d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for tollmeshcache-1.1.1-py3-none-any.whl:

Publisher: publish-python.yml on TollMesh/toll-mesh-store

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 files

1.1.0

2 files

1.0.0

2 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