mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-11-13 20:47:53 -06:00
14 lines
337 B
Python
14 lines
337 B
Python
|
#!/usr/bin/env -S viv run -s
|
||
|
# In order to run, this script needs the following 3rd party libraries
|
||
|
#
|
||
|
## Script Dependencies:
|
||
|
## requests
|
||
|
## 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])
|