Skip to main content

Python SDK for RMUX 0.6.0.

Project description

librmux

librmux is the Python SDK for RMUX. Its public handles follow the same vocabulary as the Rust SDK: RMUX, Session, Window, and Pane.

Examples available

Installation

python -m pip install librmux

librmux targets RMUX 0.6.0 and uses the rmux executable. Install the RMUX binary separately and keep it on PATH, or pass a specific binary with RMUX.builder().binary(...).

from librmux import RMUX

rmux = RMUX()
for session in rmux.list_sessions():
    print(session["session_name"])

Rmux and Server remain available as aliases for existing code.

Endpoint Selection

RMUX()                         # default rmux endpoint
RMUX(socket_path="/tmp/rmux")   # passes -S /tmp/rmux
RMUX(socket_name="demo")        # passes -L demo
RMUX.builder().socket_name("demo").connect_or_start()

Common Operations

session = rmux.ensure_session("demo")
pane = session.pane(0, 0)
pane.send_text("echo hello\n")
pane.expect_visible_text().to_contain("hello").timeout(5)
text = pane.capture_text()

For raw commands:

run = rmux.cmd("rename-window", "-t", "demo:0", "logs")
if run.returncode != 0:
    raise RuntimeError(run.stderr)

Publishing

This package is released to PyPI as librmux from version tags through PyPI Trusted Publishing. Configure the PyPI project with workflow .github/workflows/release.yml and environment pypi, then publish with:

git tag v0.6.0
git push origin v0.6.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

librmux-0.6.0.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

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

librmux-0.6.0-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file librmux-0.6.0.tar.gz.

File metadata

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

File hashes

Hashes for librmux-0.6.0.tar.gz
Algorithm Hash digest
SHA256 c81ed6e3ea1577b4d54ae01599f55ed6f71e96036207dc7ed63d4c4e5a295937
MD5 48597a201f1d77cef7b6fb5952c713e0
BLAKE2b-256 8f15449ba0c29d9791749602274a46c8dc8b5442f96bfeb8a590c028d26d95fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for librmux-0.6.0.tar.gz:

Publisher: release.yml on Helvesec/rmux-python

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

File details

Details for the file librmux-0.6.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for librmux-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e546e6fecbf44a0b540d0a55d083c33f59c95fedfb5551b03c6df678d7cf274
MD5 e71ff3d9786b2a39f70dd2ef49aa1ea3
BLAKE2b-256 ff634ce720a0f5b05e9a90cbcd9161d46bc7987ff33a696b6ff5f2f642f69683

See more details on using hashes here.

Provenance

The following attestation bundles were made for librmux-0.6.0-py3-none-any.whl:

Publisher: release.yml on Helvesec/rmux-python

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