A Django validator that validates European VAT numbers
Project description
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:
History
0.1.1 (2015-12-17)
Corrected PyPI package name
0.1.0 (2015-12-17)
First release on PyPI.
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
Close
Hashes for django-vatno-validator-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f1455c4a2c4895f5a2bbbf2b33227e4b21f8aa29f809dcedc7e78754d39c027 |
|
MD5 | b0eac60d7f20ca3e492e42802b0ea565 |
|
BLAKE2b-256 | 8f41356aa3a28d4b4901eee7a196c31face03159965f12aed78cddff354fc202 |
Close
Hashes for django_vatno_validator-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da8b382354e7ddce2285d6df371ff91d020e138fbf0c48f82fefc5b980175126 |
|
MD5 | 2922210b3621bfb3588879debcf453bf |
|
BLAKE2b-256 | ee253d5b2c5584816765d49b1b1e91518643867cf27856ff32644957868e1729 |