django-vatno-validator 0.1.1

Creator: danarutscher

Last updated:

Add to Cart

Description:

djangovatnovalidator 0.1.1

A Django validator that validates European VAT numbers

Documentation
The full documentation is at https://django-vatno-validator.readthedocs.org.


Quickstart
Install vatno-validator:
pip install django-vatno-validator
Then use it in a project:
from django.db import models
from vatno_validator.validators import VATNoValidator

class MyModel(models.Model):
vat_no = models.CharField(validators=[VATNoValidator(allowed_countries=[
'DE',
'AT',
'GB',
])])


Features

Validates all 28 European member’s VAT numbers according to http://ec.europa.eu/taxation_customs/vies/faq.html#item_11
It does not actually query the VIES, it only performs a format-check



Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements-text.txt
(myenv) $ python runtests.py


Credits
Tools used in rendering this package:

Cookiecutter
cookiecutter-pypackage



History

0.1.1 (2015-12-17)

Corrected PyPI package name



0.1.0 (2015-12-17)

First release on PyPI.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.