Card Identifier, a Python library for credit/debit card identification, is now out! Card Identifier works on any payment card internationally, and takes out the busy work from simple card operations.

This utility offers anyone working with payment card numbers a framework to work with payment cards and classify them by type or issuer. This is especially important with the rising amount of credit card fraud and regulations surrounding online payments.

Caution: working with payment card numbers is subject to security regulations, and you should be incredibly careful about any code processing credit card numbers for security reasons.

Features

  • Card number validation
  • Card number reformatting
  • Identify the card type (VISA, MasterCard, etc)
  • Identify the card issuer (bank, financial institutions)

Card Identifier supports Python 2.7 and 3.4–3.6.

Installation

To install Card Identifier, use pip:

$ pip install card-identifier

Additional Information

The full documentation and usage instructions are available on GitHub. If you run into a problem, file an issue. Contributions welcome!

https://github.com/adelq/card_identifier

Card Identifier is completely open source under the MIT license. Enjoy!