Skip to main content

qaviton ssh

Project description

Qaviton SSH

version license open issues downloads code size

making ssh super easy


pip install --upgrade qaviton_ssh


  • Python 3.6+


  • simple ssh send-recieve api ✓
  • async requests ✗ (coming soon)
  • multi-session workflow ✗ (coming soon)


creating an ssh client

from qaviton_ssh import SSH
# hostname is a reachable address for the machine
# username is the allowed user to have ssh access
# private_key is the file path or string of the private key
client = SSH(hostname='x.x.x.x', username='username', private_key='pkey.pem')

response = client.send('echo "hello world"')
print(, response.error)  # server will respond with b'hello world', b''

create a python script on the server

cd = 'cd myproject'
file = ''
response = client.send_many([cd, f'touch {file}', f'echo "print(\"script success\")" > {file}'])
assert not response.error

execute the script

response = client.send_many([cd, f'python {file}'])
assert not response.error
print(  # server will respond with b'script success'

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for qaviton-ssh, version 2019.
Filename, size File type Python version Upload date Hashes
Filename, size qaviton_ssh-2019. (8.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size qaviton_ssh-2019. (3.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page