Skip to content

API Reference

Connect to the bundled pykemon DuckDB database.

Returns a read-only DuckDB connection to the database containing all Pokémon, moves, abilities, items, natures, and status effects.

Returns:

Type Description
DuckDBPyConnection

A read-only connection to the pykemon database.

Example
from pykemon.db import get_connection

con = get_connection()
con.sql("SELECT name, total FROM pokemon LIMIT 5").pl()