Skip to main content

Python package for identifying Pokemon/MTG cards from auction titles

Project description

CardPydentity

PyPI - Version

Python package for identifying Pokemon, Magic: The Gathering, One Piece, and Yu-Gi-Oh cards from unstructured auction titles.

Installing

pip install cardpydentity

Use

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 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cardpydentity-0.2.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

cardpydentity-0.2.0-py2.py3-none-any.whl (10.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file cardpydentity-0.2.0.tar.gz.

File metadata

  • Download URL: cardpydentity-0.2.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for cardpydentity-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3a1a33f4e7fb32510deb75327034145e3fd8891e5f85adc1503cdeedbc8288f6
MD5 74c5e426750bc24c5334a447a7fbcae7
BLAKE2b-256 b13bb0ae67c7730e172eddf21e6447b41ada1b80579f5257fa8ff2a04756899b

See more details on using hashes here.

File details

Details for the file cardpydentity-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for cardpydentity-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a8dfe90c6beffe6d48a397adfaa9610b85171831e21c057668add1b2ae199fd7
MD5 8909b7a6326f5aefa038fc3f7904c2f3
BLAKE2b-256 7e703f33ea863f33d02f4b563fd866b949333e9d508382a70b973f1af41f355c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page