Plugin for Netapult to support command execution over SSH
Project description
🐚 Netapult: SSH Plugin
Purpose
This plugin provides the SSH protocol for Netapult, enabling scalable network automation and orchestration for network-connected devices.
Usage
This package registers a ssh protocol handler for Netapult, usable from Netapult's dispatcher.
import time
import netapult.dispatch
with netapult.dispatch.dispatch(
"generic", # Use the generic client
"ssh", # Use our SSH protocol
protocol_options={
"host": "your-host-here",
"username": "your-username-here",
"password": "your-password-here",
},
) as client:
# Allow time for the terminal to initialize
time.sleep(3)
# Acquire the banner
banner: str = client.read(text=True)
prompt_found, result = client.run_command("wall test1\n", text=True)
print("Banner:", banner)
print("Result:", result)
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 netapult_ssh-0.0.1.tar.gz.
File metadata
- Download URL: netapult_ssh-0.0.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32b0bd66f3f3c735d2f63ce527c866061d68be4bc794f6729be24fb7f7b0421b
|
|
| MD5 |
54b08d890679aba09a07a8ee3db378cf
|
|
| BLAKE2b-256 |
0c4babe7088027c318f43fe678e735097a951b93caa0c08f94cc33b52f8cc782
|
Provenance
The following attestation bundles were made for netapult_ssh-0.0.1.tar.gz:
Publisher:
python-publish.yml on Jayson-Fong/netapult-ssh
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
netapult_ssh-0.0.1.tar.gz -
Subject digest:
32b0bd66f3f3c735d2f63ce527c866061d68be4bc794f6729be24fb7f7b0421b - Sigstore transparency entry: 583004703
- Sigstore integration time:
-
Permalink:
Jayson-Fong/netapult-ssh@5c31e49347563ead68cb1d9b0e477a8a810aae78 -
Branch / Tag:
refs/tags/0.0.1 - Owner: https://github.com/Jayson-Fong
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@5c31e49347563ead68cb1d9b0e477a8a810aae78 -
Trigger Event:
release
-
Statement type:
File details
Details for the file netapult_ssh-0.0.1-py3-none-any.whl.
File metadata
- Download URL: netapult_ssh-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fe190dec75f48ae5824314e583deaecd9adbe087e6aa2eed5bf1b833fa514ec
|
|
| MD5 |
82672d0352244bf6859cca01d8ef320a
|
|
| BLAKE2b-256 |
1ed91f630fe6fb941efea2ab6dfc403da2d47fbe44689ee70a8f2412b3474ce3
|
Provenance
The following attestation bundles were made for netapult_ssh-0.0.1-py3-none-any.whl:
Publisher:
python-publish.yml on Jayson-Fong/netapult-ssh
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
netapult_ssh-0.0.1-py3-none-any.whl -
Subject digest:
4fe190dec75f48ae5824314e583deaecd9adbe087e6aa2eed5bf1b833fa514ec - Sigstore transparency entry: 583004704
- Sigstore integration time:
-
Permalink:
Jayson-Fong/netapult-ssh@5c31e49347563ead68cb1d9b0e477a8a810aae78 -
Branch / Tag:
refs/tags/0.0.1 - Owner: https://github.com/Jayson-Fong
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@5c31e49347563ead68cb1d9b0e477a8a810aae78 -
Trigger Event:
release
-
Statement type: