An easy-to-use, informative command line interface (CLI) for accessing Pokémon summaries.
Project description
Pokésummary
In the heat of a Pokémon battle, Pokésummary lets you quickly get the information you need!
Pokésummary is an easy-to-use, informative command line interface (CLI) for displaying Pokémon height, weight, types, base stats, and type defenses. It works completely offline, opting to use local datasets instead of APIs. It requires no third-party libraries.
Usage
Command-line usage
usage: pokesummary [-h] [-i] [-s] [-v] [pokemon_names ...]
Get summaries for a Pokémon or multiple Pokémon.
positional arguments:
pokemon_names the Pokémon to look up
optional arguments:
-h, --help show this help message and exit
-i, --interactive run interactively
-s, --show-examples show example uses of the program
-v, --version show program's version number and exit
Python library usage
Starting from version 2.0.0, you can use Pokésummary as a library. Note that the API is subject to change.
>>> from pokesummary.model import PokemonDict
>>> pokemon_data = PokemonDict().data
>>> my_pokemon = pokemon_data["Lanturn"]
>>> my_pokemon.base_stats.special_attack
76
>>> my_pokemon.primary_type
<PokemonType.WATER: 'Water'>
Installation
Requirements
- Python 3.7+
- A terminal supporting ANSI escape codes (most Linux and macOS terminals, see here for Windows)
Install from PyPI
- Install using pip
pip3 install pokesummary
Install from Source Code
- Clone or download the repository
- Install using pip
pip3 install .
Uninstall
- Uninstall using pip
pip3 uninstall pokesummary
Contributing
Please see CONTRIBUTING.md.
Acknowledgements
- Type chart from Pokémon Database
- Pokémon data from Yu-Chi Chiang's fixed database
Project details
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
File details
Details for the file pokesummary-2.0.0.tar.gz
.
File metadata
- Download URL: pokesummary-2.0.0.tar.gz
- Upload date:
- Size: 474.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.12 Darwin/20.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbd327dd75ac5bfb1db9f3df905cfc230c7c33fc2c596d79031fd09ecbe2a05e |
|
MD5 | cd4232422743468de389dbd337ef8079 |
|
BLAKE2b-256 | 42d0ff428d6dd5fe93b4fa822f8be4097105882488d250cd82e37a0283ca4d13 |
File details
Details for the file pokesummary-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: pokesummary-2.0.0-py3-none-any.whl
- Upload date:
- Size: 600.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.12 Darwin/20.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18cf8b66572513c2a88854b7d8947018e61aafe38f69444b4d01b7bd3343a41e |
|
MD5 | 6c56c6e036d479d83c43100b6ba78b0b |
|
BLAKE2b-256 | 2cd9ed1bb039893cf200750cdc8c788b456bfe26c6f69c5cd4d0ffb7959a5e13 |