Skip to content

Instantly share code, notes, and snippets.

@seandlg
Created August 24, 2025 22:26
Show Gist options
  • Select an option

  • Save seandlg/a9b77f05f02069d9e95db4c5ad691302 to your computer and use it in GitHub Desktop.

Select an option

Save seandlg/a9b77f05f02069d9e95db4c5ad691302 to your computer and use it in GitHub Desktop.
# /// script
# 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