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.0.0.tar.gz (8.4 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.0.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: slm_mesh-1.0.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for slm_mesh-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2a787af5bf8d5bef81eaec1d8d307d4d7ed7e7c4e2ce39098dac69495bc901d7
MD5 2b05f49e225bcb2ab54147fa4da0d465
BLAKE2b-256 f1dd77f8e474338fef1eda75a855a6cb388dc3945f863243ba713f75193e2156

See more details on using hashes here.

File details

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

File metadata

  • Download URL: slm_mesh-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for slm_mesh-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1469922d0e50a1dd926af152dae126073dd18fd94a616f0d3c42185801322cf1
MD5 5893ccf4e971a18953aad60cd9e6db43
BLAKE2b-256 b9f0c21bfab9a6b6b2b652dbb829e37354e1aed2452c09806552d7d3ae54b098

See more details on using hashes here.

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