A simple API wrapper for accessing Pokémon information.
Project description
Pokédex API
A simple Python package for retrieving Pokémon information from the PokéAPI. With this package, you can easily access data such as Pokémon stats, images, and other details.
Features
- Retrieve Pokémon information by name.
- Get the image URL of the Pokémon.
- Access Pokémon stats like speed, attack, defense, etc.
Installation
You can install the package using pip:
pip install pokedex-api
Usage
Here's a quick example of how to use the Pokédex API package:
from pokedex_api import PokedexAPI
# Create an instance of the PokédexAPI class
api = PokedexAPI()
# Retrieve information about a Pokémon
pokemon = api.get_pokemon('pikachu')
# Get the Pokémon's image URL
image_url = api.get_pokemon_image(pokemon)
# Get the Pokémon's stats
stats = api.get_stats(pokemon)
# Print the results
print(f"Name: {pokemon['name']}")
print(f"Image: {image_url}")
print(f"Stats: {stats}")
Contributing
Contributions are welcome! If you'd like to contribute to this project, please fork the repository and submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Author
Andrew Muratov
GitHub
andrewamuratov@gmail.com
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pokedex_api-0.1.0.tar.gz.
File metadata
- Download URL: pokedex_api-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c15219f1ca13803ffd84ffe70b8f703822bb14256b80c90f4f14578f3d54c08
|
|
| MD5 |
69dab63a02db88c38c1ee3260ed60cdc
|
|
| BLAKE2b-256 |
dae16cf2ded90db7e0c1c19501e2c1f1ba33364e1de1aba0e2de446d6d3b3f80
|
File details
Details for the file pokedex_api-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pokedex_api-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a042f6f3b3e47403d931ea4d3fa9ea21582acb560c6da93b1fc7bcd2703ed09
|
|
| MD5 |
77516262105cfc341b6592ba56506e9d
|
|
| BLAKE2b-256 |
31f2e197d9fc2bfda30a4335a2d7445318148a2ad94ac920c2bcbad8b0e51d33
|