VCS抽象层
libvcs的Python项目详细描述
libvcs-VCS的抽象层,提供vcspull功能。
安装:
$ pip install libvcs
打开python:
$ python
# or for nice autocomplete and syntax highlighting
$ pip install ptpython
$ ptpython
创建项目的Repo对象以检查/签出/更新:
>>>fromlibvcs.shortcutsimportcreate_repo_from_pip_url,create_repo# repo is an object representation of a vcs repository.>>>r=create_repo(url='https://www.github.com/vcs-python/libtmux',...vcs='git',...repo_dir='/tmp/libtmux')# or via pip-style URL>>>r=create_repo_from_pip_url(...pip_url='git+https://www.github.com/vcs-python/libtmux',...repo_dir='/tmp/libtmux')
更新/克隆repo:
# it may or may not be checked out/cloned on the system yet>>>r.update_repo()
获取修订版:
>>>r.get_revision()u'5c227e6ab4aab44bf097da2e088b0ff947370ab8'
捐款
你的捐赠基金开发新功能,测试和支持。 你的钱将直接用于项目的维护和开发。 如果你是一个个体,你可以自由地付出一切 从项目中获得的价值。
请参阅https://www.git-pull.com/support.html上的捐赠选项。
更多信息
Python support | Python 2.7, >= 3.4, pypy |
VCS supported | git(1), svn(1), hg(1) |
Source | https://github.com/vcs-python/libvcs |
Docs | https://libvcs.git-pull.com |
Changelog | https://libvcs.git-pull.com/en/latest/history.html |
API | https://libvcs.git-pull.com/en/latest/api.html |
Issues | https://github.com/vcs-python/libvcs/issues |
Travis | https://travis-ci.org/vcs-python/libvcs |
Test Coverage | https://codecov.io/gh/vcs-python/libvcs |
pypi | https://pypi.python.org/pypi/libvcs |
Open Hub | https://www.openhub.net/p/libvcs |
License | MIT. |
git repo | ^{pr 6}$ |
install dev | ^{pr 7}$ |
tests | ^{pr 8}$ |