This is a toy script that I wrote for a one-day hackathon at Boot.dev. (I'm in the "senior" category.) The assignment was to write something in Python, and to make use of PokéAPI.
I had very little free time on the day in question, so I did something as simple as possible. This script will pull data for a random Pokémon from PokéAPI; display its image on the command line (using the CLImage library); and list its stats and abilities. That's it!
You should probably be using a modern terminal emulator in order for this to work properly, as I've enabled the Unicode and true color options in CLImage. (Without those settings, the image quality is just awful.)
This assumes that you're running Linux or macOS.
Clone the repo:
git clone https://github.com/theodore-s-beers/i-choose-you.gitNavigate to the source directory:
cd i-choose-youCreate a virtual environment:
python3 -m venv venvActivate the virtual environment:
source venv/bin/activateInstall dependencies:
pip install -r requirements.txtFor some obscure reason, you may also need to (re)install setuptools:
pip install setuptoolsRun the script (it picks a random Pokémon each time):
python choose.py