django-vatno-validator

A Django validator that validates European VAT numbers


Keywords
django-vatno-validator
License
BSD-3-Clause
Install
pip install django-vatno-validator==0.1.1

Documentation

vatno-validator

https://badge.fury.io/py/django-vatno-validator.png https://travis-ci.org/productgang/django-vatno-validator.png?branch=master

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

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: