PokéHub is a Python-based web application that uses the PokéAPI to fetch data about different Pokémon and store it locally for future use and analysis. The tool is also capable of displaying the fetched data in different ways including graphically.
- Clone the repository to your local machine using:
git clone https://github.com/JavierRangel2004/Pok-Hub.git
- Navigate into the cloned directory:
cd Pok-Hub
- Make sure you have the required Python packages installed. You can install them via pip:
pip install flask pandas plotly requests
To start using PokémonGo, run the flask run
command in the root directory of the project:
flask run
This will start the web application and provide a link to access the web interface (usually http://127.0.0.1:5000
or http://localhost:5000
).
Here are the main functionalities of PokémonGo:
-
Register Pokémon: By entering the name of the Pokémon, it fetches its data from the PokéAPI, shows basic information such as type, resistance, weakness, advantage and saves it in a local CSV file. It also retrieves the Pokémon's stats, saves them, and presents them in a bar graph.
-
View all Pokémon: Displays all the Pokémon that you have registered so far, reading from the local CSV file.
-
Stats of all Pokémon: Shows a bar graph of the statistics of all registered Pokémon, sorted by highest total stats.
-
Clear files: Deletes all the locally stored CSV files containing Pokémon data.
- Add a function to compare two or more Pokémon.
- Improve error handling and user input validation.
Contributions are always welcome! Please feel free to submit a Pull Request. If you find any bugs/issues, please create an issue to discuss it.
NOTE: This application is a fan-made project and is not affiliated with the official Pokémon franchise. All Pokémon information and data are retrieved from PokéAPI.