Une simple API Pokémon en français.
Project description
Tyradex for Python
-> 🇫🇷 : README_FRENCH.md
Overview
This Python script interacts with the Tyradex API to retrieve detailed information about Pokémon and Pokémon types. It is designed to provide easy access to details such as Pokédex ID, generation, category, statistics, etc., for individual Pokémon or types. The script is organized into classes representing different aspects of Pokémon data and includes functions to obtain lists of all Pokémon and types.
Features
-
Pokemon Class :
- Retrieve detailed information about a specific Pokémon.
- Access properties such as Pokédex ID, generation, category, statistics, etc.
-
Type Class :
- Get information about a specific Pokémon type.
- Access properties such as type ID, resistances, and a list of Pokémon associated with that type.
-
Generations Class :
- Access Pokémon data grouped by different generations.
-
Support Classes :
- Various support classes to handle names, abilities, sprites, statistics, resistances, evolutions, gender, and forms.
-
Functions :
get_all_pokemons
: Retrieve a list of all Pokémon.get_all_types
: Retrieve a list of all Pokémon types.
How to Use
-
Installation :
- Make sure you have Python installed on your system.
- Install the library with
pip install --upgrade Tyradex
.
-
Usage :
- Import the script into your Python project or run it as a standalone script.
- Instantiate relevant classes to interact with Pokémon or types.
- Explore the provided functions to get lists of Pokémon and types.
# Example Usage
from Tyradex import Pokemon, Type, Generations, get_all_pokemons, get_all_types
# Retrieve information about a specific Pokémon
charizard = Pokemon('charizard')
print(charizard.name)
# Retrieve information about a specific Pokémon type
fire_type = Type('fire')
print(fire_type.name)
# Retrieve all Pokémon of a specific generation
gen_6 = Generations.Gen(6)
print(gen_6[42])
# Retrieve a list of all Pokémon and types
all_pokemons = get_all_pokemons()
all_types = get_all_types()
Dependencies
requests
: Requests is an HTTP library, written in Python, for human beings.unidecode
: Transliterate Unicode text into plain 7-bit ASCII.
API Reference
- The script interacts with the Pokémon API hosted at https://tyradex.tech/api/v1/.
- Refer to the API documentation for more details on available endpoints and data structure.
Contributors
- API created by:
- Python adaptation by:
License
This project is under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Tyradex-0.1.5.tar.gz
(9.6 kB
view details)
Built Distribution
File details
Details for the file Tyradex-0.1.5.tar.gz
.
File metadata
- Download URL: Tyradex-0.1.5.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e7ec233bde7fd59317354470946306cfabde4dd467696c5ab446d02d6e4bf7a |
|
MD5 | 5e0afbec1377f15c288364bc471a581c |
|
BLAKE2b-256 | ffa3acb855b83624eb1cb61356d6a2ce3155e998100ea5a76f7a4a0f2168146d |
File details
Details for the file Tyradex-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: Tyradex-0.1.5-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 825c0ba5306481a15358a75d21bb46a6e0e046a91878154bb662905401500a6b |
|
MD5 | f101108f406a6c2d46a1fafbfff908fe |
|
BLAKE2b-256 | 8b36c2a5eca751215a7c1bfecca669ead18557ce347ae58f4167f9a373e48b5c |