mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-11-09 19:13:14 -06:00
18 lines
325 B
Python
18 lines
325 B
Python
|
#!/usr/bin/env python3
|
||
|
# /// script
|
||
|
# requires-python = ">=3.11"
|
||
|
# dependencies = [
|
||
|
# "requests<3",
|
||
|
# "rich",
|
||
|
# ]
|
||
|
# ///
|
||
|
|
||
|
__import__("viv").run()
|
||
|
|
||
|
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])
|