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

Uploaded Python 3

File details

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

File metadata

  • Download URL: slm_mesh-1.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 e222146f24b17ce0080b46aa0b640dd6c7de689e83f4d75b5bbe7b9ad741e8cf
MD5 3a1470fe7ce32afbdb17cbf51ba862de
BLAKE2b-256 856a5cd84d6485faedb84f2309f2804578fd943969745711a91c6338ba8258a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: slm_mesh-1.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 83e3490f7f7611607927af5bada8717e95aae8c56e828c39651e634b5781167a
MD5 aaee5e78d2bb6e9c8276fa302169cb5b
BLAKE2b-256 6a8a6fe85d0d42675bb45110bf254a32e031c4e7b41ce3001a526b098061699b

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