Skip to content
/ pokepy Public

Command line wrapper of Pokeapi for educational purposes

License

Notifications You must be signed in to change notification settings

Condla/pokepy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pokepy

Command line wrapper of Pokeapi for educational purposes.

Prerequisites

In order to access the Pokeapi using the requests module, Python must be compiled with OpenSSL version >= 1.0.2

Installation

For testing purposes it's best you install pokepy via pip in a virtual environment.

  • Get the source from this repo or fork it to your own repo and clone it:
git clone https://github.com/Condla/pokepy/
cd pokepy
  • Optional: Install the tool in a virtualenv:
sudo pip install virtualenv
mkdir venv
virtualenv venv
source venv/bin/activate
  • Then install pokepy:
pip install -e .

Usage

Usage:
    pokepy (pokemon | type | ability) --id=ID

Options:
    -i --id=ID                # specify the id of the pokemon, type or ability
    -h --help                 # Show this help

Examples

# Get the name of Pokemon 150
$ pokepy pokemon 150
mewtwo
# Get the name of Pokemon type 3
$pokepy type -i 3
flying
# Get the Pokemon ability 6
$ pokepy ability -i 6
damp

About

Command line wrapper of Pokeapi for educational purposes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages