A library for checking on European VAT formats

Radu Boncea ad03399572 version 0.0.2 6 vuotta sitten
doc ba12553aad inital commit with some initial work 6 vuotta sitten
pyVat 9261adaa3d done with the validations 6 vuotta sitten
tests 916876f113 some travis integration 6 vuotta sitten
.gitignore 990087ef62 Impl. ES checker 6 vuotta sitten
.travis.yml 916876f113 some travis integration 6 vuotta sitten
AUTHORS ba12553aad inital commit with some initial work 6 vuotta sitten
LICENSE ba12553aad inital commit with some initial work 6 vuotta sitten
README.md 25e1922adf Update README.md 6 vuotta sitten
setup.py ad03399572 version 0.0.2 6 vuotta sitten

README.md

A library for checking on European VAT formats

Build Status

pyVat is a complete library that validates vat number formats in EU member countries. The algorithms used are described in /doc/VIES-VAT Validation Routines-v15.0.doc

Compatibility

Python >= 2.7

Installation

$ pip install vat-format-checker

Usage

from pyVat.api import Validator
validator = Validator('ATU10223006')
if validator.validate() is True:
    print ("The VAT number has a valid format")
else:
    print ("Invalid VAT number format for country %s" % validator.country_code)

Issues

  • The Croatian format is missing the algorithm. The validations is done purely based on regular expressions.