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 hashes)

Uploaded Source

Supported by

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