Skip to main content

Python SDK for RMUX 0.6.1.

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.1 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)

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.1.tar.gz (23.3 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.1-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: librmux-0.6.1.tar.gz
  • Upload date:
  • Size: 23.3 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.1.tar.gz
Algorithm Hash digest
SHA256 767fd35e715b6436d28a5d7c06dc4ba50f760c45b8a97c4d7c62899d5cb2c8e7
MD5 bcdbf7af07a9cc368677f06ec2797c0d
BLAKE2b-256 7d2e5853f75608847112c04b435d1abf00295e7c4c3bd2e9347d7ccc964ae357

See more details on using hashes here.

Provenance

The following attestation bundles were made for librmux-0.6.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: librmux-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 23.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1120717fac1907763cfff0c4ccc08bfd455a70b5ce86a1a6bb215982a3adb45b
MD5 6d5bb62d0e7a3330ed79cd1d1b081038
BLAKE2b-256 7ff632a41d2d05eee12c82a3fe6e97b318e5864049ce44554c1a683b17392929

See more details on using hashes here.

Provenance

The following attestation bundles were made for librmux-0.6.1-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