mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-11-14 21:17:54 -06:00
16 lines
317 B
Python
Executable file
16 lines
317 B
Python
Executable file
#!/usr/bin/env -S viv run -s
|
|
# /// pyproject
|
|
# [run]
|
|
# 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])
|