A library for checking on European VAT formats

Agile Geeks 591565ef3b Merge pull request #2 from dyyni/patch-1 преди 5 години
doc ba12553aad inital commit with some initial work преди 6 години
pyVat eca8ff1e49 Fix validation for Finnish vat numbers преди 5 години
tests 6d23ae9f7a Fixed issue with united kingdom validator преди 5 години
.gitignore 990087ef62 Impl. ES checker преди 6 години
.travis.yml 916876f113 some travis integration преди 6 години
AUTHORS ba12553aad inital commit with some initial work преди 6 години
LICENSE ba12553aad inital commit with some initial work преди 6 години
README.md 46d7dbcb03 compatibily with python2.6 преди 5 години
setup.py bb6aaeb4ab changed version to 0.0.4 преди 5 години

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.6

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.