# CardPydentity
![PyPI - Version](https://img.shields.io/pypi/v/cardpydentity)
Python package for identifying Pokemon, Magic: The Gathering, One Piece, and Yu-Gi-Oh cards from unstructured auction titles.
## Installing
```
pip install cardpydentity
```
## Use
```python
from cardpydentity import Identifier
card = Identifier().Build("SQUIRTLE - 1999 WOTC Pokemon Card 63/102 Non Holo - PSA 9.5)"
>>> {'series': {'id': 'base1', 'name': 'Base', 'series': 'Base', 'year': '1999', 'total_cards': 102, 'total_base': 102}, 'card': {'id': 'base1-63', 'name': 'Squirtle', 'number': '63', 'rarity': 'Common', 'set': 'base1'}, 'score': 92, 'match': '1999 63 102 Squirtle Common Base', 'grading': {'grade': 9.5, 'type': 'PSA'}}
card = Identifier().Build("Yugioh x1 Dark Magician TN23-EN001 Quarter Century Secret Rare Lim Ed(Near Mint))"
>>> {'series': {'name': '25th Anniversary Tin: Dueling Heroes', 'abbrv': ['TN23']}, 'card': {'name': 'Dark Magician (Quarter Century Secret Rare)', 'set_name': '25th Anniversary Tin: Dueling Heroes', 'rarity': 'Quarter Century Secret Rare', 'number': 'EN001', 'abbrv': 'TN23'}, 'score': 84, 'match': 'EN001 Dark Magician (Quarter Century Secret Rare) Quarter Century Secret Rare TN23 25th Anniversary Tin: Dueling Heroes', 'grading': {'grade': "Near Mint", 'type': None}}
card = Identifier().Build("PSA 10 Luffy Nika Gear 5 OP05-119 Parallel SEC New Era One Piece Card Japanese)"
>>> {'series': {'name': 'Booster Pack Awakening of the New Era'}, 'card': {'name': 'Monkey.D.Luffy', 'set': 'Booster Pack Awakening of the New Era', 'number': 'OP05-119', 'type': 'Character - the four emperors/straw hat crew strike'}, 'score': 60, 'match': 'OP05-119 Monkey.D.Luffy Booster Pack Awakening of the New Era', 'grading': {'grade': 10, 'type': 'PSA'}}
```
## About
Simpler, non-ML, and local version of collectibles classifier. More collectible categories are planned.
A Python package that allows collectibles and trading cards to be identified and parsed from the title of a listing on eBay or any other retailers. Currently uses [fuzzymatching](https://en.wikipedia.org/wiki/Approximate_string_matching) and a master list of over 135,000 Pokemon, Magic: The Gathering cards, One Piece, and Yugioh cards.
#### Current Available Brands:
- Magic: The Gathering
- Pokemon
- One Piece
- Yu-Gi-Oh
#### Planned:
- Funko Pop!
## TO-DO
- Threaded matching
- Grading extraction
## Issues/Info
If you have any suggestions or questions don't hestitate to open an issue.
Raw data
{
"_id": null,
"home_page": "https://github.com/bapcon/cardpydentity",
"name": "cardpydentity",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "collectibles, identifier, pokemon, magic the gathering",
"author": "Benjamin Perkins",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/b1/3b/b0ae67c7730e172eddf21e6447b41ada1b80579f5257fa8ff2a04756899b/cardpydentity-0.2.0.tar.gz",
"platform": null,
"description": "# CardPydentity\r\n\r\n![PyPI - Version](https://img.shields.io/pypi/v/cardpydentity)\r\n\r\nPython package for identifying Pokemon, Magic: The Gathering, One Piece, and Yu-Gi-Oh cards from unstructured auction titles. \r\n\r\n## Installing\r\n\r\n```\r\npip install cardpydentity\r\n```\r\n\r\n## Use\r\n\r\n```python \r\nfrom cardpydentity import Identifier\r\n\r\ncard = Identifier().Build(\"SQUIRTLE - 1999 WOTC Pokemon Card 63/102 Non Holo - PSA 9.5)\"\r\n>>> {'series': {'id': 'base1', 'name': 'Base', 'series': 'Base', 'year': '1999', 'total_cards': 102, 'total_base': 102}, 'card': {'id': 'base1-63', 'name': 'Squirtle', 'number': '63', 'rarity': 'Common', 'set': 'base1'}, 'score': 92, 'match': '1999 63 102 Squirtle Common Base', 'grading': {'grade': 9.5, 'type': 'PSA'}}\r\n\r\n\r\ncard = Identifier().Build(\"Yugioh x1 Dark Magician TN23-EN001 Quarter Century Secret Rare Lim Ed(Near Mint))\"\r\n>>> {'series': {'name': '25th Anniversary Tin: Dueling Heroes', 'abbrv': ['TN23']}, 'card': {'name': 'Dark Magician (Quarter Century Secret Rare)', 'set_name': '25th Anniversary Tin: Dueling Heroes', 'rarity': 'Quarter Century Secret Rare', 'number': 'EN001', 'abbrv': 'TN23'}, 'score': 84, 'match': 'EN001 Dark Magician (Quarter Century Secret Rare) Quarter Century Secret Rare TN23 25th Anniversary Tin: Dueling Heroes', 'grading': {'grade': \"Near Mint\", 'type': None}}\r\n\r\n\r\ncard = Identifier().Build(\"PSA 10 Luffy Nika Gear 5 OP05-119 Parallel SEC New Era One Piece Card Japanese)\"\r\n>>> {'series': {'name': 'Booster Pack Awakening of the New Era'}, 'card': {'name': 'Monkey.D.Luffy', 'set': 'Booster Pack Awakening of the New Era', 'number': 'OP05-119', 'type': 'Character - the four emperors/straw hat crew strike'}, 'score': 60, 'match': 'OP05-119 Monkey.D.Luffy Booster Pack Awakening of the New Era', 'grading': {'grade': 10, 'type': 'PSA'}}\r\n\r\n```\r\n\r\n## About\r\nSimpler, non-ML, and local version of collectibles classifier. More collectible categories are planned. \r\n\r\nA Python package that allows collectibles and trading cards to be identified and parsed from the title of a listing on eBay or any other retailers. Currently uses [fuzzymatching](https://en.wikipedia.org/wiki/Approximate_string_matching) and a master list of over 135,000 Pokemon, Magic: The Gathering cards, One Piece, and Yugioh cards.\r\n\r\n#### Current Available Brands:\r\n- Magic: The Gathering\r\n- Pokemon\r\n- One Piece\r\n- Yu-Gi-Oh\r\n\r\n#### Planned:\r\n- Funko Pop!\r\n\r\n## TO-DO\r\n- Threaded matching\r\n- Grading extraction\r\n\r\n## Issues/Info\r\n\r\nIf you have any suggestions or questions don't hestitate to open an issue.\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python package for identifying Pokemon/MTG cards from auction titles",
"version": "0.2.0",
"project_urls": {
"Homepage": "https://github.com/bapcon/cardpydentity"
},
"split_keywords": [
"collectibles",
" identifier",
" pokemon",
" magic the gathering"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7e703f33ea863f33d02f4b563fd866b949333e9d508382a70b973f1af41f355c",
"md5": "8909b7a6326f5aefa038fc3f7904c2f3",
"sha256": "a8dfe90c6beffe6d48a397adfaa9610b85171831e21c057668add1b2ae199fd7"
},
"downloads": -1,
"filename": "cardpydentity-0.2.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "8909b7a6326f5aefa038fc3f7904c2f3",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 10478,
"upload_time": "2024-04-30T03:44:17",
"upload_time_iso_8601": "2024-04-30T03:44:17.988332Z",
"url": "https://files.pythonhosted.org/packages/7e/70/3f33ea863f33d02f4b563fd866b949333e9d508382a70b973f1af41f355c/cardpydentity-0.2.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b13bb0ae67c7730e172eddf21e6447b41ada1b80579f5257fa8ff2a04756899b",
"md5": "74c5e426750bc24c5334a447a7fbcae7",
"sha256": "3a1a33f4e7fb32510deb75327034145e3fd8891e5f85adc1503cdeedbc8288f6"
},
"downloads": -1,
"filename": "cardpydentity-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "74c5e426750bc24c5334a447a7fbcae7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 10462,
"upload_time": "2024-04-30T03:44:19",
"upload_time_iso_8601": "2024-04-30T03:44:19.696755Z",
"url": "https://files.pythonhosted.org/packages/b1/3b/b0ae67c7730e172eddf21e6447b41ada1b80579f5257fa8ff2a04756899b/cardpydentity-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-30 03:44:19",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "bapcon",
"github_project": "cardpydentity",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "cardpydentity"
}