{"id":16686366,"url":"https://github.com/stdevteam/credit_card_validation","last_synced_at":"2026-04-27T09:02:29.367Z","repository":{"id":151144892,"uuid":"174957593","full_name":"stdevteam/credit_card_validation","owner":"stdevteam","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-05T10:41:15.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-20T10:48:08.694Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stdevteam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-11T08:33:00.000Z","updated_at":"2022-04-05T10:41:18.000Z","dependencies_parsed_at":"2024-02-13T03:17:17.259Z","dependency_job_id":null,"html_url":"https://github.com/stdevteam/credit_card_validation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdevteam%2Fcredit_card_validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdevteam%2Fcredit_card_validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdevteam%2Fcredit_card_validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdevteam%2Fcredit_card_validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stdevteam","download_url":"https://codeload.github.com/stdevteam/credit_card_validation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243428436,"owners_count":20289317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T15:05:35.288Z","updated_at":"2025-12-27T11:59:46.528Z","avatar_url":"https://github.com/stdevteam.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=================\nCredit Card Validation\n=================\n\n-----------------\nDevelopment setup\n-----------------\nInstall required system packages:\n\n.. code-block:: bash\n```bash\nsudo apt-get install python3-pip\nsudo apt-get install python3.6-dev\npip install -r requirements.txt\n ```\n\n-----------------\nProject Description \n-----------------\n\nValidate credit cards with ease\n\n\u003col\u003e\n\u003cli\u003eIt must start with a 4, 5 or 6.\u003c/li\u003e\n\u003cli\u003eIt must contain exactly 16 digits.\u003c/li\u003e\n\u003cli\u003eIt must only consist of digits (0-9).\u003c/li\u003e\n\u003cli\u003eIt may have digits in groups of 4, separated by one hyphen \"-\". \u003c/li\u003e\n\u003cli\u003eIt must NOT use any other separator like ' ', '_', etc. \u003c/li\u003e\n\u003cli\u003e It must NOT have 4 or more consecutive repeated digits.\u003c/li\u003e\n\u003c/ol\n\n\n-----------------\nCLI commands\n-----------------\n\nTo check one card number:\n```bash\npython main.py check_card_number CARD_NUM\n```\nTo check several card numbers, \nyou need to set the number of cards and then enter the numbers\n\n```bash\npython main.py input_cards_count CARDS_COUNT\n```\n\n\n-----------------\nUnit Tests\n-----------------\n\nTo run unit tests:\n```bash\npython test.py\n```\n\n-----------------\n[Project Documentation](docs/Short-test-python-20190803.docx)\n-----------------\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstdevteam%2Fcredit_card_validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstdevteam%2Fcredit_card_validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstdevteam%2Fcredit_card_validation/lists"}