Skip to main content

Yu-Gi-Oh API Wrapper

Project description

yugioh

YGOPRODECK API Wrapper

Installation

You can install it with pip3:

pip3 install yugioh

Usage

Get card by name

import yugioh

card = yugioh.card(card_name = "The Wicked Dreadroot")
print(card.name) #Returns "The Wicked Dreadroot"
print(card.archetype) #Returns "Wicked God"
print(card.atk) #Returns "4000"

Getting cards by ID

import yugioh

card = yugioh.get_card_by_id(card_id = "62180201")
print(card.atk) #Returns "4000"
print(card.name) #Returns "The Wicked Dreadroot"

Monster Attributes

Attribute Description
name The card's name
archetype The card's archetype
atk The card's attack points
attribute The card's attribute
_def The card's defense points
desc The card's description
id The card's ID
level The card's level
race The card's "race" (Still thinking about this one - Its documented in the API as "race", but is formally called "type")
type Monster/Normal card
cardmarket_price The card's Cardmarket price
tcgplayer_price The card's Tcgplayer price
ebay_price The card's eBay price
amazon_price The card's Amazon price
coolstuffinc_price The card's CoolStuffInc price

Spell/Trap Attributes

Attribute Description
desc The card's description
id The card's ID
name The card's name
type The card's type
race The card's race
cardmarket_price The card's Cardmarket price
tcgplayer_price The card's Tcgplayer price
ebay_price The card's eBay price
amazon_price The card's Amazon price
coolstuffinc_price The card's CoolStuffInc price

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

yugioh-0.0.14.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

yugioh-0.0.14-py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 3

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