django-vies 2.2.1

European VIES VAT field for Django
<object data="https://img.shields.io/pypi/v/django-vies.svg" type="image/svg+xml">https://img.shields.io/pypi/v/django-vies.svg</object> <object data="https://img.shields.io/badge/license-MIT-blue.svg" type="image/svg+xml"> MIT License</object> <object data="https://badges.gitter.im/Join%20Chat.svg" type="image/svg+xml">Join the chat at https://gitter.im/codingjoe/django-vies</object>

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 = "(...)"
 }

Translations

Feel free to contribute translations, it's simple!

` cd vies django-admin makemessages -l $YOUR_COUNTRY_CODE `

Just edit the generated PO file. Pull-Requests are welcome!

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.

MIT

Author

codingjoe

Pip

django-vies==2.2.1

Classifiers

  • Development Status :: 5 - Production/Stable
  • Environment :: Web Environment
  • Framework :: Django
  • Intended Audience :: Developers
  • License :: OSI Approved :: MIT License
  • Operating System :: OS Independent
  • Programming Language :: Python
  • Programming Language :: Python :: 2
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: Implementation :: PyPy
  • Intended Audience :: Financial and Insurance Industry
  • Topic :: Software Development
  • Topic :: Office/Business :: Financial :: Accounting
File Type Python Version Uploaded On Downloads
django-vies-2.2.1.tar.gz Source Aug. 4, 2015 844
Version Release Date
2.2.1 Aug. 4, 2015
2.2.0 June 26, 2015
2.1.3 Feb. 10, 2015
2.1.2 Jan. 30, 2015
2.1.1 Jan. 9, 2015
2.1.0 Jan. 6, 2015
2.0.2 Dec. 29, 2014
2.0.1 Nov. 7, 2014
2.0.0 Oct. 15, 2014
1.0.2 March 29, 2014
1.0.1 March 27, 2014
1.0.0 March 26, 2014
0.2.6 March 24, 2014
0.2.5 March 6, 2014
0.2.4 March 1, 2014
0.2.3 Feb. 27, 2014
0.2.2 Jan. 30, 2014
0.2.1 Jan. 24, 2014
0.2.0 Jan. 21, 2014
0.1.0 Jan. 17, 2014
Date Package Version Action
Aug. 26, 2015, 12:31 a.m. django-vies 1.0.1 Release Created
Aug. 26, 2015, 12:31 a.m. django-vies 2.1.1 Release Created
Aug. 26, 2015, 12:31 a.m. django-vies 2.1.0 Release Created
Aug. 26, 2015, 12:31 a.m. django-vies 2.1.3 Release Created
Aug. 26, 2015, 12:31 a.m. django-vies 2.1.2 Release Created
Aug. 26, 2015, 12:31 a.m. django-vies 0.2.0 Release Created
Aug. 26, 2015, 12:31 a.m. django-vies 0.2.1 Release Created
Aug. 26, 2015, 12:31 a.m. django-vies 2.2.0 Release Created
Aug. 26, 2015, 12:31 a.m. django-vies 2.2.1 Release Created
Aug. 26, 2015, 12:31 a.m. django-vies 0.2.4 Release Created
Aug. 26, 2015, 12:31 a.m. django-vies 1.0.2 Release Created
Aug. 26, 2015, 12:31 a.m. django-vies 0.2.6 Release Created
Aug. 26, 2015, 12:31 a.m. django-vies 0.2.5 Release Created
Aug. 26, 2015, 12:30 a.m. django-vies 0.2.3 Release Created
Aug. 26, 2015, 12:30 a.m. django-vies 0.2.2 Release Created
Aug. 26, 2015, 12:30 a.m. django-vies 2.0.0 Release Created
Aug. 26, 2015, 12:30 a.m. django-vies 2.0.1 Release Created
Aug. 26, 2015, 12:30 a.m. django-vies 2.0.2 Release Created
Aug. 26, 2015, 12:30 a.m. django-vies 1.0.0 Release Created
Aug. 26, 2015, 12:30 a.m. django-vies 0.1.0 Release Created
Aug. 26, 2015, 12:30 a.m. django-vies Package Created