Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyexe-0.1.3-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

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

Hashes for pyexe-0.1.3.tar.gz
Algorithm Hash digest
SHA256 41e225df30a6ae1868568cb7d99d3a9e932d5982cd274ef7784a7a9ef17afb11
MD5 b93cf12178da712b5b45b0eef5902e40
BLAKE2b-256 876ab5593dac8730435692f8e04be9830d74555ee0508a0130efb98c1841e22e

See more details on using hashes here.

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

Hashes for pyexe-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fd3def5711cc614b3a6cc32a22e340021472674d0ef0203a8f8659eef49d504b
MD5 301512f49620bf3a93ae594197f758c1
BLAKE2b-256 c138ead00a33a846bf4d8a1b3e2e671774dcf244c56f8feb427f8504189ee532

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page