{"id":13813763,"url":"https://github.com/charithe/gtin-validator","last_synced_at":"2026-02-05T14:16:18.829Z","repository":{"id":1747000,"uuid":"2573018","full_name":"charithe/gtin-validator","owner":"charithe","description":"Validates GTIN codes","archived":false,"fork":false,"pushed_at":"2018-07-30T23:43:11.000Z","size":14,"stargazers_count":37,"open_issues_count":1,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-05T20:57:23.658Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/charithe.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}},"created_at":"2011-10-13T22:56:39.000Z","updated_at":"2025-04-15T12:38:39.000Z","dependencies_parsed_at":"2022-07-12T14:56:42.318Z","dependency_job_id":null,"html_url":"https://github.com/charithe/gtin-validator","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/charithe/gtin-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charithe%2Fgtin-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charithe%2Fgtin-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charithe%2Fgtin-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charithe%2Fgtin-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charithe","download_url":"https://codeload.github.com/charithe/gtin-validator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charithe%2Fgtin-validator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29123675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T14:05:12.718Z","status":"ssl_error","status_checked_at":"2026-02-05T14:03:53.078Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-08-04T04:01:29.407Z","updated_at":"2026-02-05T14:16:18.802Z","avatar_url":"https://github.com/charithe.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"GTIN Validator\n==============\n\n[![Build Status](https://travis-ci.org/charithe/gtin-validator.svg?branch=master)](https://travis-ci.org/charithe/gtin-validator)\n\nValidates GTIN (Global Trade Item Number) codes by calculating checksums. Supports both Python 2 and 3.\n\nGTIN comprises of GTIN-8, GTIN-12, GTIN-13 and GTIN-14 codes. EAN, UPC and ISBN can be thought of as subsets of GTIN. For more information, see: http://www.gs1.org/barcodes/technical/idkeys/gtin  and  http://en.wikipedia.org/wiki/Global_Trade_Item_Number\n\nUsage\n-----\n\nInstall from PyPi\n\n```\npip install gtin-validator\n```\n\nThe module exports a single function `is_valid_GTIN` - which accepts either string or integer arguments. Dashes in the code (commonly found in ISBN numbers) are supported. \n\n```python\nfrom gtin.validator import *\n\nif __name__ == '__main__':\n    print is_valid_GTIN(\"9780552133265\")\n    print is_valid_GTIN(\"978-0-552-13326-5\")\n    print is_valid_GTIN(9780552133265)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharithe%2Fgtin-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharithe%2Fgtin-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharithe%2Fgtin-validator/lists"}