Created
June 25, 2025 18:42
-
-
Save gdamjan/cd99ddf7aa4559f74e7b9e4e0f000c4b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /// 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