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()
Release files for pyexe 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyexe-0.1.3.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyexe-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:6.8 kB
Release files / pyexe-0.1.3.tar.gz
| Download URL | pyexe-0.1.3.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41e225df30a6ae1868568cb7d99d3a9e932d5982cd274ef7784a7a9ef17afb11
|
|
BLAKE2b-256 checksum How to use checksums |
876ab5593dac8730435692f8e04be9830d74555ee0508a0130efb98c1841e22e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pyexe-0.1.3-py3-none-any.whl
| Download URL | pyexe-0.1.3-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd3def5711cc614b3a6cc32a22e340021472674d0ef0203a8f8659eef49d504b
|
|
BLAKE2b-256 checksum How to use checksums |
c138ead00a33a846bf4d8a1b3e2e671774dcf244c56f8feb427f8504189ee532
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|