Skip to main content

write automation scripts for ssh and subprocess in python

Project description

The sshscript is an integration of subprocess and paramiko . It provides an unique interface to invoke commands locally and remotely. Something likes to embed shell commands in a python script. For example:

# execute a command on localhost and parse the output with python
$ls -l
for line in $.stdout.split('\n'):
    if line.startswith('d'): continue
    print(line)

# execute a command on remote host and parse the output with python
$.open('user@host')
$ls -l
for line in $.stdout.split('\n'):
    if line.startswith('d'): continue
    print(line)

More on github

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

sshscript-1.1.7.tar.gz (20.8 kB view details)

Uploaded Source

File details

Details for the file sshscript-1.1.7.tar.gz.

File metadata

  • Download URL: sshscript-1.1.7.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.13

File hashes

Hashes for sshscript-1.1.7.tar.gz
Algorithm Hash digest
SHA256 d9bbaf65abfb8442f666a4a252b05f06ef3f8cfcbeab99cd671c9999cdc8900c
MD5 fa3c87ca8bd58a4ec1f0aaec59511d1f
BLAKE2b-256 8d4303f88f852af2b0e1283188ca9f3209bebfaa15021ac05397a15d6b2407c7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page