Skip to content

A python library for checking on European VAT formats

License

Notifications You must be signed in to change notification settings

agilegeeks/pyVat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A python library for checking on European VAT formats

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages