Skip to main content

Build Status Build status Documentation Status License: GPLv3 Organization Views PRs Welcome GitHub pull-requests Language

pycctek.

Issuer Identification Number Database and Verification Utility Library. Luhn Algorithm, BIN Checker, Random Credit Card Generators.

TralahTek TralahM TralahM

Documentation

Installation

# In terminal do:
$ pip install pycctek

Building from Source for Developers

$ git clone https://github.com/TralahM/pycctek.git
$ cd pycctek
$ python setup.py install

Usage

usage: cctek [-h] [--version] {random_card,rc,luhn,ln,lookup,lk} ...

positional arguments:
  {random_card,rc,luhn,ln,lookup,lk}
    random_card (rc)    Generate Random Credit Card Number.
    luhn (ln)           Run Luhn Algorithm checks on the card numbers.
    lookup (lk)         Lookup Issuer Identification Numbers.

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit

Generate Random Credit card Number.


usage: cctek random_card [-h] {amex,diners,discover,enroute,jcb,mastercard,visa}

positional arguments:
  {amex,diners,discover,enroute,jcb,mastercard,visa}

optional arguments:
  -h, --help            show this help message and exit

Validate Credit Card Numbers with Luhn's Algorithm.

usage: cctek luhn [-h] credit_card_numbers) [credit_card_number(s ...]

positional arguments:
  credit_card_number(s) Credit Card Numbers

Lookup BINS

usage: cctek lookup [-h] BINs) [BIN(s ...]

positional arguments:
  BIN(s)      Credit Card Number or Bank/Issuer Identification Number(first 6 digits) to Lookup.

optional arguments:
  -h, --help  show this help message and exit

Documentation

Issuer Identification Numbers

ISO/IEC 7812 Identification cards — Identification of issuers was first published by the International Organization for Standardization (ISO) in 1989. It is the international standard specifies "a numbering system for the identification of the card issuers, the format of the issuer identification number (IIN) and the primary account number (PAN).

The registration authority for Issuer Identification Numbers (IINs) is the American Bankers Association.

An IIN is currently six digits in length. The leading digit is the major industry identifier (MII), followed by 5 digits, which together make up the IIN. This IIN is paired with an individual account identification number, and a single digit checksum. MII 9 has been assigned to national standards bodies for national use.

The first digit is a 9 followed by a three-digit numeric country code numeric-3 country code from ISO 3166-1. National Numbering Systems are managed by ISO-member national standards bodies. The US National Numbering system is managed by the American National Standards Institute.

MII Digit Value Issuer Category
0 ISO/TC 68 Assignment
1 Airline cards
2 Airlines cards (and other future industry assignments)
3 Travel and Entertainment Cards
4 Banking and Financial Cards
5 Banking and Financial Cards
6 Merchandising and Financial Cards
7 Gas Cards- Other Future Industry Assignments
8 Healthcare Cards- Telecommunications- Other Future Industry Assignments
9 For Use by National Standards Bodies

The first six digits, including the major industry identifier, compose the issuer identifier number (IIN) which identifies the issuing organization. The IIN is sometimes referred to as a "bank identification number" (BIN). The IIN's use is much broader than identification of a bank. IINs are used by companies other than banks.

Luhn Algorithm

The Luhn algorithm or Luhn formula, also known as the "modulus 10" or "mod 10" algorithm, named after its creator, IBM scientist Hans Peter Luhn, is a simple checksum formula used to validate a variety of identification numbers, such as:

  • credit card numbers,
  • IMEI numbers,
  • National Provider Identifier numbers in the United States,
  • Canadian Social Insurance Numbers,
  • Israeli ID Numbers,
  • South African ID Numbers,
  • Greek Social Security Numbers (ΑΜΚΑ),
  • and survey codes appearing on McDonald's, Taco Bell, and Tractor Supply Co. receipts.

It is described in U.S. Patent No. 2,950,048, filed on January 6, 1954, and granted on August 23, 1960.

Read The Wikipedia Page for a more comprehensive description of Luhn's Algorithm

Contributing

See the Contributing File

See the Pull Request File

Support

LICENCE

Read the license here

Self-Promotion

TralahM TralahM

Blog

TralahTek

Release files for pycctek 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycctek 0.0.7
File Size Uploaded
pycctek-0.0.7.tar.gz 3.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pycctek 0.0.7
File Interpreter ABI Platform
pycctek-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size:7.7 MB

Release files / pycctek-0.0.7.tar.gz

Download URL pycctek-0.0.7.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
75576b02dbdb637237c199202532ee660a21aea42010c3bde78be7498186090b
BLAKE2b-256 checksum
How to use checksums
bf745eb24a33d682fc34c1d3343515502f4a9aba9c27845e12f0d68c9e4b54f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.6

Release files / pycctek-0.0.7-py3-none-any.whl

Download URL pycctek-0.0.7-py3-none-any.whl
Size 4.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
07214b9c9055bf7d30bdec6486296af9b708779724a0298d05db5906a3cdf860
BLAKE2b-256 checksum
How to use checksums
fa5f46e4a3abdce9df1c4fe69096ea65b4dd938d85335d79224ae19385576822
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.6

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

3 release files

0.0.2

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page