3 ms·
You could do that with uv. # /// script # dependencies = [ # "requests<3", # "rich", # ] # /// import requests from rich.pretty import p
by maxloh 1y ago
You could do that with uv.
# /// 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])