A library for checking on European VAT formats
|
|
5 年之前 | |
|---|---|---|
| doc | 7 年之前 | |
| pyVat | 5 年之前 | |
| tests | 5 年之前 | |
| .gitignore | 7 年之前 | |
| .travis.yml | 7 年之前 | |
| AUTHORS | 7 年之前 | |
| LICENSE | 7 年之前 | |
| README.md | 5 年之前 | |
| setup.py | 5 年之前 |
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)