Thanks to visit codestin.com
Credit goes to github.com

Skip to content

theodore-s-beers/i-choose-you

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

I choose you!

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.)

Usage

This assumes that you're running Linux or macOS.

Clone the repo:

git clone https://github.com/theodore-s-beers/i-choose-you.git

Navigate to the source directory:

cd i-choose-you

Create a virtual environment:

python3 -m venv venv

Activate the virtual environment:

source venv/bin/activate

Install dependencies:

pip install -r requirements.txt

For some obscure reason, you may also need to (re)install setuptools:

pip install setuptools

Run the script (it picks a random Pokémon each time):

python choose.py

About

Pick a random Pokémon in the terminal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages