https://github.com/stdevteam/credit_card_validation
https://github.com/stdevteam/credit_card_validation
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/stdevteam/credit_card_validation
- Owner: stdevteam
- Created: 2019-03-11T08:33:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-04-05T10:41:15.000Z (about 4 years ago)
- Last Synced: 2025-01-20T10:48:08.694Z (over 1 year ago)
- Language: Python
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
=================
Credit Card Validation
=================
-----------------
Development setup
-----------------
Install required system packages:
.. code-block:: bash
```bash
sudo apt-get install python3-pip
sudo apt-get install python3.6-dev
pip install -r requirements.txt
```
-----------------
Project Description
-----------------
Validate credit cards with ease
- It must start with a 4, 5 or 6.
- It must contain exactly 16 digits.
- It must only consist of digits (0-9).
- It may have digits in groups of 4, separated by one hyphen "-".
- It must NOT use any other separator like ' ', '_', etc.
- It must NOT have 4 or more consecutive repeated digits.