Skip to content

acmcsufoss/http-client-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP Client Workshop

In this workshop, we will be creating a simple HTTP client using Python and the popular Requests library and PokeAPI.


Software used

  • curl and jq: used for quickly familiarizing ourselves with the API
  • Python and Requests: for building our client

The client

Our client will be a CLI app that takes a pokemon's name as input and outputs it's basic info.

Getting started

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:

Using this repository (optional)

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.

  1. If you don't already have it, install Python
  2. Install uv:

Macos/Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

Windows:

winget install --id=astral-sh.uv  -e
  1. Run uv sync to install the project's dependencies
  2. Run the Python script with uv:
uv run main.py

If You Get Lost

Find the completed code here

About

Workshop on consuming HTTP APIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages