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

I'm currently still building this project.

Monsters

from yugioh import monster

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

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

Spells

from yugioh import spell

spell = yugioh.spell(card_name = "Fusion Substitute")
print(spell.id) #Returns "74335036"
print(spell.type) #Returns "Spell Card"
print(spell.race) #Returns "Normal"

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

Traps

from yugioh import trap

trap = yugioh.trap(card_name = "Magic Cylinder")
print(trap.id) #Returns "62279055"
print(trap.type) #Returns "Trap Card"
print(trap.race) #Returns "Normal"

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

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.9.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

yugioh-0.0.9-py3-none-any.whl (2.4 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