Skip to main content

Utility to call git from python

Project description

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

Utility to call git from python. Examples:

>>> from sysgit import *
>>> 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
sysgit/__init__.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
sysgit/__init__.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 "sysgit/__init__.py", line 79, in git
    return f(full_args, **full_kwargs)
  File "/System/Library/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 '('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

pysysgit-0.1.0-py2.py3-none-any.whl (5.5 kB view details)

Uploaded Python 2 Python 3

pysysgit-0.1.0-py2.7.egg (5.8 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for pysysgit-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e3f8c56908ac85870902ac55bb314a2c4e2a732b0ccedcd8f5d5ea3f03939958
MD5 04c68341b2802a878e166dbaeb5f0f31
BLAKE2b-256 713456b74bb3098242a709dc2028d972c56e67d52f479ea2f078bccf11291adf

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pysysgit-0.1.0-py2.7.egg
Algorithm Hash digest
SHA256 2f7f3a169cac0c4ef627af967b9ac372b339019ace57a5c0855afd6557a2e4a0
MD5 da2f916cf544095e794ca5c75a46bd90
BLAKE2b-256 0ed472da3f26b64acf78394e6bdb7fef7f980a6e2836bef64069ba2cb053b1e8

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