Skip to main content

vcs abstraction layer

Project description

libvcs - abstraction layer for vcs, powers vcspull.

Python Package Docs Build Status Code Coverage License

Setup

$ pip install libvcs

Open up python:

$ python

# or for nice autocomplete and syntax highlighting
$ pip install ptpython
$ ptpython

Usage

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

>>> from libvcs.shortcuts import create_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')

Update / clone repo:

# it may or may not be checked out/cloned on the system yet
>>> 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

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.5.0.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

libvcs-0.5.0-py2.py3-none-any.whl (17.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file libvcs-0.5.0.tar.gz.

File metadata

  • Download URL: libvcs-0.5.0.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.7.7 Linux/4.19.121-microsoft-standard

File hashes

Hashes for libvcs-0.5.0.tar.gz
Algorithm Hash digest
SHA256 46801a5879a1b632c01a745fcb064354c05ae24770c9b3878202182024b88fd5
MD5 457da531524bfec164a33c499908c59d
BLAKE2b-256 e3b1ad4f1991aea2caa3bf029ea80ba7d2024fe371b8ee05ef5093baf1d74146

See more details on using hashes here.

Provenance

File details

Details for the file libvcs-0.5.0-py2.py3-none-any.whl.

File metadata

  • Download URL: libvcs-0.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.7.7 Linux/4.19.121-microsoft-standard

File hashes

Hashes for libvcs-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8bfa10366ed17181e5233822aa78804598400deca0376d3af66662510c5c8576
MD5 5f79213518cbaf0702dc59fedeb9ba49
BLAKE2b-256 f51d77fdab9ca9d0344bf6832f999a4272229f9461fff21a99f3f5eee808fe7d

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