A library for checking on European VAT formats
Project description
A library for checking on European VAT formats
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for vat_format_checker-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b70a7523e61eac0a25d9e46481f9b4ccee7c48277592672510efe567c44220c9 |
|
MD5 | 3c7ddddc41020c1891bc83b3cb3ba423 |
|
BLAKE2b-256 | 6d649758f28d682a25867c34290fb95e4a944640c920af683986bcb5b747342f |