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.1.tar.gz (2.4 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for ucltip-0.2.1.tar.gz
Algorithm Hash digest
SHA256 dc2150ec9c563009b7e4d7923af065080cee5873bbc25290bd56cb81209e2b18
MD5 a9f67f5acd2f160ceca1e92247e10883
BLAKE2b-256 ed1f0a32f64479246b5846f3d9c883597665f1bacedf9c424244a9c94c1b5e01

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