Skip to main content

A Django validator that validates European VAT numbers

Project description

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:

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

This version
History Node

0.1.1

History Node

0.1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_vatno_validator-0.1.1-py2.py3-none-any.whl (5.4 kB) Copy SHA256 hash SHA256 Wheel 2.7 Dec 17, 2015
django-vatno-validator-0.1.1.tar.gz (5.9 kB) Copy SHA256 hash SHA256 Source None Dec 17, 2015

Supported by

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