binlist

Python module for credit card BIN/IIN lookup.


Keywords
binlist
License
MIT
Install
pip install binlist==0.1.1

Documentation

Python BINlist

PyPI version Codacy Badge

The Python BIN-list library provides convinent PCI compliant methods to lookup credit card BIN/IIN to help you understand your credit card charges by enriching your customer's card data while maintaing (outside of) PCI compliance. It includes a pre-defined set of classes that represents Card Issuing Networks(American Express, Visa, etc.) with the most up-to-date pulished IIN rules.

Installation

BINlist is distributed on PyPI. The best way to install it is with pip:

pip install binlist

If you want to contribute and need access to the source code, then install from source with:

python setup.py install

Requirements

  • Python 2.7+ or Python 3.4+

Usage

from binlist import BIN

# lookup card number's issuing network
BIN("5454").lookup()

Development

Show help message:

make help

Run tests the default Python

make test

Run all tests on all supported Python versions:

make test-all

Run linter(flake8) with

make lint