- Notifications
You must be signed in to change notification settings - Fork11
⚙️ Lite, typed, pythonic utilities for git, svn, mercurial, etc.
License
vcs-python/libvcs
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
libvcs is a lite,typed, pythonic wrapper forgit,hg, andsvn. Powersvcspull.
$pip install --user libvcsOpen up python:
$pythonOr for nice autocompletion and highlighting:
$pip install --user ptpython$ptpythonSimplesubprocess wrappers aroundgit(1),hg(1),svn(1). Here isGit w/Git.clone:
importpathlibfromlibvcs.cmd.gitimportGitgit=Git(dir=pathlib.Path.cwd()/'my_git_repo')git.clone(url='https://github.com/vcs-python/libvcs.git')
Create aGitProject objectof the project to inspect / checkout / update:
importpathlibfromlibvcs.projects.gitimportGitProjectrepo=GitProject(url="https://github.com/vcs-python/libvcs",dir=pathlib.Path().cwd()/"my_repo",remotes={'gitlab':'https://gitlab.com/vcs-python/libvcs' })
Update / clone repo:
>>>r.update_repo()
Get revision:
>>>r.get_revision()u'5c227e6ab4aab44bf097da2e088b0ff947370ab8'
Your donations fund development of new features, testing and support. Your money will go directly tomaintenance and development of the project. If you are an individual, feel free to give whateverfeels right for the value you get out of the project.
See donation options athttps://www.git-pull.com/support.html.
- Python support: 3.9+, 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/history.html
- API:
libvcs.cmd: Commandslibvcs.projects: High-level synchronization commands
- Issues:https://github.com/vcs-python/libvcs/issues
- 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.
About
⚙️ Lite, typed, pythonic utilities for git, svn, mercurial, etc.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors8
Uh oh!
There was an error while loading.Please reload this page.