A library for checking on European VAT formats
|
|
пре 7 година | |
|---|---|---|
| doc | пре 7 година | |
| pyVat | пре 7 година | |
| tests | пре 7 година | |
| .gitignore | пре 7 година | |
| .travis.yml | пре 7 година | |
| AUTHORS | пре 7 година | |
| LICENSE | пре 7 година | |
| README.md | пре 7 година | |
| setup.py | пре 7 година |
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.7
$ 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)