Skip to content

1N-i/Pokedex_PokeAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🖥️ Pokédex - Python Project

Python API

A Python-based Pokédex designed to display Pokémon data directly from the PokéAPI.

📋 Summary


🛠 Technologies

  • Python 3.x: Core logic and execution.
  • Requests Library: For handling all HTTP/REST communication.
  • JSON: For data structure analysis.

✨ Features

  • 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.

📂 Project Architecture

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.

📚 What I Learned

  • Consuming REST APIs: How to handle nested JSONs and complex lists.

🔮 Future Improvements

  • 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

🚀 How to Run

  1. Install dependencies:

    This project uses the requests library. You can install it via pip: pip install requests

  2. Execute the main menu:

    python pokedex.py

About

Pokédex using the PokeAPI with Python

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages