Skip to content

Instantly share code, notes, and snippets.

@gdamjan
Created June 25, 2025 18:42
Show Gist options
  • Save gdamjan/cd99ddf7aa4559f74e7b9e4e0f000c4b to your computer and use it in GitHub Desktop.
Save gdamjan/cd99ddf7aa4559f74e7b9e4e0f000c4b to your computer and use it in GitHub Desktop.
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "requests<3",
# "rich",
# ]
# ///
import requests
from rich.pretty import pprint
resp = requests.get("https://peps.python.org/api/peps.json")
data = resp.json()
pprint([(k, v["title"]) for k, v in data.items()][:10])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment