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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vat-format-checker-0.0.4.tar.gz.
File metadata
- Download URL: vat-format-checker-0.0.4.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a19fb77d74079078825c49e363f32385e938ffdf274afc42bc08abf804ee68ee
|
|
| MD5 |
8287ed64491731c449e8a39c162398f1
|
|
| BLAKE2b-256 |
c82c4195d2dd3a4b122ad391b1084385372190e5213a7f21d456fdc431c9f395
|
File details
Details for the file vat_format_checker-0.0.4-py3-none-any.whl.
File metadata
- Download URL: vat_format_checker-0.0.4-py3-none-any.whl
- Upload date:
- Size: 40.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f37085df3e01dc57d66f6e912adeefe5c41c18166e06f376238881ee4b098ffe
|
|
| MD5 |
71bf26cb6f69d7a0c11bb113439dbaeb
|
|
| BLAKE2b-256 |
c9514276abe08c96f3fed3ebc9b521355133fd4146c2f170eb6602ef11028c60
|