European VIES VAT field for Django
Project description
.. image:: https://travis-ci.org/codingjoe/django-vies.png?branch=master
:target: https://travis-ci.org/codingjoe/django-vies
:alt: TravisCI
.. image:: https://pypip.in/d/django-vies/badge.png
:target: https://pypi.python.org/pypi//django-vies/
:alt: Downloads
.. image:: https://pypip.in/v/django-vies/badge.png
:target: https://pypi.python.org/pypi/django-vies/
:alt: Latest Version
.. image:: https://pypip.in/license/django-vies/badge.png
:target: https://pypi.python.org/pypi/django-vies/
:alt: License
=====
Django-VIES
=====
Django-VIES is a django extension that allows storing VAT Information Exchange System (VIES) data in django models and validation.
Provided are a VATIN object, a ModelField and a FormField.
Installation
--------
Current Stable
::
pip install django-vies
Latest Development
::
pip install -e git://github.com/codingjoe/django-vies.git#egg=django-vies
Usage
--------
``VATINField`` for models
::
from vies.models import VATINField
class Company(models.Model):
name = models.CharField(max_length=100)
vat = VATINField(blank=True, null=True)
``VATIN`` wrapper class, allows access to result.
::
>>> from vies import VATIN
>>> vat = VATIN('NL', '124851903B01')
>>> vat.is_valid()
True
>>> vat.result
(reply){
countryCode = "NL"
vatNumber = "124851903B01"
requestDate = 2014-03-25
valid = True
name = "JIETER"
address = "(...)"
}
License
-------
The MIT License (MIT)
Copyright (c) 2014 Johannes Hoppe
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
.. image:: https://d2weczhvl823v0.cloudfront.net/codingjoe/django-vies/trend.png
:alt: Bitdeli badge
:target: https://bitdeli.com/free
:target: https://travis-ci.org/codingjoe/django-vies
:alt: TravisCI
.. image:: https://pypip.in/d/django-vies/badge.png
:target: https://pypi.python.org/pypi//django-vies/
:alt: Downloads
.. image:: https://pypip.in/v/django-vies/badge.png
:target: https://pypi.python.org/pypi/django-vies/
:alt: Latest Version
.. image:: https://pypip.in/license/django-vies/badge.png
:target: https://pypi.python.org/pypi/django-vies/
:alt: License
=====
Django-VIES
=====
Django-VIES is a django extension that allows storing VAT Information Exchange System (VIES) data in django models and validation.
Provided are a VATIN object, a ModelField and a FormField.
Installation
--------
Current Stable
::
pip install django-vies
Latest Development
::
pip install -e git://github.com/codingjoe/django-vies.git#egg=django-vies
Usage
--------
``VATINField`` for models
::
from vies.models import VATINField
class Company(models.Model):
name = models.CharField(max_length=100)
vat = VATINField(blank=True, null=True)
``VATIN`` wrapper class, allows access to result.
::
>>> from vies import VATIN
>>> vat = VATIN('NL', '124851903B01')
>>> vat.is_valid()
True
>>> vat.result
(reply){
countryCode = "NL"
vatNumber = "124851903B01"
requestDate = 2014-03-25
valid = True
name = "JIETER"
address = "(...)"
}
License
-------
The MIT License (MIT)
Copyright (c) 2014 Johannes Hoppe
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
.. image:: https://d2weczhvl823v0.cloudfront.net/codingjoe/django-vies/trend.png
:alt: Bitdeli badge
:target: https://bitdeli.com/free
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
django-vies-1.0.0.tar.gz
(6.6 kB
view details)
Built Distribution
File details
Details for the file django-vies-1.0.0.tar.gz
.
File metadata
- Download URL: django-vies-1.0.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc7514c759eb47a1378a8debcfd41b1dfcfba84efa058a73a4da61b30c46c778 |
|
MD5 | 13dc86d433d12fb7329e9e86523ef1ee |
|
BLAKE2b-256 | 029f48a96d33d3b7a7eb7db5b78d1f775b4cebe9a31a7a10c73aa4dcaf129c24 |
File details
Details for the file django-vies-1.0.0.macosx-10.9-intel.exe
.
File metadata
- Download URL: django-vies-1.0.0.macosx-10.9-intel.exe
- Upload date:
- Size: 69.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10bc5c6bb3caff742b1d89aa38b67f4ae0f83e160cda70488b001a6df8ee5022 |
|
MD5 | 8e8f647b8b395afa46a96f0f2d78b3c9 |
|
BLAKE2b-256 | b11803ba956b9a73d7694842b5be43a0ed3feacc251a6ddf01956b08acb97d5e |