{
  "id": "task_libraries:tui/python",
  "path": "/exapedia/python-tui-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python TUI libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python TUI libraries build interactive interfaces that run inside a terminal, from single prompts to full-screen applications. A framework draws widgets with text characters and reads keyboard and mouse input from the terminal. These libraries let command-line tools and developer utilities offer menus, forms, and dashboards without a graphical window."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python TUI libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#rich",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F110"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F111"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F119"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F114"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F112"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#prompt-toolkit",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F130"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#textual",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F148"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#questionary",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F166"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#inquirerpy",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F186"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#blessed",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F206"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#urwid",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F226"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#inquirer",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "PyPI"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#rich",
          "label": [
            {
              "t": "text",
              "text": "Rich"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F111"
        },
        {
          "t": "text",
          "text": ", a count that covers all its terminal output formatting."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Interactive widget layouts",
            "Questionnaire-by-dictionary API"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#rich",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F110"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F120"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F121"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#prompt-toolkit",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F130"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#textual",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F148"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#questionary",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F166"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#inquirerpy",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F186"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#blessed",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F206"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#urwid",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F226"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#inquirer",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "rich",
          "name": [
            {
              "t": "fact",
              "fact": "F110"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Textualize/rich"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/rich"
            },
            {
              "label": "Docs",
              "href": "https://rich.readthedocs.io/en/stable/prompt.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F117"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F111"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F119"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F113"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F112"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://rich.readthedocs.io/en/stable/prompt.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F110"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/cookiecutter/cookiecutter",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F128"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def read_user_variable(var_name: str, default_value, prompts=None, prefix: str = \"\"):\n    \"\"\"Prompt user for variable and return the entered value or given default.\n\n    :param str var_name: Variable of the context to query the user\n    :param default_value: Value that will be returned if no input happens\n    \"\"\"\n    question = (\n        prompts[var_name]\n        if prompts and var_name in prompts and prompts[var_name]\n        else var_name\n    )\n\n    while True:\n        variable = Prompt.ask(f\"{prefix}{question}\", default=default_value)\n        if variable is not None:\n            break\n\n    return variable\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/cookiecutter/cookiecutter/blob/c88fbe921c97c58b65f1883ba90a0ab53cc91b34/cookiecutter/prompt.py#L25-L42",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F127"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=rich%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F110"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from rich.prompt import Prompt\nname = Prompt.ask(\"Enter your name\")\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://rich.readthedocs.io/en/stable/prompt.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "prompt.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F115"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "prompt-toolkit",
          "name": [
            {
              "t": "fact",
              "fact": "F130"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/prompt-toolkit/python-prompt-toolkit"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/prompt-toolkit"
            },
            {
              "label": "Docs",
              "href": "https://python-prompt-toolkit.readthedocs.io/en/master/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://python-prompt-toolkit.readthedocs.io/en/master/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F130"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/dbcli/pgcli",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F146"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _build_cli(self, history):\n    key_bindings = pgcli_bindings(self)\n\n    def get_message():\n        if self.dsn_alias and self.prompt_dsn_format is not None:\n            prompt_format = self.prompt_dsn_format\n        else:\n            prompt_format = self.prompt_format\n\n        prompt = self.get_prompt(prompt_format)\n\n        if prompt_format == self.default_prompt and len(prompt) > self.max_len_prompt:\n            prompt = self.get_prompt(\"\\\\d> \")\n\n        prompt = prompt.replace(\"\\\\x1b\", \"\\x1b\")\n        return ANSI(prompt)\n\n    def get_continuation(width, line_number, is_soft_wrap):\n        continuation = self.multiline_continuation_char * (width - 1) + \" \"\n        return [(\"class:continuation\", continuation)]\n\n    get_toolbar_tokens = create_toolbar_tokens_func(self)\n\n    if self.wider_completion_menu:\n        complete_style = CompleteStyle.MULTI_COLUMN\n    else:\n        complete_style = CompleteStyle.COLUMN\n\n    with self._completer_lock:\n        prompt_app = PromptSession(\n            lexer=PygmentsLexer(PostgresLexer),\n            reserve_space_for_menu=self.min_num_menu_lines,\n            message=get_message,\n            prompt_continuation=get_continuation,\n            bottom_toolbar=get_toolbar_tokens if self.show_bottom_toolbar else None,\n            complete_style=complete_style,\n            input_processors=[\n                # Highlight matching brackets while editing.\n                ConditionalProcessor(\n                    processor=HighlightMatchingBracketProcessor(chars=\"[](){}\"),\n                    filter=HasFocus(DEFAULT_BUFFER) & ~IsDone(),\n                ),\n                # Render \\t as 4 spaces instead of \"^I\"\n                TabsProcessor(char1=\" \", char2=\" \"),\n            ],\n            auto_suggest=AutoSuggestFromHistory() if self.auto_suggest else None,\n            tempfile_suffix=\".sql\",\n            # N.b. pgcli's multi-line mode controls submit-on-Enter (which\n            # overrides the default behaviour of prompt_toolkit) and is\n            # distinct from prompt_toolkit's multiline mode here, which\n            # controls layout/display of the prompt/buffer\n            multiline=True,\n            history=history,\n            completer=ThreadedCompleter(DynamicCompleter(lambda: self.completer)),\n            complete_while_typing=True,\n            style=style_factory(self.syntax_style, self.cli_style),\n            include_default_pygments_style=False,\n            key_bindings=key_bindings,\n            enable_open_in_editor=True,\n            enable_system_prompt=True,\n            enable_suspend=True,\n            editing_mode=EditingMode.VI if self.vi_mode else EditingMode.EMACS,\n            search_ignore_case=True,\n            cursor=ModalCursorShapeConfig() if self.vi_mode else None,\n        )\n\n        return prompt_app\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/dbcli/pgcli/blob/dc9ce9447e0fc005a347b75b7eb5d541e282b1c1/pgcli/main.py#L1261-L1327",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F145"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20prompt-toolkit&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F130"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from prompt_toolkit import prompt\n\ntext = prompt(\"Give me some input: \")\nprint(f\"You said: {text}\")\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://python-prompt-toolkit.readthedocs.io/en/master/pages/getting_started.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "hello-world.py"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F135"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "textual",
          "name": [
            {
              "t": "fact",
              "fact": "F148"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Textualize/textual"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/textual"
            },
            {
              "label": "Docs",
              "href": "https://textual.textualize.io/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F39"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://textual.textualize.io/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F148"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F46"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F47"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/darrenburns/posting",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F164"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def compose(self) -> ComposeResult:\n    self.key_input.add_class(\"key-input\")\n    self.value_input.add_class(\"value-input\")\n    with Vertical(id=\"row-writer-footer\"):\n        yield Label(\n            \"Editing row. Press [i]escape[/i] to cancel.\", id=\"editing-row-label\"\n        )\n        with Horizontal(id=\"key-value-inputs\"):\n            yield self.key_input\n            yield self.value_input\n            add_button = Button(self.button_label, disabled=True, id=\"add-button\")\n            add_button.can_focus = False\n            yield add_button\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/darrenburns/posting/blob/32c45669032342cf9b95d5758af47a0d93de0ad7/src/posting/widgets/key_value.py#L52-L64",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F163"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20textual&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F148"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from textual.app import App\n\nclass MyApp(App):\n    pass\n\nif __name__ == \"__main__\":\n    app = MyApp()\n    app.run()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://textual.textualize.io/guide/app/",
                  "label": [
                    {
                      "t": "text",
                      "text": "app.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F153"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "questionary",
          "name": [
            {
              "t": "fact",
              "fact": "F166"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/tmbo/questionary"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/questionary"
            },
            {
              "label": "Docs",
              "href": "https://questionary.readthedocs.io/en/stable/pages/quickstart.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F173"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://questionary.readthedocs.io/en/stable/pages/quickstart.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F166"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/commitizen-tools/commitizen",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F184"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _get_message_by_prompt_commit_questions(self) -> str:\n    # Prompt user for the commit message\n    questions = self.cz.questions()\n    for question in (q for q in questions if q[\"type\"] == \"list\"):\n        question[\"use_shortcuts\"] = self.config.settings[\"use_shortcuts\"]\n    try:\n        answers = questionary.prompt(questions, style=self.cz.style)\n    except ValueError as err:\n        root_err = err.__context__\n        if isinstance(root_err, CzException):\n            raise CustomError(str(root_err))\n        raise err\n\n    if not answers:\n        raise NoAnswersError()\n\n    message = self.cz.message(answers)\n    self._validate_subject_length(message)\n    message = self._wrap_body(message)\n    return message\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/commitizen-tools/commitizen/blob/33c248e4d21fa67d312991d96b038ab71be3039b/commitizen/commands/commit.py#L70-L89",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F183"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=questionary%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F166"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import questionary\n\nanswer = questionary.text(\"What's your first name\").ask()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://questionary.readthedocs.io/en/stable/pages/quickstart.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "quickstart.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F171"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "inquirerpy",
          "name": [
            {
              "t": "fact",
              "fact": "F186"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/kazhala/InquirerPy"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/inquirerpy"
            },
            {
              "label": "Docs",
              "href": "https://inquirerpy.readthedocs.io/en/latest/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F193"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://inquirerpy.readthedocs.io/en/latest/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F186"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/polarsource/polar",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F204"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _ask_autodetect() -> bool:\n    \"\"\"Keyboard select: auto-detect URLs from the diff, or enter them manually.\n\n    Falls back to a y/n prompt when there's no TTY or InquirerPy is missing.\n    \"\"\"\n    if sys.stdin.isatty():\n        try:\n            from InquirerPy import inquirer\n            from InquirerPy.base.control import Choice\n\n            return inquirer.select(\n                message=\"How should we pick the URLs to test?\",\n                choices=[\n                    Choice(value=True, name=\"Automagic detection (based on the git diff)\"),\n                    Choice(value=False, name=\"Enter URLs manually\"),\n                ],\n                default=True,\n            ).execute()\n        except Exception:\n            pass\n    return Confirm.ask(\n        \"Auto-detect URLs to test from the git diff?\", default=False\n    )\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/polarsource/polar/blob/8601000dbd9ce137db01ad4afce93d65f1bdeab0/dev/cli/commands/snap.py#L242-L264",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F203"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=inquirerpy%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F186"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from InquirerPy import inquirer\n\nname = inquirer.text(message=\"What's your name:\").execute()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/kazhala/InquirerPy/0.3.4/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F191"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "blessed",
          "name": [
            {
              "t": "fact",
              "fact": "F206"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/jquast/blessed"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/blessed"
            },
            {
              "label": "Docs",
              "href": "https://blessed.readthedocs.io/en/latest/intro.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F213"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://blessed.readthedocs.io/en/latest/intro.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F206"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/dalibo/pg_activity",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F224"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def boxed(\n    term: Terminal,\n    content: str,\n    *,\n    border: bool = True,\n    border_color: str = \"white\",\n    center: bool = False,\n    width: int | None = None,\n) -> str:\n    if border:\n        border_width = term.length(content) + 2\n        border_formatter = getattr(term, border_color)\n        lines = [\n            border_formatter(\"┌\" + \"─\" * border_width + \"┐\"),\n            \" \".join(\n                [border_formatter(\"│\") + term.normal, content, border_formatter(\"│\")]\n            ),\n            border_formatter(\"└\" + \"─\" * border_width + \"┘\") + term.normal,\n        ]\n    else:\n        # border is disabled in UI tests.\n        lines = [\"\", content, \"\"]\n    if center:\n        if width is None:\n            width = term.width\n        lines = [term.center(line, width=width) for line in lines]\n    return \"\\n\".join(lines)\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/dalibo/pg_activity/blob/dd060aeebbacd9e2cf1ebe66df8736cae553c932/pgactivity/widgets.py#L6-L32",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F223"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=blessed%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F206"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from blessed import Terminal\n\nterm = Terminal()\n\nprint(term.home + term.clear + term.move_y(term.height // 2))\nprint(term.black_on_darkkhaki(term.center('press any key to continue.')))\n\nwith term.cbreak(), term.hidden_cursor():\n    inp = term.inkey()\n\nprint(term.move_down(2) + 'You pressed ' + term.bold(repr(inp)))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://blessed.readthedocs.io/en/latest/intro.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "intro.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F211"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "urwid",
          "name": [
            {
              "t": "fact",
              "fact": "F226"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/urwid/urwid"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/urwid"
            },
            {
              "label": "Docs",
              "href": "https://urwid.org/tutorial/index.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F65"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://urwid.org/tutorial/index.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F226"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/pazz/alot",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F242"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def __init__(self, attachment, selectable=True):\n    self._selectable = selectable\n    self.attachment = attachment\n    if not isinstance(attachment, Attachment):\n        self.attachment = Attachment(self.attachment)\n    att = settings.get_theming_attribute('thread', 'attachment')\n    focus_att = settings.get_theming_attribute('thread',\n                                               'attachment_focus')\n    widget = urwid.AttrMap(urwid.Text(self.attachment.__str__()),\n                           att, focus_att)\n    urwid.WidgetWrap.__init__(self, widget)\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/pazz/alot/blob/6baf75105903994921679025b63baf6f3be68c2a/alot/widgets/globals.py#L22-L32",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F241"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20urwid&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F226"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from __future__ import annotations\n\nimport urwid\n\ntxt = urwid.Text(\"Hello World\")\nfill = urwid.Filler(txt, \"top\")\nloop = urwid.MainLoop(fill)\nloop.run()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/urwid/urwid/master/docs/tutorial/minimal.py",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F231"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "inquirer",
          "name": [
            {
              "t": "fact",
              "fact": "F244"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/magmax/python-inquirer"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/inquirer"
            },
            {
              "label": "Docs",
              "href": "https://python-inquirer.readthedocs.io/en/latest/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F251"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://python-inquirer.readthedocs.io/en/latest/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/tuya-cloudcutter/tuya-cloudcutter",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F262"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def ask_options(text, options):\n    res = inquirer.prompt(\n        [\n            inquirer.List(\n                \"result\",\n                carousel=True,\n                message=text,\n                choices=options,\n            )\n        ], theme=inquirer.themes.load_theme_from_dict({ \"List\": { \"selection_color\": \"underline\", \"selection_cursor\": \"►\" } })\n    )\n    if res is None:\n        # Ctrl+C\n        exit(1)\n    return res[\"result\"]\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/tuya-cloudcutter/tuya-cloudcutter/blob/ad36091ff54bcb8391961369ae414f7aef9808fa/src/get_input.py#L39-L53",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F261"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=inquirer%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import inquirer\nquestions = [\n  inquirer.List('size',\n                message=\"What size do you need?\",\n                choices=['Jumbo', 'Large', 'Standard', 'Medium', 'Small', 'Micro'],\n            ),\n]\nanswers = inquirer.prompt(questions)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/magmax/python-inquirer/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F249"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python TUI library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#textual",
          "label": [
            {
              "t": "text",
              "text": "Textual"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits full-screen terminal applications built from nested widgets and CSS layouts. "
        },
        {
          "t": "link",
          "href": "#prompt-toolkit",
          "label": [
            {
              "t": "text",
              "text": "prompt_toolkit"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits interactive prompts with Emacs or Vi key bindings. "
        },
        {
          "t": "link",
          "href": "#questionary",
          "label": [
            {
              "t": "text",
              "text": "Questionary"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits command-line tools that need a few user prompts."
        }
      ]
    },
    {
      "q": "What is Rich in Python?",
      "a": [
        {
          "t": "link",
          "href": "#rich",
          "label": [
            {
              "t": "text",
              "text": "Rich"
            }
          ]
        },
        {
          "t": "text",
          "text": " renders rich text, tables, progress bars, syntax highlighting, and Markdown in the terminal."
        }
      ]
    },
    {
      "q": "What is Textual?",
      "a": [
        {
          "t": "link",
          "href": "#textual",
          "label": [
            {
              "t": "text",
              "text": "Textual"
            }
          ]
        },
        {
          "t": "text",
          "text": " builds terminal interfaces from nested widgets arranged in vertical, horizontal, and grid layouts. Its message handlers can call asynchronous APIs."
        }
      ]
    },
    {
      "q": "What is Questionary?",
      "a": [
        {
          "t": "link",
          "href": "#questionary",
          "label": [
            {
              "t": "text",
              "text": "Questionary"
            }
          ]
        },
        {
          "t": "text",
          "text": " builds command-line user prompts in Python."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, prompt-toolkit",
      "display": "prompt_toolkit",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, prompt-toolkit",
      "display": "183.4M",
      "asOf": "2026-11-12"
    },
    "F3": {
      "label": "License, prompt-toolkit",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, prompt-toolkit",
      "display": "3.0.53, Jul 2026",
      "asOf": "2026-07-26"
    },
    "F5": {
      "label": "Package release date, prompt-toolkit",
      "display": "Jul 2026",
      "asOf": "2026-07-26"
    },
    "F6": {
      "label": "Repository stars, prompt-toolkit",
      "display": "10.6K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Layouts, prompt-toolkit",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Mouse input, prompt-toolkit",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Async event loop, prompt-toolkit",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Syntax highlighting, prompt-toolkit",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, prompt-toolkit",
      "display": "pip install prompt-toolkit",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, prompt-toolkit",
      "display": "Builds interactive prompts and full-screen terminal applications.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, prompt-toolkit",
      "display": "Supports Emacs and Vi editing",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, prompt-toolkit",
      "display": "Offer familiar Emacs or Vi key bindings in terminal inputs.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, prompt-toolkit",
      "display": "Uses asyncio natively",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, prompt-toolkit",
      "display": "Run terminal applications on Python’s asyncio event loop.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, prompt-toolkit",
      "display": "Pygments supplies language highlighting",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, prompt-toolkit",
      "display": "Add Pygments, a syntax-highlighting library, for its ready-made language lexers.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, prompt-toolkit",
      "display": "Existing async apps need run_async",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, prompt-toolkit",
      "display": "Call run_async() inside applications that already use asyncio.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, prompt-toolkit",
      "display": "#!/usr/bin/env python\n\"\"\"\nA simple example of a a text area displaying \"Hello World!\".\n\"\"\"\n\nfrom prompt_toolkit.application import Application\nfrom prompt_toolkit.key_binding import KeyBindings\nfrom prompt_toolkit.layout import Layout\nfrom prompt_toolkit.widgets import Box, Frame, TextArea\n\n# Layout for displaying hello world.\n# (The frame creates the border, the box takes care of the margin/padding.)\nroot_container = Box(\n Frame(\n TextArea(\n text=\"Hello world!\\nPress control-c to quit.\",\n width=40,\n height=10,\n )\n ),\n)\nlayout = Layout(container=root_container)\n\n# Key bindings.\nkb = KeyBindings()\n\n@kb.add(\"c-c\")\ndef _(event):\n \"Quit when control-c is pressed.\"\n event.app.exit()\n\n# Build a main application object.\napplication = Application(layout=layout, key_bindings=kb, full_screen=True)\n\ndef main():\n application.run()\n\nif __name__ == \"__main__\":\n main()\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, prompt-toolkit",
      "display": "def _build_cli(self, history):\n    key_bindings = pgcli_bindings(self)\n\n    def get_message():\n        if self.dsn_alias and self.prompt_dsn_format is not None:\n            prompt_format = self.prompt_dsn_format\n        else:\n            prompt_format = self.prompt_format\n\n        prompt = self.get_prompt(prompt_format)\n\n        if prompt_format == self.default_prompt and len(prompt) > self.max_len_prompt:\n            prompt = self.get_prompt(\"\\\\d> \")\n\n        prompt = prompt.replace(\"\\\\x1b\", \"\\x1b\")\n        return ANSI(prompt)\n\n    def get_continuation(width, line_number, is_soft_wrap):\n        continuation = self.multiline_continuation_char * (width - 1) + \" \"\n        return [(\"class:continuation\", continuation)]\n\n    get_toolbar_tokens = create_toolbar_tokens_func(self)\n\n    if self.wider_completion_menu:\n        complete_style = CompleteStyle.MULTI_COLUMN\n    else:\n        complete_style = CompleteStyle.COLUMN\n\n    with self._completer_lock:\n        prompt_app = PromptSession(\n            lexer=PygmentsLexer(PostgresLexer),\n            reserve_space_for_menu=self.min_num_menu_lines,\n            message=get_message,\n            prompt_continuation=get_continuation,\n            bottom_toolbar=get_toolbar_tokens if self.show_bottom_toolbar else None,\n            complete_style=complete_style,\n            input_processors=[\n                # Highlight matching brackets while editing.\n                ConditionalProcessor(\n                    processor=HighlightMatchingBracketProcessor(chars=\"[](){}\"),\n                    filter=HasFocus(DEFAULT_BUFFER) & ~IsDone(),\n                ),\n                # Render \\t as 4 spaces instead of \"^I\"\n                TabsProcessor(char1=\" \", char2=\" \"),\n            ],\n            auto_suggest=AutoSuggestFromHistory() if self.auto_suggest else None,\n            tempfile_suffix=\".sql\",\n            # N.b. pgcli's multi-line mode controls submit-on-Enter (which\n            # overrides the default behaviour of prompt_toolkit) and is\n            # distinct from prompt_toolkit's multiline mode here, which\n            # controls layout/display of the prompt/buffer\n            multiline=True,\n            history=history,\n            completer=ThreadedCompleter(DynamicCompleter(lambda: self.completer)),\n            complete_while_typing=True,\n            style=style_factory(self.syntax_style, self.cli_style),\n            include_default_pygments_style=False,\n            key_bindings=key_bindings,\n            enable_open_in_editor=True,\n            enable_system_prompt=True,\n            enable_suspend=True,\n            editing_mode=EditingMode.VI if self.vi_mode else EditingMode.EMACS,\n            search_ignore_case=True,\n            cursor=ModalCursorShapeConfig() if self.vi_mode else None,\n        )\n\n        return prompt_app\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, prompt-toolkit",
      "display": "main.py · _build_cli()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, prompt-toolkit",
      "display": "dbcli/pgcli",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, dbcli/pgcli",
      "display": "13.4K",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, dbcli/pgcli",
      "display": "Nov 2026",
      "asOf": "2026-11-04"
    },
    "F27": {
      "label": "Library name, textual",
      "display": "Textual",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, textual",
      "display": "55.5M",
      "asOf": "2026-11-12"
    },
    "F29": {
      "label": "License, textual",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, textual",
      "display": "8.2.8, Jun 2026",
      "asOf": "2026-06-30"
    },
    "F31": {
      "label": "Package release date, textual",
      "display": "Jun 2026",
      "asOf": "2026-06-30"
    },
    "F32": {
      "label": "Repository stars, textual",
      "display": "37.6K",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Layouts, textual",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Mouse input, textual",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Async event loop, textual",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Syntax highlighting, textual",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Output formats, textual",
      "display": "SVG",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "Install, textual",
      "display": "pip install textual",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "What it does, textual",
      "display": "Builds terminal interfaces with nested widgets and CSS layouts.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, textual",
      "display": "Positions widgets with CSS layouts",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, textual",
      "display": "Arrange nested widgets with vertical, horizontal, and grid layouts.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths lead, textual",
      "display": "Awaits asynchronous message handlers",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "strengths, textual",
      "display": "Use async handlers to call asynchronous APIs.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations lead, textual",
      "display": "TextArea highlighting needs extra packages",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations, textual",
      "display": "Install textual’s syntax extra before enabling TextArea highlighting.",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "limitations lead, textual",
      "display": "Slow handlers can block input",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "limitations, textual",
      "display": "Move slow network calls out of message handlers.",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Quickstart, textual",
      "display": "from textual.app import App, ComposeResult\nfrom textual.widgets import Static\n\nclass PrideApp(App):\n    \"\"\"Displays a pride flag.\"\"\"\n\n    COLORS = [\"red\", \"orange\", \"yellow\", \"green\", \"blue\", \"purple\"]\n\n    def compose(self) -> ComposeResult:\n        for color in self.COLORS:\n            stripe = Static()\n            stripe.styles.height = \"1fr\"\n            stripe.styles.background = color\n            yield stripe\n\nif __name__ == \"__main__\":\n    PrideApp().run()\n",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project function, textual",
      "display": "def compose(self) -> ComposeResult:\n    self.key_input.add_class(\"key-input\")\n    self.value_input.add_class(\"value-input\")\n    with Vertical(id=\"row-writer-footer\"):\n        yield Label(\n            \"Editing row. Press [i]escape[/i] to cancel.\", id=\"editing-row-label\"\n        )\n        with Horizontal(id=\"key-value-inputs\"):\n            yield self.key_input\n            yield self.value_input\n            add_button = Button(self.button_label, disabled=True, id=\"add-button\")\n            add_button.can_focus = False\n            yield add_button\n",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project function reference, textual",
      "display": "key_value.py · compose()",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project repository, textual",
      "display": "darrenburns/posting",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project stars, darrenburns/posting",
      "display": "12.6K",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Project push date, darrenburns/posting",
      "display": "Oct 2026",
      "asOf": "2026-10-16"
    },
    "F54": {
      "label": "Library name, urwid",
      "display": "Urwid",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Monthly downloads, urwid",
      "display": "5.3M",
      "asOf": "2026-11-12"
    },
    "F56": {
      "label": "License, urwid",
      "display": "LGPL-2.1",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Package release, urwid",
      "display": "5.1.2, Nov 2026",
      "asOf": "2026-11-11"
    },
    "F58": {
      "label": "Package release date, urwid",
      "display": "Nov 2026",
      "asOf": "2026-11-11"
    },
    "F59": {
      "label": "Repository stars, urwid",
      "display": "3.0K",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Layouts, urwid",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Mouse input, urwid",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Async event loop, urwid",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "Output formats, urwid",
      "display": "HTML",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "Install, urwid",
      "display": "pip install urwid",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "What it does, urwid",
      "display": "Builds console interfaces from nested terminal widgets.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths lead, urwid",
      "display": "Nests layouts and keyboard focus",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths, urwid",
      "display": "Divide space between widgets and manage focus within nested containers.",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "strengths lead, urwid",
      "display": "Integrates with multiple event loops",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "strengths, urwid",
      "display": "Connect the interface to asyncio or another supported event loop.",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations lead, urwid",
      "display": "Extra mouse buttons are unreliable",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations, urwid",
      "display": "Prefer left-click actions over right-click and modifier-click interactions.",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Quickstart, urwid",
      "display": "from __future__ import annotations\n\nimport typing\n\nimport urwid\n\npalette = [(\"I say\", \"default,bold\", \"default\", \"bold\")]\nask = urwid.Edit((\"I say\", \"What is your name?\\n\"))\nreply = urwid.Text(\"\")\nbutton_inst = urwid.Button(\"Exit\")\ndiv = urwid.Divider()\npile = urwid.Pile([ask, div, reply, div, button_inst])\ntop = urwid.Filler(pile, valign=\"top\")\n\n\ndef on_ask_change(_edit: urwid.Edit, new_edit_text: str) -> None:\n    reply.set_text((\"I say\", f\"Nice to meet you, {new_edit_text}\"))\n\n\ndef on_exit_clicked(_button: urwid.Button) -> typing.NoReturn:\n    raise urwid.ExitMainLoop\n\n\nurwid.connect_signal(ask, \"change\", on_ask_change)\nurwid.connect_signal(button_inst, \"click\", on_exit_clicked)\n\nurwid.MainLoop(top, palette).run()\n",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project function, urwid",
      "display": "def __init__(self, attachment, selectable=True):\n    self._selectable = selectable\n    self.attachment = attachment\n    if not isinstance(attachment, Attachment):\n        self.attachment = Attachment(self.attachment)\n    att = settings.get_theming_attribute('thread', 'attachment')\n    focus_att = settings.get_theming_attribute('thread',\n                                               'attachment_focus')\n    widget = urwid.AttrMap(urwid.Text(self.attachment.__str__()),\n                           att, focus_att)\n    urwid.WidgetWrap.__init__(self, widget)\n",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project function reference, urwid",
      "display": "globals.py · __init__()",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project repository, urwid",
      "display": "pazz/alot",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project stars, pazz/alot",
      "display": "749",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Project push date, pazz/alot",
      "display": "Nov 2026",
      "asOf": "2026-11-04"
    },
    "F78": {
      "label": "Library name, pytermgui",
      "display": "PyTermGUI",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Monthly downloads, pytermgui",
      "display": "3.2K",
      "asOf": "2026-11-12"
    },
    "F80": {
      "label": "License, pytermgui",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Package release, pytermgui",
      "display": "7.8.1, Sep 2026",
      "asOf": "2026-09-10"
    },
    "F82": {
      "label": "Package release date, pytermgui",
      "display": "Sep 2026",
      "asOf": "2026-09-10"
    },
    "F83": {
      "label": "Repository stars, pytermgui",
      "display": "2.7K",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Layouts, pytermgui",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Mouse input, pytermgui",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Syntax highlighting, pytermgui",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Output formats, pytermgui",
      "display": "SVG, HTML",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "Install, pytermgui",
      "display": "pip install pytermgui",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "What it does, pytermgui",
      "display": "Builds terminal interfaces with a window manager and styled markup.",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths lead, pytermgui",
      "display": "Includes a desktop-style window manager",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths, pytermgui",
      "display": "Organize terminal interfaces into customizable windows and modal dialogs.",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths lead, pytermgui",
      "display": "Exports terminal screenshots",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "strengths, pytermgui",
      "display": "Create SVG or HTML screenshots of the terminal interface.",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations lead, pytermgui",
      "display": "Windows support depends on emulator",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations, pytermgui",
      "display": "Use an ANSI-compatible terminal for cursor, keyboard, and mouse behavior.",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Quickstart, pytermgui",
      "display": "import time\n\nimport pytermgui as ptg\n\ndef macro_time(fmt: str) -> str:\n    return time.strftime(fmt)\n\nptg.tim.define(\"!time\", macro_time)\n\nwith ptg.WindowManager() as manager:\n    manager.layout.add_slot(\"Body\")\n    manager.add(\n        ptg.Window(\"[bold]The current time is:[/]\\n\\n[!time 75]%c\", box=\"EMPTY\")\n    )\n",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Developer need",
      "display": "CSS-style terminal layouts",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Why choose textual",
      "display": "CSS layouts",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Developer need in introduction",
      "display": "CSS-style terminal layouts",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Developer need",
      "display": "Nested terminal widgets",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Why choose urwid",
      "display": "nested containers",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need in introduction",
      "display": "nested terminal widgets",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Developer need",
      "display": "Emacs or Vi inputs",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Why choose prompt-toolkit",
      "display": "editing modes",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Developer need in introduction",
      "display": "emacs or Vi inputs",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need",
      "display": "Terminal window management",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Why choose pytermgui",
      "display": "window manager",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need in introduction",
      "display": "terminal window management",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Page introduction",
      "display": "Python TUI libraries let developers build interactive terminal interfaces.",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Library name, rich",
      "display": "Rich",
      "asOf": "2026-11-20"
    },
    "F111": {
      "label": "Monthly downloads, rich",
      "display": "575.1M",
      "asOf": "2026-11-20"
    },
    "F112": {
      "label": "License, rich",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F113": {
      "label": "Package release, rich",
      "display": "15.0.0",
      "asOf": "2026-11-20"
    },
    "F114": {
      "label": "Package release date, rich",
      "display": "Apr 2026",
      "asOf": "2026-11-20"
    },
    "F115": {
      "label": "Install, rich",
      "display": "python -m pip install rich",
      "asOf": "2026-11-20"
    },
    "F116": {
      "label": "Quickstart, rich",
      "display": "from rich.prompt import Prompt\nname = Prompt.ask(\"Enter your name\")\n",
      "asOf": "2026-11-20"
    },
    "F117": {
      "label": "Official description, rich",
      "display": "Renders rich text, tables, progress bars, syntax highlighting, and Markdown in the terminal.",
      "asOf": "2026-11-20"
    },
    "F118": {
      "label": "Quickstart source file, rich",
      "display": "docs/source/prompt.rst",
      "asOf": "2026-11-20"
    },
    "F119": {
      "label": "Repository stars, rich",
      "display": "57.8K",
      "asOf": "2026-11-20"
    },
    "F120": {
      "label": "Interactive widget layouts, rich",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F121": {
      "label": "Questionnaire-by-dictionary API, rich",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F122": {
      "label": "Interface level, rich",
      "display": "Terminal rendering toolkit with built-in typed single-question prompts; not an interactive application widget framework",
      "asOf": "2026-11-20"
    },
    "F123": {
      "label": "Question result, rich",
      "display": "Typed single-question answer, optionally with choices and a default",
      "asOf": "2026-11-20"
    },
    "F124": {
      "label": "Display layout, rich",
      "display": "Static renderable layout; input/focus handling is outside the Layout object",
      "asOf": "2026-11-20"
    },
    "F125": {
      "label": "Related application framework, rich",
      "display": "Maintainer points to Textual for sophisticated terminal interfaces",
      "asOf": "2026-11-20"
    },
    "F126": {
      "label": "Project function, rich",
      "display": "def read_user_variable(var_name: str, default_value, prompts=None, prefix: str = \"\"):\n    \"\"\"Prompt user for variable and return the entered value or given default.\n\n    :param str var_name: Variable of the context to query the user\n    :param default_value: Value that will be returned if no input happens\n    \"\"\"\n    question = (\n        prompts[var_name]\n        if prompts and var_name in prompts and prompts[var_name]\n        else var_name\n    )\n\n    while True:\n        variable = Prompt.ask(f\"{prefix}{question}\", default=default_value)\n        if variable is not None:\n            break\n\n    return variable\n",
      "asOf": "2026-11-20"
    },
    "F127": {
      "label": "Project source file, rich",
      "display": "cookiecutter/prompt.py",
      "asOf": "2026-11-20"
    },
    "F128": {
      "label": "Project full_name, rich",
      "display": "cookiecutter/cookiecutter",
      "asOf": "2026-11-20"
    },
    "F129": {
      "label": "Project stargazers_count, rich",
      "display": "25.2K",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "Library name, prompt-toolkit",
      "display": "prompt_toolkit",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "Monthly downloads, prompt-toolkit",
      "display": "225.0M",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "License, prompt-toolkit",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Package release, prompt-toolkit",
      "display": "3.0.53",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Package release date, prompt-toolkit",
      "display": "Jul 2026",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Install, prompt-toolkit",
      "display": "pip install prompt_toolkit",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Quickstart, prompt-toolkit",
      "display": "from prompt_toolkit import prompt\n\ntext = prompt(\"Give me some input: \")\nprint(f\"You said: {text}\")\n",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Repository stars, prompt-toolkit",
      "display": "10.6K",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Interactive widget layouts, prompt-toolkit",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Questionnaire-by-dictionary API, prompt-toolkit",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Interface level, prompt-toolkit",
      "display": "Prompt editor and application layout toolkit",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Prompt customization, prompt-toolkit",
      "display": "PromptSession accepts completers, lexers, input processors, key bindings, styles, and history",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Application construction, prompt-toolkit",
      "display": "Layout and key bindings are assembled explicitly by the application",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Editing configuration, prompt-toolkit",
      "display": "PromptSession exposes editing_mode and enables editor/system-prompt integration through explicit options",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Project function, prompt-toolkit",
      "display": "def _build_cli(self, history):\n    key_bindings = pgcli_bindings(self)\n\n    def get_message():\n        if self.dsn_alias and self.prompt_dsn_format is not None:\n            prompt_format = self.prompt_dsn_format\n        else:\n            prompt_format = self.prompt_format\n\n        prompt = self.get_prompt(prompt_format)\n\n        if prompt_format == self.default_prompt and len(prompt) > self.max_len_prompt:\n            prompt = self.get_prompt(\"\\\\d> \")\n\n        prompt = prompt.replace(\"\\\\x1b\", \"\\x1b\")\n        return ANSI(prompt)\n\n    def get_continuation(width, line_number, is_soft_wrap):\n        continuation = self.multiline_continuation_char * (width - 1) + \" \"\n        return [(\"class:continuation\", continuation)]\n\n    get_toolbar_tokens = create_toolbar_tokens_func(self)\n\n    if self.wider_completion_menu:\n        complete_style = CompleteStyle.MULTI_COLUMN\n    else:\n        complete_style = CompleteStyle.COLUMN\n\n    with self._completer_lock:\n        prompt_app = PromptSession(\n            lexer=PygmentsLexer(PostgresLexer),\n            reserve_space_for_menu=self.min_num_menu_lines,\n            message=get_message,\n            prompt_continuation=get_continuation,\n            bottom_toolbar=get_toolbar_tokens if self.show_bottom_toolbar else None,\n            complete_style=complete_style,\n            input_processors=[\n                # Highlight matching brackets while editing.\n                ConditionalProcessor(\n                    processor=HighlightMatchingBracketProcessor(chars=\"[](){}\"),\n                    filter=HasFocus(DEFAULT_BUFFER) & ~IsDone(),\n                ),\n                # Render \\t as 4 spaces instead of \"^I\"\n                TabsProcessor(char1=\" \", char2=\" \"),\n            ],\n            auto_suggest=AutoSuggestFromHistory() if self.auto_suggest else None,\n            tempfile_suffix=\".sql\",\n            # N.b. pgcli's multi-line mode controls submit-on-Enter (which\n            # overrides the default behaviour of prompt_toolkit) and is\n            # distinct from prompt_toolkit's multiline mode here, which\n            # controls layout/display of the prompt/buffer\n            multiline=True,\n            history=history,\n            completer=ThreadedCompleter(DynamicCompleter(lambda: self.completer)),\n            complete_while_typing=True,\n            style=style_factory(self.syntax_style, self.cli_style),\n            include_default_pygments_style=False,\n            key_bindings=key_bindings,\n            enable_open_in_editor=True,\n            enable_system_prompt=True,\n            enable_suspend=True,\n            editing_mode=EditingMode.VI if self.vi_mode else EditingMode.EMACS,\n            search_ignore_case=True,\n            cursor=ModalCursorShapeConfig() if self.vi_mode else None,\n        )\n\n        return prompt_app\n",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Project source file, prompt-toolkit",
      "display": "pgcli/main.py",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Project full_name, prompt-toolkit",
      "display": "dbcli/pgcli",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Project stargazers_count, prompt-toolkit",
      "display": "13.5K",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Library name, textual",
      "display": "Textual",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Monthly downloads, textual",
      "display": "59.3M",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "License, textual",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Package release, textual",
      "display": "8.2.8",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Package release date, textual",
      "display": "Jun 2026",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Install, textual",
      "display": "pip install textual",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Quickstart, textual",
      "display": "from textual.app import App\n\nclass MyApp(App):\n    pass\n\nif __name__ == \"__main__\":\n    app = MyApp()\n    app.run()\n",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Repository stars, textual",
      "display": "37.7K",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Interactive widget layouts, textual",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Questionnaire-by-dictionary API, textual",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Interface level, textual",
      "display": "Application framework with widgets, CSS layout, and messages",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Layout customization, textual",
      "display": "Widget arrangement through container layouts and CSS",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Application entry point, textual",
      "display": "An App subclass starts the terminal application through run()",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Widget composition, textual",
      "display": "compose yields child widgets; linked application form uses real input, label, and button widgets",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Project function, textual",
      "display": "def compose(self) -> ComposeResult:\n    self.key_input.add_class(\"key-input\")\n    self.value_input.add_class(\"value-input\")\n    with Vertical(id=\"row-writer-footer\"):\n        yield Label(\n            \"Editing row. Press [i]escape[/i] to cancel.\", id=\"editing-row-label\"\n        )\n        with Horizontal(id=\"key-value-inputs\"):\n            yield self.key_input\n            yield self.value_input\n            add_button = Button(self.button_label, disabled=True, id=\"add-button\")\n            add_button.can_focus = False\n            yield add_button\n",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Project source file, textual",
      "display": "src/posting/widgets/key_value.py",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Project full_name, textual",
      "display": "darrenburns/posting",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Project stargazers_count, textual",
      "display": "12.6K",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Library name, questionary",
      "display": "Questionary",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Monthly downloads, questionary",
      "display": "30.0M",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "License, questionary",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Package release, questionary",
      "display": "2.1.1",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Package release date, questionary",
      "display": "Aug 2025",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Install, questionary",
      "display": "pip install questionary",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Quickstart, questionary",
      "display": "import questionary\n\nanswer = questionary.text(\"What's your first name\").ask()\n",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Official description, questionary",
      "display": "Builds command-line user prompts.",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Quickstart source file, questionary",
      "display": "pages/quickstart.rst",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Repository stars, questionary",
      "display": "2.2K",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Interactive widget layouts, questionary",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Questionnaire-by-dictionary API, questionary",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Interface level, questionary",
      "display": "Prebuilt interactive questions and questionnaire orchestration",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Prompt orchestration, questionary",
      "display": "Question dictionaries run sequentially and return an answer dictionary",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Async integration, questionary",
      "display": "Questions can be awaited using ask_async or unsafe_ask_async",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Keyboard interrupt, questionary",
      "display": "Safe prompt wrappers return None on interruption; unsafe variants propagate the interrupt",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Project function, questionary",
      "display": "def _get_message_by_prompt_commit_questions(self) -> str:\n    # Prompt user for the commit message\n    questions = self.cz.questions()\n    for question in (q for q in questions if q[\"type\"] == \"list\"):\n        question[\"use_shortcuts\"] = self.config.settings[\"use_shortcuts\"]\n    try:\n        answers = questionary.prompt(questions, style=self.cz.style)\n    except ValueError as err:\n        root_err = err.__context__\n        if isinstance(root_err, CzException):\n            raise CustomError(str(root_err))\n        raise err\n\n    if not answers:\n        raise NoAnswersError()\n\n    message = self.cz.message(answers)\n    self._validate_subject_length(message)\n    message = self._wrap_body(message)\n    return message\n",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Project source file, questionary",
      "display": "commitizen/commands/commit.py",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Project full_name, questionary",
      "display": "commitizen-tools/commitizen",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Project stargazers_count, questionary",
      "display": "3.6K",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Library name, inquirerpy",
      "display": "InquirerPy",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Monthly downloads, inquirerpy",
      "display": "15.3M",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "License, inquirerpy",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Package release, inquirerpy",
      "display": "0.3.4",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Package release date, inquirerpy",
      "display": "Jun 2022",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Install, inquirerpy",
      "display": "pip3 install InquirerPy",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Quickstart, inquirerpy",
      "display": "from InquirerPy import inquirer\n\nname = inquirer.text(message=\"What's your name:\").execute()\n",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Official description, inquirerpy",
      "display": "Ports the Inquirer.js collection of interactive command-line interfaces to Python.",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Quickstart source file, inquirerpy",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Repository stars, inquirerpy",
      "display": "484",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Interactive widget layouts, inquirerpy",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Questionnaire-by-dictionary API, inquirerpy",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Interface level, inquirerpy",
      "display": "Prebuilt interactive questions and questionnaire orchestration",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Prompt orchestration, inquirerpy",
      "display": "Classic dictionary syntax and per-prompt inquirer constructors are separate supported APIs",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Async integration, inquirerpy",
      "display": "prompt_async and per-prompt execute_async return awaitable answers",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Answer naming, inquirerpy",
      "display": "Question name supplies the answer key; omitted names use the question index",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Project function, inquirerpy",
      "display": "def _ask_autodetect() -> bool:\n    \"\"\"Keyboard select: auto-detect URLs from the diff, or enter them manually.\n\n    Falls back to a y/n prompt when there's no TTY or InquirerPy is missing.\n    \"\"\"\n    if sys.stdin.isatty():\n        try:\n            from InquirerPy import inquirer\n            from InquirerPy.base.control import Choice\n\n            return inquirer.select(\n                message=\"How should we pick the URLs to test?\",\n                choices=[\n                    Choice(value=True, name=\"Automagic detection (based on the git diff)\"),\n                    Choice(value=False, name=\"Enter URLs manually\"),\n                ],\n                default=True,\n            ).execute()\n        except Exception:\n            pass\n    return Confirm.ask(\n        \"Auto-detect URLs to test from the git diff?\", default=False\n    )\n",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Project source file, inquirerpy",
      "display": "dev/cli/commands/snap.py",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Project full_name, inquirerpy",
      "display": "polarsource/polar",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Project stargazers_count, inquirerpy",
      "display": "10.5K",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Library name, blessed",
      "display": "Blessed",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Monthly downloads, blessed",
      "display": "11.6M",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "License, blessed",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Package release, blessed",
      "display": "1.52.0",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Package release date, blessed",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Install, blessed",
      "display": "pip install blessed",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Quickstart, blessed",
      "display": "from blessed import Terminal\n\nterm = Terminal()\n\nprint(term.home + term.clear + term.move_y(term.height // 2))\nprint(term.black_on_darkkhaki(term.center('press any key to continue.')))\n\nwith term.cbreak(), term.hidden_cursor():\n    inp = term.inkey()\n\nprint(term.move_down(2) + 'You pressed ' + term.bold(repr(inp)))\n",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Official description, blessed",
      "display": "Provides a well-documented interface for making terminal apps.",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Quickstart source file, blessed",
      "display": "intro.rst",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Repository stars, blessed",
      "display": "1.5K",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Interactive widget layouts, blessed",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Questionnaire-by-dictionary API, blessed",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Interface level, blessed",
      "display": "Low-level keyboard, terminal capability, and cursor toolkit",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Application responsibility, blessed",
      "display": "Terminal capabilities and input are primitives; application constructs screen and event loop",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Input behavior, blessed",
      "display": "cbreak exposes keystrokes immediately; inkey takes a timeout and returns a Keystroke",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Terminal dimensions, blessed",
      "display": "Terminal height and width expose current character-cell dimensions",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Project function, blessed",
      "display": "def boxed(\n    term: Terminal,\n    content: str,\n    *,\n    border: bool = True,\n    border_color: str = \"white\",\n    center: bool = False,\n    width: int | None = None,\n) -> str:\n    if border:\n        border_width = term.length(content) + 2\n        border_formatter = getattr(term, border_color)\n        lines = [\n            border_formatter(\"┌\" + \"─\" * border_width + \"┐\"),\n            \" \".join(\n                [border_formatter(\"│\") + term.normal, content, border_formatter(\"│\")]\n            ),\n            border_formatter(\"└\" + \"─\" * border_width + \"┘\") + term.normal,\n        ]\n    else:\n        # border is disabled in UI tests.\n        lines = [\"\", content, \"\"]\n    if center:\n        if width is None:\n            width = term.width\n        lines = [term.center(line, width=width) for line in lines]\n    return \"\\n\".join(lines)\n",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Project source file, blessed",
      "display": "pgactivity/widgets.py",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Project full_name, blessed",
      "display": "dalibo/pg_activity",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Project stargazers_count, blessed",
      "display": "3.1K",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Library name, urwid",
      "display": "Urwid",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Monthly downloads, urwid",
      "display": "5.4M",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "License, urwid",
      "display": "LGPL-2.1",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Package release, urwid",
      "display": "5.1.3",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Package release date, urwid",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Install, urwid",
      "display": "pip install urwid",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Quickstart, urwid",
      "display": "from __future__ import annotations\n\nimport urwid\n\ntxt = urwid.Text(\"Hello World\")\nfill = urwid.Filler(txt, \"top\")\nloop = urwid.MainLoop(fill)\nloop.run()\n",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Repository stars, urwid",
      "display": "3.0K",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Interactive widget layouts, urwid",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Questionnaire-by-dictionary API, urwid",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Interface level, urwid",
      "display": "Application widget and container toolkit",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Widget composition, urwid",
      "display": "WidgetWrap delegates display and behavior to a composed child widget",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Widget styling, urwid",
      "display": "AttrMap supplies distinct normal and focused attribute maps",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Application entry point, urwid",
      "display": "MainLoop runs the composed widget tree",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Project function, urwid",
      "display": "def __init__(self, attachment, selectable=True):\n    self._selectable = selectable\n    self.attachment = attachment\n    if not isinstance(attachment, Attachment):\n        self.attachment = Attachment(self.attachment)\n    att = settings.get_theming_attribute('thread', 'attachment')\n    focus_att = settings.get_theming_attribute('thread',\n                                               'attachment_focus')\n    widget = urwid.AttrMap(urwid.Text(self.attachment.__str__()),\n                           att, focus_att)\n    urwid.WidgetWrap.__init__(self, widget)\n",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Project source file, urwid",
      "display": "alot/widgets/globals.py",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Project full_name, urwid",
      "display": "pazz/alot",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Project stargazers_count, urwid",
      "display": "749",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Library name, inquirer",
      "display": "python-inquirer",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Monthly downloads, inquirer",
      "display": "4.3M",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "License, inquirer",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Package release, inquirer",
      "display": "3.4.1",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Package release date, inquirer",
      "display": "Aug 2025",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Install, inquirer",
      "display": "pip install inquirer",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Quickstart, inquirer",
      "display": "import inquirer\nquestions = [\n  inquirer.List('size',\n                message=\"What size do you need?\",\n                choices=['Jumbo', 'Large', 'Standard', 'Medium', 'Small', 'Micro'],\n            ),\n]\nanswers = inquirer.prompt(questions)\n",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Official description, inquirer",
      "display": "Provides a collection of interactive command-line interfaces based on Inquirer.js.",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Quickstart source file, inquirer",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Repository stars, inquirer",
      "display": "1.1K",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Interactive widget layouts, inquirer",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Questionnaire-by-dictionary API, inquirer",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Interface level, inquirer",
      "display": "Prebuilt interactive questions and questionnaire orchestration",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Question scope, inquirer",
      "display": "List, text, editor, checkbox, and path questions use the same prompt runner",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "List interaction, inquirer",
      "display": "Lists accept carousel navigation, choices, and a message",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Interrupt result, inquirer",
      "display": "prompt returns named answers or no answer on an unraised KeyboardInterrupt",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Project function, inquirer",
      "display": "def ask_options(text, options):\n    res = inquirer.prompt(\n        [\n            inquirer.List(\n                \"result\",\n                carousel=True,\n                message=text,\n                choices=options,\n            )\n        ], theme=inquirer.themes.load_theme_from_dict({ \"List\": { \"selection_color\": \"underline\", \"selection_cursor\": \"►\" } })\n    )\n    if res is None:\n        # Ctrl+C\n        exit(1)\n    return res[\"result\"]\n",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Project source file, inquirer",
      "display": "src/get_input.py",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Project full_name, inquirer",
      "display": "tuya-cloudcutter/tuya-cloudcutter",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Project stargazers_count, inquirer",
      "display": "2.0K",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Python TUI libraries Textual Urwid prompt_toolkit PyTermGUI terminal UI layouts mouse asyncio syntax highlighting screenshots",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
