A class-based Package for accessing and interacting with PokeAPI's JSON data.
Project description
PyPokeClasses
PyPokeClasses is a Python package that provides a class-based structure for accessing and interacting with PokeAPI's JSON data. It simplifies the process of making API requests and handling the returned data, allowing developers to focus on building applications with Pokémon-related data.
Features
- Class-based access to various Pokémon entities from PokeAPI.
- Easy integration of PokeAPI into Python projects.
- Structured handling of API responses.
- Lightweight and flexible for various use cases.
Installation
You can install this package using pip:
pip install PyPokeClasses
Usage
Here is an example of how to use PyPokeClasses to fetch and interact with Pokémon data:
from PyPokeClasses.Pokemon import Pokemon
# Initialize a Pokemon instance by name or ID
pikachu = Pokemon('pikachu')
# Access basic information
print(f"Name: {pikachu.name}")
print(f"Height: {pikachu.height}")
print(f"Weight: {pikachu.weight}")
# Access additional data
print(f"Base Experience: {pikachu.base_experience}")
print(f"Types: {[t.type.name for t in pikachu.types]}")
Supported Entities
| Entities | Classes | Links |
|---|---|---|
| Berries | Berry / BerryFirmness / BerryFlavor | Link |
| Contests | ContestType / ContestEffect / SuperContestEffect | Link |
| Encounters | EncounterMethod / EncounterCondition / EncounterConditionValue | Link |
| Evolution | EvolutionChain / EvolutionTrigger | Link |
| Games | Generation / Pokedex / Version / VersionGroup | Link |
| Items | Item / ItemAttribute / ItemCategory / ItemFlingEffect / ItemPocket | Link |
| Locations | Location / LocationArea / PalParkArea / Region | Link |
| Machines | Machine | Link |
| Moves | MoveAilments / MoveBattleStyles / MoveCategory /MoveDamageClass / MoveLearnMethod / Moves / MoveTarget | Link |
| Pokemon | Abilities / Characteristic / EggGroup / Genders / GrowthRate / Natures / PokeathlonStats / Pokemon / PokemonColors / PokemonForms / PokemonHabitats / PokemonShapes / PokemonSpecies / Stats / Types | Link |
APIRefference
Each class within the package is mapped to the corresponding PokeAPI endpoint. Refer to the official PokeAPI documentation for details about the available data.
LICENSE
This project is licensed under the MIT License - see the LICENSE file for details.
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 pypokeclasses-0.1.12.tar.gz.
File metadata
- Download URL: pypokeclasses-0.1.12.tar.gz
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
622eff1b2433c2093322c71c6dd26c917b38a8dd8f72463f869e6b9201c68d89
|
|
| MD5 |
e4bac82eea8451d2bc4f24e3bd436f13
|
|
| BLAKE2b-256 |
4ae927974ac554a2d4f622896124d87014d4be5ec83ef9c8fb2dab5d87eda608
|
File details
Details for the file PyPokeClasses-0.1.12-py3-none-any.whl.
File metadata
- Download URL: PyPokeClasses-0.1.12-py3-none-any.whl
- Upload date:
- Size: 40.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f123898c816ae762b95b30afbb29bc850f475e6018b60c60ed2140326492d6b0
|
|
| MD5 |
6061e91af426124f85243e0af568fc7b
|
|
| BLAKE2b-256 |
b2a69a2c8acd35f0be2145602335f1aa69b5cd14c806e5cc53817dcdb60e8772
|