Pokewrap
A wrapper library for PokeAPI in Python
Introducing Pokewrap
Pokewrap is a lightweight wrapper library for PokeAPI designed to stay out of the way while enabling you to add Pokémon data into your project as quickly as possible.
It's at its best for personal projects, casual use, or as a learning tool. After all, I built it for just such a purpose.
I hope you find it useful in your own projects, and if you find areas for improvement, please let me know!
Technical Details
Pokewrap is written in Python, as a 3-file distribution (plus tests).
It uses API controller classes to properly manage API calls and translate the received data into dictionary data for you to access through the class. It then extends those classes with helper classes (like the class Pokemon) to allow you to get more specific when you want to be, while ignoring the extra endpoints you don't need.
Dependencies
Pokewrap makes thorough use of the Requests library as the only external dependency. It also uses json to parse API data, and os to configure directories.
It is compatible with Python 3.8 and forward by design, and may be compatible with older versions of Python pending further testing.
How to Use
I wanted Pokewrap to be as accessible as possible, so you can find it on PyPI, install it through pip, or download/fork it from GitHub.
Installation With pip
All you need is a pip command from the command line:
pip install pokewrap
Reporting Issues
You can report bugs, issues, or submit feature requests using the GitHub repository.
Submit an issue and I'll get back to you soon.
Open Source
Pokewrap is fully open-source, so you can view it on GitHub.
Visit the RepoLightweight
With just a few hundred lines of code, Pokewrap helps to keep your project light and your dependencies low.
Did you know?
Pokewrap is named after the Poké Rap, a ridiculously catchy rap song of all 150 Pokémon that played at the end of the Pokémon original series episodes.