从python调用git的实用程序

pysysgit的Python项目详细描述


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

从python调用git的实用程序。示例:

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

功能

  • 待办事项

历史记录

0.1.0(2015-01-11)

  • pypi上的第一个版本。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
JavaPax考试:从非标准Maven存储库解析Karaf特性存储库(XML文件)   java Spring启动Bean创建异常   java中将ArrayList转换为数组的方法   Android Studio的java Unity插件。   java在CheckStyle中从方法计数中排除getter和setter   HibernateJava。sql。SQLSyntaxErrorException:表/视图“序列”不存在   与命令行程序Java vs C通信   java WebView膨胀异常   java在O(n)java8流中寻找两个列表的交集   java使用Gradle运行单元测试时,最大堆大小在哪里设置?   ssl加载java应用程序(CXF)内的jks文件   CI:Jenkins Git:Simple Java项目:希望在特定时间在脚本上发送消息   java根据位置更改数字   java按数值排序字符串数组   macos java版本“1.6.0_65”是否与java 6模棱两可?   Cassandra中的java时间戳