viv/examples/pep722.py

14 lines
353 B
Python
Raw Permalink Normal View History

2023-08-03 18:05:49 -05:00
#!/usr/bin/env -S viv run -s
# In order to run, this script needs the following 3rd party libraries
#
# Script Dependencies:
# requests
# rich # Needed for the output
2023-08-03 18:05:49 -05:00
import requests
from rich import print
2023-08-03 18:05:49 -05:00
resp = requests.get("https://peps.python.org/api/peps.json")
data = resp.json()
print([(k, v["title"]) for k, v in data.items()][:10])