Skip to main content

A library for checking on European VAT formats

Project description

A library for checking on European VAT formats

Build Status

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.7

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.

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for vat-format-checker, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size vat_format_checker-0.0.2-py3-none-any.whl (40.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size vat-format-checker-0.0.2.tar.gz (8.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page