Skip to main content

Utility to call git from python

Project description

https://img.shields.io/pypi/v/pysyscmd.svg

Utility to call git from python. Examples:

>>> from syscmd import *
>>> from syscmd.cmds import git
>>> res = git('ls-files')
.editorconfig
.gitignore
AUTHORS.rst
CONTRIBUTING.rst
HISTORY.rst
LICENSE
MANIFEST.in
README.rst
docs/Makefile
docs/authors.rst
docs/conf.py
docs/contributing.rst
docs/history.rst
docs/index.rst
docs/installation.rst
docs/make.bat
docs/readme.rst
docs/usage.rst
requirements.txt
setup.cfg
setup.py
syscmd/__init__.py
syscmd/cmds.py
tox.ini
>>> print res
0
>>> res = git('ls-files', f=CHECK_OUTPUT)
>>> print res
.editorconfig
.gitignore
AUTHORS.rst
CONTRIBUTING.rst
HISTORY.rst
LICENSE
MANIFEST.in
README.rst
docs/Makefile
docs/authors.rst
docs/conf.py
docs/contributing.rst
docs/history.rst
docs/index.rst
docs/installation.rst
docs/make.bat
docs/readme.rst
docs/usage.rst
requirements.txt
setup.cfg
setup.py
syscmd/__init__.py
syscmd/cmds.py
tox.ini

>>> res = git('blah', f=CHECK_OUTPUT)
git: 'blah' is not a git command. See 'git --help'.

Did you mean this?
        blame
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "syscmd/cmds.py", line 58, in _cmd
    return f(full_args, **full_kwargs)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 573, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '('/usr/local/bin/git', 'blah')' returned non-zero exit status 1

Features

  • TODO

History

0.1.0 (2015-01-11)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pysyscmd-0.1.0-py2.py3-none-any.whl (5.1 kB view details)

Uploaded Python 2 Python 3

pysyscmd-0.1.0-py2.7.egg (5.2 kB view details)

Uploaded Source

File details

Details for the file pysyscmd-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pysyscmd-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 93f3c53387f1c2372071837950eadd2309672d0a894923d45219bd288af58a36
MD5 eaba0f0b335c82e3117624aeb6195acf
BLAKE2b-256 72fd4535c1bd449fcf0e47c086ad392221fe19dc359d8b2f1513d4ea0f85f8da

See more details on using hashes here.

File details

Details for the file pysyscmd-0.1.0-py2.7.egg.

File metadata

  • Download URL: pysyscmd-0.1.0-py2.7.egg
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pysyscmd-0.1.0-py2.7.egg
Algorithm Hash digest
SHA256 c7818e2c3a52253913a157daf1c4e7e90d10cd291f9a98815ac9083816d68dd3
MD5 280796f84bd429bcc82cf710b1792e5e
BLAKE2b-256 793433ad352a31a2af47df83963de2810b2b2ecca326ed21927b360832daddcc

See more details on using hashes here.

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