Skip to main content

Qaviton SSH

logo
version license open issues downloads code size

making ssh super easy

Installation

pip install --upgrade qaviton_ssh

Requirements

  • Python 3.6+

Features

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

Usage

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.data, response.error)  # server will respond with b'hello world', b''

create a python script on the server

cd = 'cd myproject'
file = 'script.py'
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(response.data)  # server will respond with b'script success'

Metadata

Release files for qaviton-ssh 2019.9.29.7.58.35.516322

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qaviton-ssh 2019.9.29.7.58.35.516322
File Size Uploaded Provenance Actions
qaviton_ssh-2019.9.29.7.58.35.516322.tar.gz 3.3 kB Without provenance Details for qaviton_ssh-2019.9.29.7.58.35.516322.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qaviton-ssh 2019.9.29.7.58.35.516322
File Interpreter ABI Platform Actions
qaviton_ssh-2019.9.29.7.58.35.516322-py2.py3-none-any.whl Python 2, Python 3 none any Details for qaviton_ssh-2019.9.29.7.58.35.516322-py2.py3-none-any.whl

Total release size: 11.0 kB

Release files / qaviton_ssh-2019.9.29.7.58.35.516322.tar.gz

Download URL qaviton_ssh-2019.9.29.7.58.35.516322.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a56cbd36a9e52f6e70e74c6efc989b984b09c74e0ffe63bf00c4077a0d0b94e3
BLAKE2b-256 checksum
How to use checksums
c07748297ab4e78171c93f7fd536f4a09638030b716af80465bae3ceeee7a263
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

Release files / qaviton_ssh-2019.9.29.7.58.35.516322-py2.py3-none-any.whl

Download URL qaviton_ssh-2019.9.29.7.58.35.516322-py2.py3-none-any.whl
Size 7.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f7501807514fab2cc28fc7e2f0d83d3eb0c0e802eea4d69a80e8374f75d226e2
BLAKE2b-256 checksum
How to use checksums
e0ec099863db3241e29e6b7573317030edda41fe0b855fa953cd2c677257eb64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

Security for qaviton-ssh 2019.9.29.7.58.35.516322

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page