Python package to execute local and remote commands
Project description
pyexe
Python package to execute commands on local and remote server.
Installation
pip install pyexe
Uses
Local
from pyexe import Local
lc= Local()
lc.exe("mkdir myfolder")
lc.setPath("./myfolder")
lc.exe("git status")
Remote
from pyexe import Remote
rm= Remote("162.158.50.246", "root", "password")
rm.connect()
rm.setPath("/var/www")
rm.exe("ls")
Git automation
from pyexe import Local, Remote
lc= Local()
lc.git.add()
lc.git.commit("initial commit")
lc.git.push()
# or shortcut for above 3 commands
lc.git.put()
rm- Remote(......)
rm.git.pull()
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
pyexe-0.1.3.tar.gz
(2.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pyexe-0.1.3-py3-none-any.whl
(4.2 kB
view details)
File details
Details for the file pyexe-0.1.3.tar.gz.
File metadata
- Download URL: pyexe-0.1.3.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41e225df30a6ae1868568cb7d99d3a9e932d5982cd274ef7784a7a9ef17afb11
|
|
| MD5 |
b93cf12178da712b5b45b0eef5902e40
|
|
| BLAKE2b-256 |
876ab5593dac8730435692f8e04be9830d74555ee0508a0130efb98c1841e22e
|
File details
Details for the file pyexe-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pyexe-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd3def5711cc614b3a6cc32a22e340021472674d0ef0203a8f8659eef49d504b
|
|
| MD5 |
301512f49620bf3a93ae594197f758c1
|
|
| BLAKE2b-256 |
c138ead00a33a846bf4d8a1b3e2e671774dcf244c56f8feb427f8504189ee532
|