This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Library for checking version strings in project files.

Project Description

Introduction

This project provides a Python 2.7/3.x library to aid checking strings in files. Verace’s main use case is checking that version strings are consistent in project files. The main features of this library are:

  • Custom parse any project files for strings.
  • Easily determine if all strings are consistent.
  • Quickly updated tracked strings.
  • Should work on any platform without additional dependencies; Qprompt is recommended for default prompts.

Status

Currently, this project is in the development release stage. While this project is suitable for use, please note that there may be incompatibilities in new releases.

Requirements

Verace should run on any Python 2.7/3.x interpreter without additional dependencies.

Installation

Verace can be installed with pip using the following command: pip install verace

Additional, Verace can be installed from source by running: python setup.py install

Usage

Start by importing Verace into your Python script:

import verace

Create a VerChecker object, name it and set the root location:

mychk = verace.VerChecker("My Checker", __file__)

Include a file to check. If no check function is provided, check_basic() will be used by default. Let’s look for the version string in setup.py:

mychk.include(r"lib\setup.py", match="version = ", delim='"')

Get the string found by the checker:

print("version found = " + mychk.string())
# version found = 0.3.0

The string can be updated in all associated files:

mychk.update("something different!")

That’s the basics. Check out the documentation for more info.

Here are some real-world examples of Verace in action:

A few more basic examples of Verace (all examples can be found here):

Documentation

The full documentation for this project can be found here on Read the Docs.

FAQ

How is Verace pronounced?

  • “ver-AH-che” - Italian word for “truthful/accurate”.
Release History

Release History

This version
History Node

0.3.0

History Node

0.2.5

History Node

0.2.4

History Node

0.2.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
verace-0.3.0.tar.gz (4.6 kB) Copy SHA256 Checksum SHA256 Source Feb 17, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting