Skip to main content

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

with netapult.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("echo Hello World\n", text=True)

    print("Banner:", banner)
    print("Result:", result)

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

netapult_ssh-0.0.2.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netapult_ssh-0.0.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file netapult_ssh-0.0.2.tar.gz.

File metadata

  • Download URL: netapult_ssh-0.0.2.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

Hashes for netapult_ssh-0.0.2.tar.gz
Algorithm Hash digest
SHA256 258240ac24777019c5c500fabc997a3af3a2e5318680a13bd791700599b13ea6
MD5 b219c0d063d454655c3194e02a97af22
BLAKE2b-256 a607220cb003d96cff7bf7efc4dfd9ba30dcfbfb3ee32bc7431b3138bddbeb76

See more details on using hashes here.

Provenance

The following attestation bundles were made for netapult_ssh-0.0.2.tar.gz:

Publisher: python-publish.yml on Jayson-Fong/netapult-ssh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file netapult_ssh-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: netapult_ssh-0.0.2-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

Hashes for netapult_ssh-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2fef7f0b031dafc7f1f99cd2dcf9b439a7aee43c361b3fd36dc4058c3e88979e
MD5 b859c09caf5c6da6b2f7721efe81b354
BLAKE2b-256 4973f581b9dd714250f185693731f6f506ec0c1b6b5f66bc8d0f164ccb16104c

See more details on using hashes here.

Provenance

The following attestation bundles were made for netapult_ssh-0.0.2-py3-none-any.whl:

Publisher: python-publish.yml on Jayson-Fong/netapult-ssh

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