Python wrapper for Vearcity's command-line interface.
This library provides a Python wrapper for Veracity’s command-line interface. It includes objects for repositories, working copies, and other commonly-used items.
python-veracity can be installed with pip or easy_install:
pip install python-veracity
or directly from source:
python setup.py install
After installation, the package is available under the name veracity:
python >>> import veracity
A sample script might look like this:
#!/usr/bin/env python from veracity import Repo, WorkingCopy # Clone a repo repo = Repo('veracity', clone="http://public.veracity-scm.com/repos/veracity") # Check out a working copy (from repo) wc = repo.checkout("~/v/veracity") # Check out a working copy (by repo) wc2 = WorkingCopy("~/v/veracity2", repo='veracity') wc2.update(branch='onveracity') # Duplicate a working copy wc3 = wc2.copy("~/v/veracity3")
The veracity package contains unit tests which can be run from source:
python setup.py test