Skip to main content

Python wrapper for Vearcity's command-line interface.

Project description

Introduction

This library provides a Python wrapper for Veracity’s command-line interface. It includes objects for repositories, working copies, and other commonly-used items.

Getting Started

Requirements

Installation

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

Basic Usage

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")

Testing

The veracity package contains unit tests which can be run from source:

python setup.py test

Project details


Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page