python-rrmngmnt
raw JSON → 0.2.2 verified Fri May 01 auth: no python
A tool to manage remote systems and services via SSH. Current version 0.2.2, released May 2025. Release cadence is irregular, with several releases in 2024-2025. Supports Python >=3.7.
pip install python-rrmngmnt Common errors
error ModuleNotFoundError: No module named 'RRMngmnt' ↓
cause Incorrect import statement: trying to import module name with wrong casing.
fix
Use 'from rrmngmnt import RRMngmnt' (note: module is lowercase 'rrmngmnt').
error AttributeError: module 'rrmngmnt' has no attribute 'RRMngmnt' ↓
cause Importing the module but not the class, then trying to use RRMngmnt as attribute of module.
fix
Use 'from rrmngmnt import RRMngmnt' or 'from rrmngmnt import *'.
Warnings
deprecated The 'pkey' parameter for passwordless SSH has been replaced by UserWithPKey class. Using pkey directly is deprecated since 0.1.27. ↓
fix Use from rrmngmnt import UserWithPKey; host = RRMngmnt(hostname='...', username='...', pkey=UserWithPKey('/path/to/key'))
breaking In version 0.2.0, the project switched to source distribution only. Pre-built wheels are no longer provided. This may affect some installation scenarios. ↓
fix Ensure your build tools support building from source. pip should handle this automatically.
gotcha SSH connection may hang if the host is unreachable or requires interactive authentication. The library does not implement a timeout for connection attempts. ↓
fix Use Python's signal or socket level timeout externally if needed.
Imports
- RRMngmnt wrong
import RRMngmntcorrectfrom rrmngmnt import RRMngmnt
Quickstart
from rrmngmnt import RRMngmnt
host = RRMngmnt(hostname='example.com', username='user', password='pass')
# or with key:
# host = RRMngmnt(hostname='example.com', username='user', pkey='/path/to/key')
status = host.ping()
print(f"Host reachable: {status}")
# Run a command
cmd = host.execute(['uname', '-a'])
print(cmd.stdout)