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.
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
- Python 2.7+ or Python 3.4+
from binlist import BIN
# lookup card number's issuing network
BIN("5454").lookup()
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