Skip to content

Instantly share code, notes, and snippets.

@manzt
Created August 21, 2024 19:46

Revisions

  1. manzt created this gist Aug 21, 2024.
    14 changes: 14 additions & 0 deletions pep723.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    # /// script
    # requires-python = ">=3.11"
    # dependencies = [
    # "requests<3",
    # "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])