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

Elastic License 2.0

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.2.3.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.2.3-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: slm_mesh-1.2.3.tar.gz
  • Upload date:
  • Size: 8.5 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.2.3.tar.gz
Algorithm Hash digest
SHA256 a18fcf9cfc03964c801d9a27a49360c874a085965659231e975632d9912304a0
MD5 6201311eb80f485a41351318c1549ac9
BLAKE2b-256 191941c9e8b29f49e6c1f535eae8715172c5d5da05ffb8d6388bc5a34d8be9d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: slm_mesh-1.2.3-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.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 29224e3b57fb219ce5864e0759ca9865cf3c9517e606cc0c0c3ed9b4fb5f145e
MD5 62f276b4244fd4aead2e9660d850c12a
BLAKE2b-256 6d88fb1e89fc1385a5a2040808a410493f8884523e401bc438d6da039fd93e11

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