Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

⚙️ Lite, typed, pythonic utilities for git, svn, mercurial, etc.

License

NotificationsYou must be signed in to change notification settings

vcs-python/libvcs

 
 

Repository files navigation

libvcs is a lite,typed, pythonic wrapper forgit,hg, andsvn. Powersvcspull.

Setup

$pip install --user libvcs

Open up python:

$python

Or for nice autocompletion and highlighting:

$pip install --user ptpython
$ptpython

Commands (experimental)

Simplesubprocess 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')

Projects

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'

Donations

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.

More information

DocsBuild Status

About

⚙️ Lite, typed, pythonic utilities for git, svn, mercurial, etc.

Topics

Resources

License

Stars

Watchers

Forks

Contributors8

Languages


[8]ページ先頭

©2009-2025 Movatter.jp