{ "info": { "author": "yehonadav", "author_email": "yonadav.barilan@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3.6" ], "description": "# Qaviton SSH\n![logo](https://www.qaviton.com/wp-content/uploads/logo-svg.svg) \n[![version](https://img.shields.io/pypi/v/qaviton_ssh.svg)](https://pypi.python.org/pypi)\n[![license](https://img.shields.io/pypi/l/qaviton_ssh.svg)](https://pypi.python.org/pypi)\n[![open issues](https://img.shields.io/github/issues/qaviton/qaviton_ssh)](https://github/issues-raw/qaviton/qaviton_ssh)\n[![downloads](https://img.shields.io/pypi/dm/qaviton_ssh.svg)](https://pypi.python.org/pypi)\n![code size](https://img.shields.io/github/languages/code-size/qaviton/qaviton_ssh)\n------------------------- \n\nmaking ssh super easy \n\n## Installation \n```sh \npip install --upgrade qaviton_ssh\n``` \n\n### Requirements\n- Python 3.6+ \n\n## Features \n* simple ssh send-recieve api \u2713 \n* async requests \u2717 (coming soon) \n* multi-session workflow \u2717 (coming soon) \n\n## Usage \n\n#### creating an ssh client \n```python\nfrom qaviton_ssh import SSH\n# hostname is a reachable address for the machine\n# username is the allowed user to have ssh access\n# private_key is the file path or string of the private key\nclient = SSH(hostname='x.x.x.x', username='username', private_key='pkey.pem')\n\nresponse = client.send('echo \"hello world\"')\nprint(response.data, response.error) # server will respond with b'hello world', b''\n```\n\n#### create a python script on the server\n```python\ncd = 'cd myproject'\nfile = 'script.py'\nresponse = client.send_many([cd, f'touch {file}', f'echo \"print(\\\"script success\\\")\" > {file}'])\nassert not response.error\n``` \n\n#### execute the script\n```python\nresponse = client.send_many([cd, f'python {file}'])\nassert not response.error\nprint(response.data) # server will respond with b'script success'\n``` \n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/qaviton/qaviton_ssh", "keywords": "", "license": "apache-2.0", "maintainer": "", "maintainer_email": "", "name": "qaviton-ssh", "package_url": "https://pypi.org/project/qaviton-ssh/", "platform": "", "project_url": "https://pypi.org/project/qaviton-ssh/", "project_urls": { "Homepage": "https://github.com/qaviton/qaviton_ssh" }, "release_url": "https://pypi.org/project/qaviton-ssh/2019.10.18.22.29.29.465016/", "requires_dist": [ "paramiko (>=2.6.0)" ], "requires_python": "", "summary": "qaviton ssh", "version": "2019.10.18.22.29.29.465016" }, "last_serial": 5997887, "releases": { "2019.10.18.22.29.29.465016": [ { "comment_text": "", "digests": { "md5": "9049ef8f1898d99d696a37fcc62dfc24", "sha256": "426282e9ad4d73e24c8f8605ec0d4add08809f4288ff3848f55b45a6bdc00b20" }, "downloads": -1, "filename": "qaviton_ssh-2019.10.18.22.29.29.465016-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9049ef8f1898d99d696a37fcc62dfc24", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8129, "upload_time": "2019-10-18T22:29:49", "url": "https://files.pythonhosted.org/packages/44/4a/06d4d40888f7563a6f5dcc0bb25f176054003b9d453647eb5f72cb501d7a/qaviton_ssh-2019.10.18.22.29.29.465016-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ef1b719ffcfe35d4c7ee69b7df589b42", "sha256": "02e7eb529265596056443302f460b5883d508534ee9e09068e979db8492fe114" }, "downloads": -1, "filename": "qaviton_ssh-2019.10.18.22.29.29.465016.tar.gz", "has_sig": false, "md5_digest": "ef1b719ffcfe35d4c7ee69b7df589b42", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3683, "upload_time": "2019-10-18T22:29:51", "url": "https://files.pythonhosted.org/packages/ba/88/a6050b351403b80a249878d345db51fc25aa174a1ffec599fb239bcb7193/qaviton_ssh-2019.10.18.22.29.29.465016.tar.gz" } ], "2019.9.26.16.30.9.439480": [ { "comment_text": "", "digests": { "md5": "0e63a6194d0ce641d62e308f8905b890", "sha256": "1b321807adf832a9a8544e5b9142b2bb9672fccf26cb9100013d19a4c0d62042" }, "downloads": -1, "filename": "qaviton_ssh-2019.9.26.16.30.9.439480-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0e63a6194d0ce641d62e308f8905b890", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7019, "upload_time": "2019-09-26T16:30:37", "url": "https://files.pythonhosted.org/packages/85/09/af428bc434584abb2d394f0fa9478bd25f0f251df034a9c1c75ddbd8d698/qaviton_ssh-2019.9.26.16.30.9.439480-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d9ae570683b08bf4b81b4dcd585d61c4", "sha256": "756e5f10ef323fcaf336d5d10cde57234fac7dd3826b1a495a109013dbcd36de" }, "downloads": -1, "filename": "qaviton_ssh-2019.9.26.16.30.9.439480.tar.gz", "has_sig": false, "md5_digest": "d9ae570683b08bf4b81b4dcd585d61c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2425, "upload_time": "2019-09-26T16:30:40", "url": "https://files.pythonhosted.org/packages/fe/dc/d2332e6e90b1b1ee8c145c033f349c21aff23ac9d6edd92a3e08affef35b/qaviton_ssh-2019.9.26.16.30.9.439480.tar.gz" } ], "2019.9.26.18.2.32.974238": [ { "comment_text": "", "digests": { "md5": "0df972f534490d3b6bab7c1cfed4727e", "sha256": "7019bc32980a1dfad963e5b0e5532409d14c73a10cd8189674c09c9602514b56" }, "downloads": -1, "filename": "qaviton_ssh-2019.9.26.18.2.32.974238-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0df972f534490d3b6bab7c1cfed4727e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7682, "upload_time": "2019-09-26T18:02:45", "url": "https://files.pythonhosted.org/packages/0d/6b/f065df4d16dc44133a3962519906a01fa38c85a801d33c72abf04f1b6172/qaviton_ssh-2019.9.26.18.2.32.974238-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ac60ae4e4ccfc33265e39c2018875cd1", "sha256": "f2b52a227aad6e99126befd6ec29b00511c561d610d91f99f1922ad022d7a272" }, "downloads": -1, "filename": "qaviton_ssh-2019.9.26.18.2.32.974238.tar.gz", "has_sig": false, "md5_digest": "ac60ae4e4ccfc33265e39c2018875cd1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3235, "upload_time": "2019-09-26T18:02:47", "url": "https://files.pythonhosted.org/packages/2c/c4/334786235305a7df56da69a56a408a99ffac6a23ec69028c8c7f8fd6887d/qaviton_ssh-2019.9.26.18.2.32.974238.tar.gz" } ], "2019.9.28.8.34.55.899054": [ { "comment_text": "", "digests": { "md5": "ba26238e0f8d22b1ebd5bad731c841e3", "sha256": "1fbbff7df6cbbb07a75cf1dbf3ef941515c92c188937f97e801a4851f70ff0c6" }, "downloads": -1, "filename": "qaviton_ssh-2019.9.28.8.34.55.899054-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ba26238e0f8d22b1ebd5bad731c841e3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7715, "upload_time": "2019-09-28T08:35:13", "url": "https://files.pythonhosted.org/packages/61/cb/eeff0a37fa92897343e8edc9b02dd2209c388b129ef99d13785541c2b2cd/qaviton_ssh-2019.9.28.8.34.55.899054-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1e0d408fa7dbec9dcf9136675a5e2c6c", "sha256": "32f0f7d3ded41be329bf8d1e6607faebbfca932ddb52a116130e7478e0b8e848" }, "downloads": -1, "filename": "qaviton_ssh-2019.9.28.8.34.55.899054.tar.gz", "has_sig": false, "md5_digest": "1e0d408fa7dbec9dcf9136675a5e2c6c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3274, "upload_time": "2019-09-28T08:35:14", "url": "https://files.pythonhosted.org/packages/15/e1/9663d21ce5769eb4c1fd7ce0193dd98ce9fb70e478b76d8d596b2d8d25f9/qaviton_ssh-2019.9.28.8.34.55.899054.tar.gz" } ], "2019.9.29.7.58.35.516322": [ { "comment_text": "", "digests": { "md5": "84b8769b9758d430115d914347c2799f", "sha256": "f7501807514fab2cc28fc7e2f0d83d3eb0c0e802eea4d69a80e8374f75d226e2" }, "downloads": -1, "filename": "qaviton_ssh-2019.9.29.7.58.35.516322-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "84b8769b9758d430115d914347c2799f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7727, "upload_time": "2019-09-29T07:58:47", "url": "https://files.pythonhosted.org/packages/e0/ec/099863db3241e29e6b7573317030edda41fe0b855fa953cd2c677257eb64/qaviton_ssh-2019.9.29.7.58.35.516322-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1b1a37177e471858d5fd0d815a5285b6", "sha256": "a56cbd36a9e52f6e70e74c6efc989b984b09c74e0ffe63bf00c4077a0d0b94e3" }, "downloads": -1, "filename": "qaviton_ssh-2019.9.29.7.58.35.516322.tar.gz", "has_sig": false, "md5_digest": "1b1a37177e471858d5fd0d815a5285b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3290, "upload_time": "2019-09-29T07:58:49", "url": "https://files.pythonhosted.org/packages/c0/77/48297ab4e78171c93f7fd536f4a09638030b716af80465bae3ceeee7a263/qaviton_ssh-2019.9.29.7.58.35.516322.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9049ef8f1898d99d696a37fcc62dfc24", "sha256": "426282e9ad4d73e24c8f8605ec0d4add08809f4288ff3848f55b45a6bdc00b20" }, "downloads": -1, "filename": "qaviton_ssh-2019.10.18.22.29.29.465016-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9049ef8f1898d99d696a37fcc62dfc24", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8129, "upload_time": "2019-10-18T22:29:49", "url": "https://files.pythonhosted.org/packages/44/4a/06d4d40888f7563a6f5dcc0bb25f176054003b9d453647eb5f72cb501d7a/qaviton_ssh-2019.10.18.22.29.29.465016-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ef1b719ffcfe35d4c7ee69b7df589b42", "sha256": "02e7eb529265596056443302f460b5883d508534ee9e09068e979db8492fe114" }, "downloads": -1, "filename": "qaviton_ssh-2019.10.18.22.29.29.465016.tar.gz", "has_sig": false, "md5_digest": "ef1b719ffcfe35d4c7ee69b7df589b42", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3683, "upload_time": "2019-10-18T22:29:51", "url": "https://files.pythonhosted.org/packages/ba/88/a6050b351403b80a249878d345db51fc25aa174a1ffec599fb239bcb7193/qaviton_ssh-2019.10.18.22.29.29.465016.tar.gz" } ] }