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.0.tar.gz (17.6 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.0-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tollmeshcache-1.1.0.tar.gz
  • Upload date:
  • Size: 17.6 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.0.tar.gz
Algorithm Hash digest
SHA256 89d9b5098f66751adc047ebd2e3b822f05760898b67099843483d738b1628680
MD5 42283f7a53cce2d475aa54b3dda4331e
BLAKE2b-256 865fbb3c027f4cfaefb2d9b74165b76feddd4fb35477c96173f065582d1c1211

See more details on using hashes here.

Provenance

The following attestation bundles were made for tollmeshcache-1.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: tollmeshcache-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.1 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4976a1f90b32874a1bc11852fcfbdaa28a888a0bc2788c9cd2204362131e1edc
MD5 ade5447de4bef9c19120315ede673fc1
BLAKE2b-256 6e854179f25f9471b5f19522cb746b3c7e6d5239980520a443e2e51ab8d79447

See more details on using hashes here.

Provenance

The following attestation bundles were made for tollmeshcache-1.1.0-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

1.1.1

2 files

This release

1.1.0 This release

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