Skip to main content

Facilitate SSH expect flows

Project description

Intro

The spsshrunner package aims at facilitating SSH expect flows.

Install

$ pip install spsshrunner

Use

from spsshrunner.sshrunner import SshRunner

my_ssh_runner = SshRunner(host="10.1.1.212", user="pi", password="raspberry", prompt="\r\npi@raspberrypi:.*", timeout=5)
print(my_ssh_runner)
my_ssh_runner.initiate_connection()
my_ssh_runner.send_command(command="ls -lrt /")
my_ssh_runner.send_command(command="pwd")

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

spsshrunner-0.0.3.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

spsshrunner-0.0.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file spsshrunner-0.0.3.tar.gz.

File metadata

  • Download URL: spsshrunner-0.0.3.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for spsshrunner-0.0.3.tar.gz
Algorithm Hash digest
SHA256 edb6becb5211710e780359b25c2edd4bcfabe42861fbe185923b2b8931e5a41b
MD5 49d1727311bcebb670b1e57d8085801a
BLAKE2b-256 389d2aabef865fa97b6abb863c41a5cedf6afbc19cb35afae1c78ccb628cd6da

See more details on using hashes here.

File details

Details for the file spsshrunner-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: spsshrunner-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for spsshrunner-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dc64b4c79a26bda077fca841035bbbe493fb83fb8793571a6f5df2e7611fef08
MD5 dd8d03e275dff234ccbf3129cf9fd22e
BLAKE2b-256 487ee656d7e26abfaaf9f0025a06b2cd2a722fbe11305f107dd60a86302b3456

See more details on using hashes here.

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