Features¶
PyPokéClient is a Python wrapper for fetching data from PokéAPI, its main features are:
- Coverage: all PokéAPI endpoints are covered.
- Data validation: uses Pydantic dataclasses for the API implementation.
- Flexibility: can choose between synchronous and asynchronous clients.
- Caching: can employ a local cache system for faster responses and to respect PokéAPI Fair Use policy.
Installation¶
Requirements
This package requires >= 3.12.
It is highly advised to create a new virtual environment.
$ uv venv
$ python -m venv .venv
Note
When using the default virtual environment name (i.e.: .venv), uv will automatically find and use the virtual environment during subsequent invocations.
Then, activate the virtual environment
$ source .venv/bin/activate
> .\.venv\Scripts\activate.bat
> .\.venv\Scripts\Activate.ps1
You can now install the package by simply
$ uv pip pypokeclient
$ pip install pypokeclient
