Skip to content

Instantly share code, notes, and snippets.

@manzt
Created August 21, 2024 19:46
Show Gist options
  • Save manzt/cb24f3066c32983672025b04b9f98d1f to your computer and use it in GitHub Desktop.
Save manzt/cb24f3066c32983672025b04b9f98d1f 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