A Python-based Pokédex designed to display Pokémon data directly from the PokéAPI.
- Python 3.x: Core logic and execution.
- Requests Library: For handling all HTTP/REST communication.
- JSON: For data structure analysis.
- API Interaction: Detailed consumption of the PokéAPI.
- Modular Design: Logic split between UI/Main flow and Search/API handling.
- Data Parsing: Processes complex JSON responses into readable Pokémon information.
The project is organized into specific archives:
pokedex.py: The main entry point. It controls the user interaction.search.py: The "engine" of the project. It handles all the fetching logic, URL constructions, and API responses.Guide: A guide containing everything you can do, and what each archive does.
- Consuming REST APIs: How to handle nested JSONs and complex lists.
- Implementation of Local Cache (saving JSONs to disk to avoid repeated requests).
- Graphical interface.
- The option to search for mono-types
- Be able to search by generation
-
Install dependencies:
This project uses the requests library. You can install it via pip:
pip install requests -
Execute the main menu:
python pokedex.py