Skip to main content

Use command line tool in Python

Project description

UCLTIP - Use command line tool in Python

This library make you easy to use command line tool in Python. The idea and most of basic codes are from GitPython project http://pypi.python.org/pypi/GitPython/

Here is examples

::

from ucltip import SingleCmd ls = SingleCmd(‘ls’) # use it as a function print ls(a=True,l=True)

if the command has sub commd , you can use CmdDispatcher

::

from ucltip import CmdDispatcher

class Zenity(CmdDispatcher):

cmd = ‘zenity’ subcmd_prefix = ‘–’

zenity = Zenity() zenity.info(text=”hello”, width=”200”)

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

ucltip-0.2.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file ucltip-0.2.tar.gz.

File metadata

  • Download URL: ucltip-0.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ucltip-0.2.tar.gz
Algorithm Hash digest
SHA256 767fc4d8ae87d5bb5728eb16356f12becd55d64efaa93c3825751214cde38941
MD5 f99a8bba80f82fe31e954fa1f7aa9e90
BLAKE2b-256 b91311e6268b67d3b4298f585730144ed703f3e2c76afdf55f3ebdfdd48925a9

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