Skip to main content

A validated IBAN field for Django models

Project description

https://secure.travis-ci.org/benkonrath/django-iban.png?branch=master https://coveralls.io/repos/benkonrath/django-iban/badge.png?branch=master https://pypip.in/v/django-iban/badge.png https://pypip.in/d/django-iban/badge.png

Validated Django model fields for International Bank Account Numbers (IBAN - ISO 13616-1:2007) and SWIFT-BIC (ISO 9362:2009).

Author: Ben Konrath

License: 3-clause BSD

Features:

  • Support for all currently active IBAN countries / numbers.

  • Validates IBAN using the official validation algorithm.

  • Date conditional support for Guatemalan IBANs (active 1 July, 2014)

  • Basic validation for SWIFT-BIC.

Usage:

Define a field as IBANField and/or SWIFTBICField in your models.py:

from django_iban.fields import IBANField, SWIFTBICField

class Customer(Model):
    iban = IBANField()
    swift_bic = SWIFTBICField()

Development:

Coding style: PEP8 with 120 character lines.

Ideas for new features include:

  • SWIFT-BIC validation using referenced IBANField (SEPA requires both IBAN and SWIFT-BIC to be correct).

  • Translation of validation error messages using Transifex.

Pull requests happily accepted.

Project details


Download files

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

Source Distribution

django-iban-0.2.2.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file django-iban-0.2.2.tar.gz.

File metadata

  • Download URL: django-iban-0.2.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-iban-0.2.2.tar.gz
Algorithm Hash digest
SHA256 93d408c13943c4c45a7126d6c7df6355cd36e80f9d6bc2e210d3d4ed2d2b608f
MD5 583afcf404b02f0435ee35ba86c33923
BLAKE2b-256 e77b4ceeb8f8853507146a43d65902d892baac2fdc88d5493d0d38a2854139ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page