topssh
a package on top of fabric to use ssh easily
installation
pip install topssh
usage
from topssh.ssh_lite import SSH
from topssh.ssh import SSH as FullSSH
host = "127.0.0.1"
user ="username"
password = "password"
# lite ssh only captures command output
ssh = SSH(host, user, password)
ssh.add_sudo_watcher()
ssh.connect(timeout=5)
out = ssh.run("hostname")
print(out)
out = ssh.run("uname -a")
print(out)
# all outpus in ssh.echo_text
print("".join(ssh.echo_text))
# full ssh cpatures all output including command input and output
ssh = FullSSH(host, user, password)
ssh.connect(timeout=5)
# add timestamps to output and ignore color chars
# ssh.patch_output()
out = ssh.run("hostname")
print(out)
out = ssh.run("uname -a")
print(out)
# all outpus in ssh.echo_text
print("".join(ssh.echo_text))
Metadata
Release files for topssh 2025.5.26
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| topssh-2025.5.26.tar.gz | 7.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| topssh-2025.5.26-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.9 kB
Release files / topssh-2025.5.26.tar.gz
| Download URL | topssh-2025.5.26.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da297bbcb2e4c97e7b406423c37cc784843ad56be9cc5c477856834cf92e93c3
|
|
BLAKE2b-256 checksum How to use checksums |
003576a2ec069308fcb54f4098df4e576351fc45f4214b31e2b00f4c72d66756
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / topssh-2025.5.26-py3-none-any.whl
| Download URL | topssh-2025.5.26-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21bc9614e49b75b6f87d2fe1eae8de2c7d45776f056d4e37cebe9f03fae50fd6
|
|
BLAKE2b-256 checksum How to use checksums |
2c5b0d4059fa0c5526306cc0a7b44fcbcd7e12cf929879781d9bf24fc1c64ce2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for topssh 2025.5.26
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.