Skip to content

Instantly share code, notes, and snippets.

@gdamjan
Created June 25, 2025 18:42
Show Gist options
  • Select an option

  • Save gdamjan/cd99ddf7aa4559f74e7b9e4e0f000c4b to your computer and use it in GitHub Desktop.

Select an option

Save gdamjan/cd99ddf7aa4559f74e7b9e4e0f000c4b to your computer and use it in GitHub Desktop.

Revisions

  1. gdamjan created this gist Jun 25, 2025.
    14 changes: 14 additions & 0 deletions script.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])