viv/examples/pep723.py

16 lines
306 B
Python
Raw Normal View History

#!/usr/bin/env -S viv run -s
2023-12-18 12:13:49 -06:00
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "requests<3",
# "rich",
# ]
# ///
import requests
from rich import print
resp = requests.get("https://peps.python.org/api/peps.json")
data = resp.json()
print([(k, v["title"]) for k, v in data.items()][:10])