A Python package that gives data science students easy access to a rich Pokémon database — covering all 9 generations of Pokémon, moves, abilities, items, natures, and more. No scraping, no setup, just query and go.
pip:
pip install git+https://github.com/byuirpytooling/pykemon.gituv:
uv add git+https://github.com/byuirpytooling/pykemon.gitfrom pykemon.db import get_connection
con = get_connection()
pokemon = con.sql("SELECT * FROM pokemon").pl()
pokemon| Table | Description | Rows (approx.) |
|---|---|---|
pokemon |
Every Pokémon with base stats, types, and generation | 1,000+ |
move |
Every move with type, power, accuracy, and effect | 900+ |
pokemon_move |
Which Pokémon can learn which moves, and how | 100,000+ |
ability |
Ability names and effects | 300+ |
pokemon_ability |
Which Pokémon have which abilities | 3,000+ |
item |
Item names, categories, and effects | 900+ |
nature |
The 25 natures and their stat modifiers | 25 |
status_effect |
Status conditions with damage and stat modifiers | 10+ |
Full documentation, a getting started guide, and worked vignettes are available at:
byuirpytooling.github.io/pykemon
Looking for inspiration? Check out the Power Creep vignette — a full worked example analyzing how Pokémon base stats have changed across all 9 generations.
MIT License — see LICENSE for details.