A Python wrapper for the friendly PokeAPI database
Project description
pokebase is a simple but powerful Python interface to the PokéAPI database
Installation
pip install pokebase
It can’t get much easier than that.
Usage
>>> import pokebase as pb >>> chesto = pb.NamedAPIResource('berry', 'chesto') >>> chesto.name 'chesto' >>> chesto.natural_gift_type.name 'water' >>> chesto = pb.berry('chesto') # direct lookup. >>> chesto.name 'chesto' >>>
… And it’s just that simple.
Version Support
pokebase currently (officially) supports Python 2.7 and 3.6 versions.
Testing
Python unittests are in a separate tests directory, and can be run via python -m tests.test_pokebase.
Important
The quick data lookup for a Pokémon type, is pokebase.type_('type-name'), not pokebase.type('type-name'). This is because of a naming conflict with the built-in type function.
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
pokebase-1.1.0.tar.gz
(8.8 kB
view details)
File details
Details for the file pokebase-1.1.0.tar.gz
.
File metadata
- Download URL: pokebase-1.1.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
db2ce1d56d314ad720edd8a92b6d5633c4b583df80e10ae7212250826a821ab0
|
|
MD5 |
00764626cdf0e1507fc0a9369fc8a507
|
|
BLAKE2b-256 |
68fe0326ba48acb8eac144db4106a31463cf6f66df12bf986752dc0d97ac7a3f
|