Skip to content

Quickstart

Picsel edited this page Apr 14, 2025 · 1 revision

This page assumes you have already installed the library. If not, go to the "Installing Tyradex" Wiki page.

Library Interface (Python API)

This allows deeper integration with your projects, such as bots, scripts, or data tools.

Example of use

  • Query a Pokémon by ID to get its French name.
import Tyradex

pokemon = Tyradex.Pokemon.get(801)
print(f"{pokemon.name} :\n\tFrench: {pokemon.name.fr}\n\tJapan : {pokemon.name.jp}")

Command Line Interface

The script allows you to request the API directly from the terminal.

Example of use

  • Show help:
python3 -m Tyradex --help
  • Show version
python3 -m Tyradex --version
  • Query on an endpoint
python3 -m Tyradex pokemon 801

Tyradex for Python

Logo Pokémon

Clone this wiki locally