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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c81ed6e3ea1577b4d54ae01599f55ed6f71e96036207dc7ed63d4c4e5a295937
|
|
| MD5 |
48597a201f1d77cef7b6fb5952c713e0
|
|
| BLAKE2b-256 |
8f15449ba0c29d9791749602274a46c8dc8b5442f96bfeb8a590c028d26d95fc
|
Provenance
The following attestation bundles were made for librmux-0.6.0.tar.gz:
Publisher:
release.yml on Helvesec/rmux-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
librmux-0.6.0.tar.gz -
Subject digest:
c81ed6e3ea1577b4d54ae01599f55ed6f71e96036207dc7ed63d4c4e5a295937 - Sigstore transparency entry: 1841213068
- Sigstore integration time:
-
Permalink:
Helvesec/rmux-python@ebe8062a94d3506e80194ebca46ddc370de81974 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/Helvesec
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ebe8062a94d3506e80194ebca46ddc370de81974 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e546e6fecbf44a0b540d0a55d083c33f59c95fedfb5551b03c6df678d7cf274
|
|
| MD5 |
e71ff3d9786b2a39f70dd2ef49aa1ea3
|
|
| BLAKE2b-256 |
ff634ce720a0f5b05e9a90cbcd9161d46bc7987ff33a696b6ff5f2f642f69683
|
Provenance
The following attestation bundles were made for librmux-0.6.0-py3-none-any.whl:
Publisher:
release.yml on Helvesec/rmux-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
librmux-0.6.0-py3-none-any.whl -
Subject digest:
6e546e6fecbf44a0b540d0a55d083c33f59c95fedfb5551b03c6df678d7cf274 - Sigstore transparency entry: 1841213122
- Sigstore integration time:
-
Permalink:
Helvesec/rmux-python@ebe8062a94d3506e80194ebca46ddc370de81974 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/Helvesec
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ebe8062a94d3506e80194ebca46ddc370de81974 -
Trigger Event:
push
-
Statement type: