This repository contains a demo project created as part of my DevOps studies in the TechWorld with Nana – DevOps Bootcamp.
Demo Project: API Request to GitHub
Technologies used: Python, PyCharm, Git
Project Description:
- Write an application that talks to an API of an external application (GitHub) and lists all the public GitHub repositories for a specified user
- Install Python
Download from python.org/downloads, then verify the installation:
python3 --version- Install
uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# Verify
uv --version-
Install an IDE: PyCharm
-
Create the virtual environment & install dependencies
uv syncThe application main.py uses the requests library to call the public GitHub REST API endpoint:
GET https://api.github.com/users/{username}/repos
It parses the JSON response and prints each repository's name and URL to the console.
The target GitHub user is set via the username variable in main.py:3:
username = "explicit-logic"Change this value to list repositories for any other GitHub account.
uv run main.py