A library for checking on European VAT formats
|
|
il y a 5 ans | |
|---|---|---|
| doc | il y a 7 ans | |
| pyVat | il y a 5 ans | |
| tests | il y a 5 ans | |
| .gitignore | il y a 7 ans | |
| .travis.yml | il y a 7 ans | |
| AUTHORS | il y a 7 ans | |
| LICENSE | il y a 7 ans | |
| README.md | il y a 5 ans | |
| setup.py | il y a 5 ans |
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
Python >= 2.6
$ pip install vat-format-checker
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)