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-0.984.tar.gz (19.1 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for sshscript-0.984.tar.gz
Algorithm Hash digest
SHA256 e13bc713cc57067367149febe0ba0705204f24e4dbb72c834ce5e6399524a157
MD5 54b604a5109885931e1ce7d1de14dc99
BLAKE2b-256 d42400d48e9cd60722d141648f80ae0911d337db84f503a71eb62bb86fce1511

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