This is the Pokémon TCG SDK Python implementation. It is a wrapper around the Pokémon TCG API of pokemontcg.io.
Python 3 is currently the only supported version for the sdk. More specifically, the package was developed using Python 3.4.
Using pip:
pip install pokemontcgsdk
Import (Card and Set will be most used)
from pokemontcgsdk import Card
from pokemontcgsdk import Set
from pokemontcgsdk import Type
from pokemontcgsdk import Supertype
from pokemontcgsdk import Subtype
Card
Set
Type
Supertype
Subtype
id
name
national_pokedex_number
image_url
image_url_hi_res
subtype
supertype
ability
ancient_trait
hp
number
artist
rarity
series
set
set_code
retreat_cost
converted_retreat_cost
text
types
attacks
weaknesses
resistances
evolves_from
code
ptcgo_code
name
series
total_cards
standard_legal
expanded_legal
release_date
updated_at
symbol_url
logo_url
card = Card.find('xy1-1')
cards = Card.where(set='generations', supertype='pokemon')
cards = Card.all()
cards = Card.where(page=5, pageSize=100)
set = Set.find('base1')
sets = Set.where(standardLegal=true)
sets = Set.all()
types = Type.all()
subtypes = Subtype.all()
supertypes = Supertype.all()
- Fork it ( https://github.com/[my-github-username]/pokemon-tcg-sdk-python/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
python -m unittest discover -s tests/