Skip to main content

Python client for SLM Mesh — peer-to-peer communication for AI coding agents.

Project description

slm-mesh (Python)

Python client for SLM Mesh — peer-to-peer communication for AI coding agents.

Part of the Qualixar ecosystem.

Install

pip install slm-mesh

Quick Start

from slm_mesh import SLMMeshClient

client = SLMMeshClient()  # connects to localhost:7899

# Check broker health
print(client.health())

# List connected peers
peers = client.peers()

# Send a message
msg_id = client.send(from_peer="agent-a", to_peer="agent-b", payload="hello")

# Read inbox
messages = client.inbox(peer_id="agent-b")

# Shared state
client.state_set(key="current_file", value="main.py", peer_id="agent-a")
entry = client.state_get(key="current_file")

# File locking
lock = client.lock(file_path="src/app.ts", peer_id="agent-a")
client.unlock(file_path="src/app.ts", peer_id="agent-a")

# Event stream
events = client.events(types=["message", "lock"], limit=10)

Requirements

  • Python 3.10+
  • Zero external dependencies (stdlib only)
  • SLM Mesh broker running on localhost (Node.js)

License

MIT

Project details


Download files

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

Source Distribution

slm_mesh-1.1.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

slm_mesh-1.1.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: slm_mesh-1.1.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for slm_mesh-1.1.0.tar.gz
Algorithm Hash digest
SHA256 188312763aa2bb6c622cd6f9e8eaa6a918157cce608f927b22ac8d61ee664b0c
MD5 2085cc0a2e1ed05ae77c6eae6025d7de
BLAKE2b-256 0c2bd8cfd081edbafdb220ecf93a243f2a87448a042008eda802376eff961a60

See more details on using hashes here.

Provenance

The following attestation bundles were made for slm_mesh-1.1.0.tar.gz:

Publisher: publish.yml on qualixar/slm-mesh

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

File details

Details for the file slm_mesh-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: slm_mesh-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for slm_mesh-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5de656e7b73e78d6b745592c3795d777ba8a1f360377867549258a3ba37c9b3
MD5 52baa301b1881317fab4dc7a2d39d44b
BLAKE2b-256 5640caf2d88b50d6c9d42fa5b4d04394985119f842a0435f3219732395741293

See more details on using hashes here.

Provenance

The following attestation bundles were made for slm_mesh-1.1.0-py3-none-any.whl:

Publisher: publish.yml on qualixar/slm-mesh

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page