In this workshop, we will be creating a simple HTTP client using Python and the popular Requests library and PokeAPI.
curlandjq: used for quickly familiarizing ourselves with the APIPythonandRequests: for building our client
Our client will be a CLI app that takes a pokemon's name as input and outputs it's basic info.
Make sure you have Python, curl, and jq installed. All three should be available in your systems package manager (apt, homebrew, winget, etc.)
For more info, see the following links:
- Python download page
- jq download page
- (you probably already have curl installed)
If you already have Python and Requests or just want to install them on your own, that's OK. This demo has very little boilerplate.
Macos/Linux:
curl -LsSf https://astral.sh/uv/install.sh | shWindows:
winget install --id=astral-sh.uv -e- Run
uv syncto install the project's dependencies - Run the Python script with uv:
uv run main.pyFind the completed code here