Skip to main content

vcs abstraction layer

Project description

libvcs · Python Package License Code Coverage

libvcs is a lite, typed, pythonic wrapper for git, hg, and svn. Powers vcspull.

Setup

$ pip install --user libvcs

Open up python:

$ python

Or for nice autocompletion and highlighting:

$ pip install --user ptpython
$ ptpython

Commands (experimental)

Simple subprocess wrappers around git(1), hg(1), svn(1). Here is Git w/ Git.clone:

import pathlib
from libvcs.cmd.git import Git

git = Git(dir=pathlib.Path.cwd() / 'my_git_repo')
git.clone(url='https://github.com/vcs-python/libvcs.git')

Projects

Create a GitProject object of the project to inspect / checkout / update:

import pathlib
from libvcs.projects.git import GitProject

repo = 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 to maintenance and development of the project. If you are an individual, feel free to give whatever feels right for the value you get out of the project.

See donation options at https://www.git-pull.com/support.html.

More information

Docs Build Status

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

libvcs-0.13.0a3.tar.gz (40.6 kB view details)

Uploaded Source

Built Distribution

libvcs-0.13.0a3-py3-none-any.whl (37.7 kB view details)

Uploaded Python 3

File details

Details for the file libvcs-0.13.0a3.tar.gz.

File metadata

  • Download URL: libvcs-0.13.0a3.tar.gz
  • Upload date:
  • Size: 40.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for libvcs-0.13.0a3.tar.gz
Algorithm Hash digest
SHA256 1524d5edb5c4b572580a0340a992dcde304e3cbdac39a97af81e297740c88784
MD5 ae732e37468a5b68656e6cb9e1b4543b
BLAKE2b-256 40a1ec763aa4c775152ee4bfa45f81c4fa1f724f766121ece55eecb8b0ccab8b

See more details on using hashes here.

Provenance

File details

Details for the file libvcs-0.13.0a3-py3-none-any.whl.

File metadata

  • Download URL: libvcs-0.13.0a3-py3-none-any.whl
  • Upload date:
  • Size: 37.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for libvcs-0.13.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 56f5355eb394bbcbc520d71a055f6ba298837c003028bad3ea88de35a1de687e
MD5 7223bd03fbb64a4a9d12863ebd749333
BLAKE2b-256 fa001cf454c1c3e0c4a140bb35e395a67707f4e025c906587b207043ee4f443f

See more details on using hashes here.

Provenance

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