{
  "id": "task_libraries:ssh/python",
  "path": "/exapedia/python-ssh-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python SSH libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python SSH libraries open encrypted connections to remote machines to run commands, transfer files, and forward ports. A native client implements the SSH protocol in Python or binds a C library rather than driving the system ssh command. These libraries let deployment scripts, network automation tools, and AI agents operate servers and devices remotely."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python SSH libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#pexpect",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F114"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F115"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F123"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F118"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F116"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#paramiko",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F132"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#asyncssh",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F147"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sshtunnel",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F162"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fabric",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F180"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#netmiko",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F191"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sshtwo-python",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F206"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#ssh-python",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F224"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ]
            ]
          ],
          "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": "#pexpect",
          "label": [
            {
              "t": "text",
              "text": "Pexpect"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F115"
        },
        {
          "t": "text",
          "text": ", a count that includes many non-SSH tasks."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Asyncio SSH sessions",
            "SFTP file API"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#pexpect",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F114"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F124"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F125"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#paramiko",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F132"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#asyncssh",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F147"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sshtunnel",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F162"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fabric",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F180"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#netmiko",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F191"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sshtwo-python",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F206"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#ssh-python",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F224"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "pexpect",
          "name": [
            {
              "t": "fact",
              "fact": "F114"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pexpect/pexpect"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pexpect"
            },
            {
              "label": "Docs",
              "href": "https://pexpect.readthedocs.io/en/stable/api/pxssh.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F121"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F115"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F123"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F117"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F116"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pexpect.readthedocs.io/en/stable/api/pxssh.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F114"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/home-assistant/core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F130"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _get_arp_data(self) -> str | None:\n    \"\"\"Open connection to the router and get arp entries.\"\"\"\n\n    try:\n        cisco_ssh: pxssh.pxssh[str] = pxssh.pxssh(encoding=\"utf-8\")\n        cisco_ssh.login(\n            self.host,\n            self.username,\n            self.password,\n            port=self.port,\n            auto_prompt_reset=False,\n        )\n\n        # Find the hostname\n        initial_line = (cisco_ssh.before or \"\").splitlines()\n        router_hostname = initial_line[len(initial_line) - 1]\n        router_hostname += \"#\"\n        # Set the discovered hostname as prompt\n        cisco_ssh.PROMPT = f\"(?i)^{router_hostname}\"\n        # Allow full arp table to print at once\n        cisco_ssh.sendline(\"terminal length 0\")\n        cisco_ssh.prompt(1)\n\n        cisco_ssh.sendline(\"show ip arp\")\n        cisco_ssh.prompt(1)\n\n    except pxssh.ExceptionPxssh as px_e:\n        _LOGGER.error(\"Failed to login via pxssh: %s\", px_e)\n        return None\n\n    return cisco_ssh.before\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/home-assistant/core/blob/e94d23e5e9906a8bcb03f25f1dc75aeac2c27b68/homeassistant/components/cisco_ios/device_tracker.py#L104-L134",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F129"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=pexpect%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F114"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from pexpect import pxssh\ns = pxssh.pxssh()\ns.login(hostname, username, password)\ns.sendline('uptime')   # run a command\ns.prompt()             # match the prompt\nprint(s.before)        # print everything before the prompt.\ns.logout()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://pexpect.readthedocs.io/en/stable/api/pxssh.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "pxssh.py"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F119"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "paramiko",
          "name": [
            {
              "t": "fact",
              "fact": "F132"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/paramiko/paramiko"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/paramiko"
            },
            {
              "label": "Docs",
              "href": "https://docs.paramiko.org/en/stable/api/client.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F10"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.paramiko.org/en/stable/api/client.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F132"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F11"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F12"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/fabric/fabric",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F145"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def get(self, remote, local=None, preserve_mode=True):\n    \"\"\"\n    Copy a file from wrapped connection's host to the local filesystem.\n\n    :param str remote:\n        Remote file to download.\n\n        May be absolute, or relative to the remote working directory.\n\n        .. note::\n            Most SFTP servers set the remote working directory to the\n            connecting user's home directory, and (unlike most shells) do\n            *not* expand tildes (``~``).\n\n            For example, instead of saying ``get(\"~/tmp/archive.tgz\")``,\n            say ``get(\"tmp/archive.tgz\")``.\n\n    :param local:\n        Local path to store downloaded file in, or a file-like object.\n\n        **If None or another 'falsey'/empty value is given** (the default),\n        the remote file is downloaded to the current working directory (as\n        seen by `os.getcwd`) using its remote filename. (This is equivalent\n        to giving ``\"{basename}\"``; see the below subsection on\n        interpolation.)\n\n        **If a string is given**, it should be a path to a local directory\n        or file and is subject to similar behavior as that seen by common\n        Unix utilities or OpenSSH's ``sftp`` or ``scp`` tools.\n\n        For example, if the local path is a directory, the remote path's\n        base filename will be added onto it (so ``get('foo/bar/file.txt',\n        '/tmp/')`` would result in creation or overwriting of\n        ``/tmp/file.txt``).\n\n        This path will be **interpolated** with some useful parameters,\n        using `str.format`:\n\n        - The `.Connection` object's ``host``, ``user`` and ``port``\n          attributes.\n        - The ``basename`` and ``dirname`` of the ``remote`` path, as\n          derived by `os.path` (specifically, its ``posixpath`` flavor, so\n          that the resulting values are useful on remote POSIX-compatible\n          SFTP servers even if the local client is Windows).\n        - Thus, for example, ``\"/some/path/{user}@{host}/{basename}\"`` will\n          yield different local paths depending on the properties of both\n          the connection and the remote path.\n\n        .. note::\n            If nonexistent directories are present in this path (including\n            the final path component, if it ends in `os.sep`) they will be\n            created automatically using `os.makedirs`.\n\n        **If a file-like object is given**, the contents of the remote file\n        are simply written into it.\n\n    :param bool preserve_mode:\n        Whether to `os.chmod` the local file so it matches the remote\n        file's mode (default: ``True``).\n\n    :returns: A `.Result` object.\n\n    .. versionadded:: 2.0\n    .. versionchanged:: 2.6\n        Added ``local`` path interpolation of connection & remote file\n        attributes.\n    .. versionchanged:: 2.6\n        Create missing ``local`` directories automatically.\n    \"\"\"\n    # TODO: how does this API change if we want to implement\n    # remote-to-remote file transfer? (Is that even realistic?)\n    # TODO: callback support\n    # TODO: how best to allow changing the behavior/semantics of\n    # remote/local (e.g. users might want 'safer' behavior that complains\n    # instead of overwriting existing files) - this likely ties into the\n    # \"how to handle recursive/rsync\" and \"how to handle scp\" questions\n\n    # Massage remote path\n    if not remote:\n        raise ValueError(\"Remote path must not be empty!\")\n    orig_remote = remote\n    remote = posixpath.join(\n        self.sftp.getcwd() or self.sftp.normalize(\".\"), remote\n    )\n\n    # Massage local path\n    orig_local = local\n    is_file_like = hasattr(local, \"write\") and callable(local.write)\n    remote_filename = posixpath.basename(remote)\n    if not local:\n        local = remote_filename\n    # Path-driven local downloads need interpolation, abspath'ing &\n    # directory creation\n    if not is_file_like:\n        local = local.format(\n            host=self.connection.host,\n            user=self.connection.user,\n            port=self.connection.port,\n            dirname=posixpath.dirname(remote),\n            basename=remote_filename,\n        )\n        # Must treat dir vs file paths differently, lest we erroneously\n        # mkdir what was intended as a filename, and so that non-empty\n        # dir-like paths still get remote filename tacked on.\n        if local.endswith(os.sep):\n            dir_path = local\n            local = os.path.join(local, remote_filename)\n        else:\n            dir_path, _ = os.path.split(local)\n        local = os.path.abspath(local)\n        Path(dir_path).mkdir(parents=True, exist_ok=True)\n        # TODO: reimplement mkdir (or otherwise write a testing function)\n        # allowing us to track what was created so we can revert if\n        # transfer fails.\n        # TODO: Alternately, transfer to temp location and then move, but\n        # that's basically inverse of v1's sudo-put which gets messy\n\n    # Run Paramiko-level .get() (side-effects only. womp.)\n    # TODO: push some of the path handling into Paramiko; it should be\n    # responsible for dealing with path cleaning etc.\n    # TODO: probably preserve warning message from v1 when overwriting\n    # existing files. Use logging for that obviously.\n    #\n    # If local appears to be a file-like object, use sftp.getfo, not get\n    if is_file_like:\n        self.sftp.getfo(remotepath=remote, fl=local)\n    else:\n        self.sftp.get(remotepath=remote, localpath=local)\n        # Set mode to same as remote end\n        # TODO: Push this down into SFTPClient sometime (requires backwards\n        # incompat release.)\n        if preserve_mode:\n            remote_mode = self.sftp.stat(remote).st_mode\n            mode = stat.S_IMODE(remote_mode)\n            os.chmod(local, mode)\n    # Return something useful\n    return Result(\n        orig_remote=orig_remote,\n        remote=remote,\n        orig_local=orig_local,\n        local=local,\n        connection=self.connection,\n    )\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/fabric/fabric/blob/ded51893f02c33d2bc7c157624c44a039a952037/fabric/transfer.py#L43-L185",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20paramiko%20for%20SSH%20file%20transfers%2C%20remote%20worker%20startup%20and%20network%20configuration%20commands&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": "F132"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from paramiko.client import (\n    AutoAddPolicy,\n    MissingHostKeyPolicy,\n    RejectPolicy,\n    SSHClient,\n    WarningPolicy,\n)\n\nclient = SSHClient()\nclient.load_system_host_keys()\nclient.connect('ssh.example.com')\nstdin, stdout, stderr = client.exec_command('ls -l')\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.paramiko.org/en/stable/api/client.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "__init__.py"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F137"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "asyncssh",
          "name": [
            {
              "t": "fact",
              "fact": "F147"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/ronf/asyncssh"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/asyncssh"
            },
            {
              "label": "Docs",
              "href": "https://asyncssh.readthedocs.io/en/latest/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F35"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://asyncssh.readthedocs.io/en/latest/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F147"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F36"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F37"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/dask/distributed",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "async def start(self):\n    try:\n        import asyncssh  # import now to avoid adding to module startup time\n    except ImportError:\n        raise ImportError(\n            \"Dask's SSHCluster requires the `asyncssh` package to be installed. \"\n            \"Please install it using pip or conda.\"\n        )\n\n    self.connection = await asyncssh.connect(self.address, **self.connect_options)\n\n    result = await self.connection.run(\"uname\")\n    if result.exit_status == 0:\n        set_env = f'env DASK_INTERNAL_INHERIT_CONFIG=\"{dask.config.serialize(dask.config.global_config)}\"'\n    else:\n        result = await self.connection.run(\"cmd /c ver\")\n        if result.exit_status == 0:\n            set_env = f\"set DASK_INTERNAL_INHERIT_CONFIG={dask.config.serialize(dask.config.global_config)} &&\"\n        else:\n            raise Exception(\n                \"Worker failed to set DASK_INTERNAL_INHERIT_CONFIG variable \"\n            )\n\n    if not self.remote_python:\n        self.remote_python = sys.executable\n\n    cmd = \" \".join(\n        [\n            set_env,\n            self.remote_python,\n            \"-m\",\n            \"distributed.cli.dask_spec\",\n            self.scheduler,\n            \"--spec\",\n            \"'{}'\".format(\n                dumps(\n                    {\n                        i: {\"cls\": self.worker_class, \"opts\": {**self.kwargs}}\n                        for i in range(self.n_workers)\n                    }\n                )\n            ),\n        ]\n    )\n\n    self.proc = await self.connection.create_process(cmd)\n\n    # We watch stderr in order to get the address, then we return\n    started_workers = 0\n    while started_workers < self.n_workers:\n        line = await self.proc.stderr.readline()\n        if not line.strip():\n            raise Exception(\"Worker failed to start\")\n        logger.info(line.strip())\n        if \"worker at\" in line:\n            started_workers += 1\n    logger.debug(\"%s\", line)\n    await super().start()\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/dask/distributed/blob/dc182bda54af488d029f2c40db0893d5f48e69d5/distributed/deploy/ssh.py#L97-L154",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F159"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20asyncssh%20for%20SSH%20file%20transfers%2C%20remote%20worker%20startup%20and%20network%20configuration%20commands&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": "F147"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import asyncio, asyncssh, sys\n\nasync def run_client():\n    async with asyncssh.connect('localhost') as conn:\n        result = await conn.run('echo \"Hello!\"', check=True)\n        print(result.stdout, end='')\n\ntry:\n    asyncio.run(run_client())\nexcept (OSError, asyncssh.Error) as exc:\n    sys.exit('SSH connection failed: ' + str(exc))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://asyncssh.readthedocs.io/en/latest/",
                  "label": [
                    {
                      "t": "text",
                      "text": "latest.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F152"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "sshtunnel",
          "name": [
            {
              "t": "fact",
              "fact": "F162"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pahaz/sshtunnel"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/sshtunnel"
            },
            {
              "label": "Docs",
              "href": "https://sshtunnel.readthedocs.io/en/latest/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F169"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://sshtunnel.readthedocs.io/en/latest/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F162"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/dbcli/pgcli",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F178"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def connect(self, database=\"\", host=\"\", user=\"\", port=\"\", passwd=\"\", dsn=\"\", **kwargs):\n    # Connect to the database.\n\n    if not user:\n        user = getuser()\n\n    if not database:\n        database = user\n\n    kwargs.setdefault(\"application_name\", self.application_name)\n\n    # The resolved value is passed as a connection parameter rather than\n    # merged into the dsn, leaving the user's connection string untouched.\n    timeout = get_connect_timeout(self.connect_timeout, dsn, kwargs, self.default_connect_timeout)\n    if timeout is not None:\n        kwargs[\"connect_timeout\"] = str(timeout)\n\n    # If password prompt is not forced but no password is provided, try\n    # getting it from environment variable.\n    if not self.force_passwd_prompt and not passwd:\n        if dsn:\n            # Check if DSN contains a password - if so, don't use PGPASSWORD\n            parsed_dsn = conninfo_to_dict(dsn)\n            if \"password\" not in parsed_dsn:\n                passwd = os.environ.get(\"PGPASSWORD\", \"\")\n        else:\n            passwd = os.environ.get(\"PGPASSWORD\", \"\")\n\n    # Prompt for a password immediately if requested via the -W flag. This\n    # avoids wasting time trying to connect to the database and catching a\n    # no-password exception.\n    # If we successfully parsed a password from a URI, there's no need to\n    # prompt for it, even with the -W flag\n    if self.force_passwd_prompt and not passwd:\n        passwd = click.prompt(\"Password for %s\" % user, hide_input=True, show_default=False, type=str)\n\n    key = f\"{user}@{host}@{port}\"\n\n    if not passwd and auth.keyring:\n        passwd = auth.keyring_get_password(key)\n\n    def should_ask_for_password(exc):\n        # Prompt for a password after 1st attempt to connect\n        # fails. Don't prompt if the -w flag is supplied\n        if self.never_passwd_prompt:\n            return False\n        error_msg = exc.args[0]\n        if \"no password supplied\" in error_msg:\n            return True\n        if \"password authentication failed\" in error_msg:\n            return True\n        return False\n\n    if dsn:\n        parsed_dsn = conninfo_to_dict(dsn)\n        if \"host\" in parsed_dsn:\n            host = parsed_dsn[\"host\"]\n        if \"port\" in parsed_dsn:\n            port = parsed_dsn[\"port\"]\n\n    if self.dsn_alias and self.dsn_ssh_tunnel_config and not self.ssh_tunnel_url:\n        for dsn_regex, tunnel_url in self.dsn_ssh_tunnel_config.items():\n            if re.search(dsn_regex, self.dsn_alias):\n                self.ssh_tunnel_url = tunnel_url\n                break\n\n    if self.ssh_tunnel_config and not self.ssh_tunnel_url:\n        for db_host_regex, tunnel_url in self.ssh_tunnel_config.items():\n            if re.search(db_host_regex, host):\n                self.ssh_tunnel_url = tunnel_url\n                break\n\n    if self.ssh_tunnel_url:\n        # We add the protocol as urlparse doesn't find it by itself\n        if \"://\" not in self.ssh_tunnel_url:\n            self.ssh_tunnel_url = f\"ssh://{self.ssh_tunnel_url}\"\n\n        tunnel_info = urlparse(self.ssh_tunnel_url)\n        params = {\n            \"local_bind_address\": (\"127.0.0.1\",),\n            \"remote_bind_address\": (host, int(port or 5432)),\n            \"ssh_address_or_host\": (tunnel_info.hostname, tunnel_info.port or 22),\n            \"logger\": self.logger,\n        }\n        if tunnel_info.username:\n            params[\"ssh_username\"] = tunnel_info.username\n        if tunnel_info.password:\n            params[\"ssh_password\"] = tunnel_info.password\n\n        # Hack: sshtunnel adds a console handler to the logger, so we revert handlers.\n        # We can remove this when https://github.com/pahaz/sshtunnel/pull/250 is merged.\n        logger_handlers = self.logger.handlers.copy()\n        try:\n            self.ssh_tunnel = sshtunnel.SSHTunnelForwarder(**params)\n            self.ssh_tunnel.start()\n        except Exception as e:\n            self.logger.handlers = logger_handlers\n            self.logger.error(\"traceback: %r\", traceback.format_exc())\n            click.secho(str(e), err=True, fg=\"red\")\n            sys.exit(1)\n        self.logger.handlers = logger_handlers\n\n        atexit.register(self.ssh_tunnel.stop)\n        # Preserve original host for .pgpass lookup and SSL certificate verification.\n        # Use hostaddr to specify the actual connection endpoint (SSH tunnel).\n        hostaddr = \"127.0.0.1\"\n        port = self.ssh_tunnel.local_bind_ports[0]\n\n        if dsn:\n            dsn = make_conninfo(dsn, host=host, hostaddr=hostaddr, port=port)\n        else:\n            kwargs[\"hostaddr\"] = hostaddr\n\n    # Attempt to connect to the database.\n    # Note that passwd may be empty on the first attempt. If connection\n    # fails because of a missing or incorrect password, but we're allowed to\n    # prompt for a password (no -w flag), prompt for a passwd and try again.\n    try:\n        try:\n            pgexecute = PGExecute(\n                database,\n                user,\n                passwd,\n                host,\n                port,\n                dsn,\n                notify_callback,\n                **kwargs,\n            )\n        except (OperationalError, InterfaceError) as e:\n            if should_ask_for_password(e):\n                passwd = click.prompt(\n                    \"Password for %s\" % user,\n                    hide_input=True,\n                    show_default=False,\n                    type=str,\n                )\n                pgexecute = PGExecute(\n                    database,\n                    user,\n                    passwd,\n                    host,\n                    port,\n                    dsn,\n                    notify_callback,\n                    **kwargs,\n                )\n            else:\n                raise e\n        if passwd and auth.keyring:\n            auth.keyring_set_password(key, passwd)\n\n    except Exception as e:  # Connecting to a database could fail.\n        self.logger.debug(\"Database connection failed: %r.\", e)\n        self.logger.error(\"traceback: %r\", traceback.format_exc())\n        click.secho(str(e), err=True, fg=\"red\")\n        sys.exit(1)\n\n    self.pgexecute = pgexecute\n    self.service_name = None\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/dbcli/pgcli/blob/dc9ce9447e0fc005a347b75b7eb5d541e282b1c1/pgcli/main.py#L749-L908",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F177"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=sshtunnel%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F162"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from sshtunnel import SSHTunnelForwarder\n\nserver = SSHTunnelForwarder(\n    'alfa.8iq.dev',\n    ssh_username=\"pahaz\",\n    ssh_password=\"secret\",\n    remote_bind_address=('127.0.0.1', 8080)\n)\n\nserver.start()\n\nprint(server.local_bind_port)  # show assigned local port\n# work with `SECRET SERVICE` through `server.local_bind_port`.\n\nserver.stop()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/pahaz/sshtunnel/contents/README.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F167"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "fabric",
          "name": [
            {
              "t": "fact",
              "fact": "F180"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/fabric/fabric"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/fabric"
            },
            {
              "label": "Docs",
              "href": "https://docs.fabfile.org/en/latest/getting-started.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F58"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.fabfile.org/en/latest/getting-started.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F180"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F59"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F60"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F61"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F62"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from fabric import Connection\nc = Connection('web1')\nresult = c.run('uname -s')\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.fabfile.org/en/latest/getting-started.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "getting-started.html"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20fabric%20for%20SSH%20file%20transfers%2C%20remote%20worker%20startup%20and%20network%20configuration%20commands&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": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F180"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F185"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "netmiko",
          "name": [
            {
              "t": "fact",
              "fact": "F191"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/ktbyers/netmiko"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/netmiko"
            },
            {
              "label": "Docs",
              "href": "https://ktbyers.github.io/netmiko/docs/netmiko/base_connection.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F75"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://ktbyers.github.io/netmiko/docs/netmiko/base_connection.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F191"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F76"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F77"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F78"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F79"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F80"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F81"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/napalm-automation/napalm",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F204"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@_file_prompt_quiet\ndef _commit_handler(self, cmd):\n    \"\"\"\n    Special handler for hostname change on commit operation. Also handles username removal\n    which prompts for confirmation (username removal prompts for each user...)\n    \"\"\"\n    current_prompt = self.device.find_prompt().strip()\n    terminating_char = current_prompt[-1]\n    # Look for trailing pattern that includes '#' and '>'\n    pattern1 = r\"[>#{}]\\s*$\".format(terminating_char)\n    # Handle special username removal pattern\n    pattern2 = r\".*all username.*confirm\"\n    patterns = rf\"(?:{pattern1}|{pattern2})\"\n    output = self.device.send_command(cmd, expect_string=patterns, read_timeout=90)\n    loop_count = 50\n    new_output = output\n    for _ in range(loop_count):\n        if re.search(pattern2, new_output):\n            # Send confirmation if username removal\n            new_output = self.device.send_command_timing(\n                \"\\n\", strip_prompt=False, strip_command=False\n            )\n            output += new_output\n        else:\n            break\n    # Reset base prompt in case hostname changed\n    self.device.set_base_prompt()\n    return output\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/napalm-automation/napalm/blob/820a06b2069eb1d7b0cbe8943ee2dea6e2949d1a/napalm/ios/ios.py#L463-L490",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F203"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20netmiko%20for%20SSH%20file%20transfers%2C%20remote%20worker%20startup%20and%20network%20configuration%20commands&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": "F191"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from netmiko import ConnectHandler\nfrom getpass import getpass\n\ncisco1 = {\n    \"device_type\": \"cisco_ios\",\n    \"host\": \"cisco1.lasthop.io\",\n    \"username\": \"pyclass\",\n    \"password\": getpass(),\n}\n\nnet_connect = ConnectHandler(**cisco1)\nprint(net_connect.find_prompt())\nnet_connect.disconnect()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/ktbyers/netmiko/contents/EXAMPLES.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "EXAMPLES.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F196"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "sshtwo-python",
          "name": [
            {
              "t": "fact",
              "fact": "F206"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/ParallelSSH/ssh2-python"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/ssh2-python"
            },
            {
              "label": "Docs",
              "href": "https://ssh2-python.readthedocs.io/en/latest/session.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://ssh2-python.readthedocs.io/en/latest/session.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F206"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/ParallelSSH/parallel-ssh",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F222"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _init_session(self, retries=1):\n    self.session = Session()\n    if self.compress:\n        self.session.flag(LIBSSH2_FLAG_COMPRESS)\n\n    if self.timeout:\n        # libssh2 timeout is in ms\n        self.session.set_timeout(self.timeout * 1000)\n    try:\n        if self._auth_thread_pool:\n            THREAD_POOL.apply(self.session.handshake, (self.sock,))\n        else:\n            self.session.handshake(self.sock)\n    except Exception as ex:\n        if retries < self.num_retries:\n            sleep(self.retry_delay)\n            return self._connect_init_session_retry(retries=retries+1)\n        msg = \"Error connecting to host %s:%s - %s\"\n        logger.error(msg, self.host, self.port, ex)\n        if not self.sock.closed:\n            try:\n                self.sock.shutdown(SHUT_RDWR)\n                self.sock.detach()\n            except Exception:\n                pass\n        if isinstance(ex, SSH2Timeout):\n            raise Timeout(msg, self.host, self.port, ex)\n        raise\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/ParallelSSH/parallel-ssh/blob/97a7414236b1186a8b86816a3f981203941fd2f1/pssh/clients/native/single.py#L284-L311",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F221"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=ssh2-python%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F206"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import os\nimport socket\nfrom ssh2.session import Session\nhost = 'localhost'\nuser = os.getlogin()\nsock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\nsock.connect((host, 22))\nsession = Session()\nsession.handshake(sock)\nsession.agent_auth(user)\nchannel = session.open_session()\nchannel.execute('echo me')\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/ParallelSSH/ssh2-python/contents/examples/example_echo.py",
                  "label": [
                    {
                      "t": "text",
                      "text": "example_echo.py"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F211"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "ssh-python",
          "name": [
            {
              "t": "fact",
              "fact": "F224"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/ParallelSSH/ssh-python"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/ssh-python"
            },
            {
              "label": "Docs",
              "href": "https://ssh-python.readthedocs.io/en/latest/session.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F231"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://ssh-python.readthedocs.io/en/latest/session.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F224"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/ParallelSSH/parallel-ssh",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F239"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _init_session(self, retries=1):\n    logger.debug(\"Starting new session for %s@%s:%s\",\n                 self.user, self.host, self.port)\n    self.session = Session()\n    self.session.options_set(options.USER, self.user)\n    self.session.options_set(options.HOST, self.host)\n    if self.compress:\n        self.session.options_set(options.COMPRESSION, \"yes\")\n    self.session.options_set_port(self.port)\n    if self.gssapi_server_identity:\n        self.session.options_set(\n            options.GSSAPI_SERVER_IDENTITY, self.gssapi_server_identity)\n    if self.gssapi_client_identity:\n        self.session.options_set(\n            options.GSSAPI_CLIENT_IDENTITY, self.gssapi_client_identity)\n    if self.gssapi_client_identity or self.gssapi_server_identity:\n        self.session.options_set_gssapi_delegate_credentials(\n            self.gssapi_delegate_credentials)\n    logger.debug(\"Session started, connecting with existing socket\")\n    try:\n        self.session.set_socket(self.sock)\n        self._session_connect()\n    except Exception as ex:\n        if retries < self.num_retries:\n            return self._connect_init_session_retry(retries=retries+1)\n        msg = \"Error connecting to host %s:%s - %s\"\n        logger.error(msg, self.host, self.port, ex)\n        raise ex\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/ParallelSSH/parallel-ssh/blob/97a7414236b1186a8b86816a3f981203941fd2f1/pssh/clients/ssh/single.py#L153-L180",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F238"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=ssh-python%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F224"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import socket\n\nfrom ssh.session import Session\nfrom ssh import options\n\nUSERNAME = 'your-user'\nHOST = 'localhost'\nPORT = 22\n\nsock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\nsock.connect((HOST, PORT))\n\ns = Session()\ns.options_set(options.HOST, HOST)\ns.options_set(options.USER, USERNAME)\ns.options_set_port(PORT)\ns.set_socket(sock)\ns.connect()\n\n# Authenticate with agent\ns.userauth_agent(USERNAME)\n\nchan = s.channel_new()\nchan.open_session()\nchan.request_exec('echo me')\nsize, data = chan.read()\nwhile size > 0:\n    print(data.strip())\n    size, data = chan.read()\nchan.close()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/ParallelSSH/ssh-python/contents/examples/exec.py",
                  "label": [
                    {
                      "t": "text",
                      "text": "exec.py"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F229"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python SSH library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#paramiko",
          "label": [
            {
              "t": "text",
              "text": "Paramiko"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits most scripts, with native Python SSH and SFTP clients. "
        },
        {
          "t": "link",
          "href": "#asyncssh",
          "label": [
            {
              "t": "text",
              "text": "AsyncSSH"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits asyncio code. "
        },
        {
          "t": "link",
          "href": "#fabric",
          "label": [
            {
              "t": "text",
              "text": "Fabric"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits remote commands and file transfers across hosts. "
        },
        {
          "t": "link",
          "href": "#netmiko",
          "label": [
            {
              "t": "text",
              "text": "Netmiko"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits CLI sessions on network devices."
        }
      ]
    },
    {
      "q": "What is Paramiko?",
      "a": [
        {
          "t": "link",
          "href": "#paramiko",
          "label": [
            {
              "t": "text",
              "text": "Paramiko"
            }
          ]
        },
        {
          "t": "text",
          "text": " implements the SSH protocol in Python, with SSH and SFTP client and server building blocks. Fabric and sshtunnel build on it."
        }
      ]
    },
    {
      "q": "What is Netmiko?",
      "a": [
        {
          "t": "link",
          "href": "#netmiko",
          "label": [
            {
              "t": "text",
              "text": "Netmiko"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a multi-vendor library for CLI connections to network devices, with prompt handling and platform-specific commands."
        }
      ]
    },
    {
      "q": "What is Pexpect?",
      "a": [
        {
          "t": "link",
          "href": "#pexpect",
          "label": [
            {
              "t": "text",
              "text": "Pexpect"
            }
          ]
        },
        {
          "t": "text",
          "text": " controls interactive console applications. Its pxssh module drives the system SSH client through a terminal session."
        }
      ]
    },
    {
      "q": "Paramiko vs AsyncSSH: which fits asyncio code?",
      "a": [
        {
          "t": "link",
          "href": "#asyncssh",
          "label": [
            {
              "t": "text",
              "text": "AsyncSSH"
            }
          ]
        },
        {
          "t": "text",
          "text": " implements its client and server on the asyncio framework. "
        },
        {
          "t": "link",
          "href": "#paramiko",
          "label": [
            {
              "t": "text",
              "text": "Paramiko"
            }
          ]
        },
        {
          "t": "text",
          "text": " uses blocking channel reads and writes."
        }
      ]
    },
    {
      "q": "Why does Paramiko reject a previously unseen host?",
      "a": [
        {
          "t": "text",
          "text": "Its default missing-host-key policy rejects an unknown key. Load the trusted host keys before connecting."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, paramiko",
      "display": "Paramiko",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, paramiko",
      "display": "111.1M",
      "asOf": "2026-11-16"
    },
    "F3": {
      "label": "License, paramiko",
      "display": "LGPL-2.1",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, paramiko",
      "display": "5.1.0, Oct 2026",
      "asOf": "2026-10-18"
    },
    "F5": {
      "label": "Package release date, paramiko",
      "display": "Oct 2026",
      "asOf": "2026-10-18"
    },
    "F6": {
      "label": "Repository stars, paramiko",
      "display": "9.9K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "SSH commands, paramiko",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "SFTP transfers, paramiko",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Install, paramiko",
      "display": "pip install paramiko",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "What it does, paramiko",
      "display": "Provides an SSH client for authentication, commands, and SFTP sessions.",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "strengths lead, paramiko",
      "display": "Runs remote SSH commands",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "strengths, paramiko",
      "display": "Execute a command and access its standard input, output and error streams.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, paramiko",
      "display": "Exposes an SFTP client",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, paramiko",
      "display": "Open an SFTP session over the established SSH connection.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "limitations lead, paramiko",
      "display": "Unknown hosts need trusted keys",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "limitations, paramiko",
      "display": "Load trusted host keys before connecting to a new SSH server.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, paramiko",
      "display": "Channel operations need explicit timeouts",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, paramiko",
      "display": "Set timeout to bound blocking channel reads and writes.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "Quickstart, paramiko",
      "display": "from paramiko.client import (\n    AutoAddPolicy,\n    MissingHostKeyPolicy,\n    RejectPolicy,\n    SSHClient,\n    WarningPolicy,\n)\n\nclient = SSHClient()\nclient.load_system_host_keys()\nclient.connect('ssh.example.com')\nstdin, stdout, stderr = client.exec_command('ls -l')\n\n",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Project function, paramiko",
      "display": "def get(self, remote, local=None, preserve_mode=True):\n    # ...\n    # TODO: how does this API change if we want to implement\n    # remote-to-remote file transfer? (Is that even realistic?)\n    # TODO: callback support\n    # TODO: how best to allow changing the behavior/semantics of\n    # remote/local (e.g. users might want 'safer' behavior that complains\n    # instead of overwriting existing files) - this likely ties into the\n    # \"how to handle recursive/rsync\" and \"how to handle scp\" questions\n\n    # Massage remote path\n    if not remote:\n        raise ValueError(\"Remote path must not be empty!\")\n    orig_remote = remote\n    remote = posixpath.join(\n        self.sftp.getcwd() or self.sftp.normalize(\".\"), remote\n    )\n\n    # Massage local path\n    orig_local = local\n    is_file_like = hasattr(local, \"write\") and callable(local.write)\n    remote_filename = posixpath.basename(remote)\n    if not local:\n        local = remote_filename\n    # Path-driven local downloads need interpolation, abspath'ing &\n    # directory creation\n    if not is_file_like:\n        local = local.format(\n            host=self.connection.host,\n            user=self.connection.user,\n            port=self.connection.port,\n            dirname=posixpath.dirname(remote),\n            basename=remote_filename,\n        )\n        # Must treat dir vs file paths differently, lest we erroneously\n        # mkdir what was intended as a filename, and so that non-empty\n        # dir-like paths still get remote filename tacked on.\n        if local.endswith(os.sep):\n            dir_path = local\n            local = os.path.join(local, remote_filename)\n        else:\n            dir_path, _ = os.path.split(local)\n        local = os.path.abspath(local)\n        Path(dir_path).mkdir(parents=True, exist_ok=True)\n        # TODO: reimplement mkdir (or otherwise write a testing function)\n        # allowing us to track what was created so we can revert if\n        # transfer fails.\n        # TODO: Alternately, transfer to temp location and then move, but\n        # that's basically inverse of v1's sudo-put which gets messy\n\n    # Run Paramiko-level .get() (side-effects only. womp.)\n    # TODO: push some of the path handling into Paramiko; it should be\n    # responsible for dealing with path cleaning etc.\n    # TODO: probably preserve warning message from v1 when overwriting\n    # existing files. Use logging for that obviously.\n    #\n    # If local appears to be a file-like object, use sftp.getfo, not get\n    if is_file_like:\n        self.sftp.getfo(remotepath=remote, fl=local)\n    else:\n        self.sftp.get(remotepath=remote, localpath=local)\n        # Set mode to same as remote end\n        # TODO: Push this down into SFTPClient sometime (requires backwards\n        # incompat release.)\n        if preserve_mode:\n            remote_mode = self.sftp.stat(remote).st_mode\n            mode = stat.S_IMODE(remote_mode)\n            os.chmod(local, mode)\n    # Return something useful\n    return Result(\n        orig_remote=orig_remote,\n        remote=remote,\n        orig_local=orig_local,\n        local=local,\n        connection=self.connection,\n    )\n",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project function reference, paramiko",
      "display": "transfer.py · get()",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project repository, paramiko",
      "display": "fabric/fabric",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project stars, fabric/fabric",
      "display": "15.5K",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project push date, fabric/fabric",
      "display": "Apr 2026",
      "asOf": "2026-04-10"
    },
    "F25": {
      "label": "Library name, asyncssh",
      "display": "AsyncSSH",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Monthly downloads, asyncssh",
      "display": "15.5M",
      "asOf": "2026-11-16"
    },
    "F27": {
      "label": "License, asyncssh",
      "display": "EPL-2.0 OR GPL-2.0-or-later",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Package release, asyncssh",
      "display": "2.24.1, Oct 2026",
      "asOf": "2026-10-04"
    },
    "F29": {
      "label": "Package release date, asyncssh",
      "display": "Oct 2026",
      "asOf": "2026-10-04"
    },
    "F30": {
      "label": "Repository stars, asyncssh",
      "display": "1.8K",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "SSH commands, asyncssh",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "SFTP transfers, asyncssh",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Jump hosts, asyncssh",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Install, asyncssh",
      "display": "pip install asyncssh",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "What it does, asyncssh",
      "display": "Implements asynchronous SSH clients and servers on asyncio.",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "strengths lead, asyncssh",
      "display": "Fits asyncio applications",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "strengths, asyncssh",
      "display": "Await SSH operations within an existing asyncio application.",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths lead, asyncssh",
      "display": "Connects through existing SSH sessions",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths, asyncssh",
      "display": "Use a connection tunnel to reach hosts behind an SSH gateway.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "limitations lead, asyncssh",
      "display": "Hardware keys need another package",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "limitations, asyncssh",
      "display": "Install fido2 for compatible hardware security-key authentication.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "Quickstart, asyncssh",
      "display": "import asyncio, asyncssh, sys\n\nasync def run_client():\n    async with asyncssh.connect('localhost') as conn:\n        result = await conn.run('echo \"Hello!\"', check=True)\n        print(result.stdout, end='')\n\ntry:\n    asyncio.get_event_loop().run_until_complete(run_client())\nexcept (OSError, asyncssh.Error) as exc:\n    sys.exit('SSH connection failed: ' + str(exc))\n\n",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "Project function, asyncssh",
      "display": "async def start(self):\n    try:\n        import asyncssh  # import now to avoid adding to module startup time\n    except ImportError:\n        raise ImportError(\n            \"Dask's SSHCluster requires the `asyncssh` package to be installed. \"\n            \"Please install it using pip or conda.\"\n        )\n\n    self.connection = await asyncssh.connect(self.address, **self.connect_options)\n\n    result = await self.connection.run(\"uname\")\n    if result.exit_status == 0:\n        set_env = f'env DASK_INTERNAL_INHERIT_CONFIG=\"{dask.config.serialize(dask.config.global_config)}\"'\n    else:\n        result = await self.connection.run(\"cmd /c ver\")\n        if result.exit_status == 0:\n            set_env = f\"set DASK_INTERNAL_INHERIT_CONFIG={dask.config.serialize(dask.config.global_config)} &&\"\n        else:\n            raise Exception(\n                \"Worker failed to set DASK_INTERNAL_INHERIT_CONFIG variable \"\n            )\n\n    if not self.remote_python:\n        self.remote_python = sys.executable\n\n    cmd = \" \".join(\n        [\n            set_env,\n            self.remote_python,\n            \"-m\",\n            \"distributed.cli.dask_spec\",\n            self.scheduler,\n            \"--spec\",\n            \"'{}'\".format(\n                dumps(\n                    {\n                        i: {\"cls\": self.worker_class, \"opts\": {**self.kwargs}}\n                        for i in range(self.n_workers)\n                    }\n                )\n            ),\n        ]\n    )\n\n    self.proc = await self.connection.create_process(cmd)\n\n    # We watch stderr in order to get the address, then we return\n    started_workers = 0\n    while started_workers < self.n_workers:\n        line = await self.proc.stderr.readline()\n        if not line.strip():\n            raise Exception(\"Worker failed to start\")\n        logger.info(line.strip())\n        if \"worker at\" in line:\n            started_workers += 1\n    logger.debug(\"%s\", line)\n    await super().start()\n",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "Project function reference, asyncssh",
      "display": "ssh.py · start()",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Project repository, asyncssh",
      "display": "dask/distributed",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Project stars, dask/distributed",
      "display": "1.7K",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project push date, dask/distributed",
      "display": "Nov 2026",
      "asOf": "2026-11-15"
    },
    "F48": {
      "label": "Library name, fabric",
      "display": "Fabric",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Monthly downloads, fabric",
      "display": "7.7M",
      "asOf": "2026-11-16"
    },
    "F50": {
      "label": "License, fabric",
      "display": "BSD",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Package release, fabric",
      "display": "3.2.3, Apr 2026",
      "asOf": "2026-04-06"
    },
    "F52": {
      "label": "Package release date, fabric",
      "display": "Apr 2026",
      "asOf": "2026-04-06"
    },
    "F53": {
      "label": "Repository stars, fabric",
      "display": "15.5K",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "SSH commands, fabric",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "SFTP transfers, fabric",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Jump hosts, fabric",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Install, fabric",
      "display": "pip install fabric",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "What it does, fabric",
      "display": "Runs shell commands remotely over SSH.",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "strengths lead, fabric",
      "display": "Captures remote command results",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "strengths, fabric",
      "display": "Inspect captured output, exit status, and success through the returned result.",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "strengths lead, fabric",
      "display": "Includes SSH gateway configuration",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "strengths, fabric",
      "display": "Use ProxyJump-style connections or ProxyCommand-style gateways.",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "limitations lead, fabric",
      "display": "Connections need explicit cleanup",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "limitations, fabric",
      "display": "Close connections or use a context manager to avoid shutdown hangs.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "Quickstart, fabric",
      "display": "from fabric import Connection\nc = Connection('web1')\nresult = c.run('uname -s')\nresult.stdout.strip() == 'Linux'\nresult.exited\nresult.ok\nresult.command\nresult.connection\nresult.connection.host\n",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "Library name, netmiko",
      "display": "Netmiko",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "Monthly downloads, netmiko",
      "display": "934.3K",
      "asOf": "2026-11-16"
    },
    "F68": {
      "label": "License, netmiko",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "Package release, netmiko",
      "display": "4.8.0, Sep 2026",
      "asOf": "2026-09-21"
    },
    "F70": {
      "label": "Package release date, netmiko",
      "display": "Sep 2026",
      "asOf": "2026-09-21"
    },
    "F71": {
      "label": "Repository stars, netmiko",
      "display": "4.3K",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "SSH commands, netmiko",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Jump hosts, netmiko",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Install, netmiko",
      "display": "pip install netmiko",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "What it does, netmiko",
      "display": "Simplifies command-line connections to network devices from multiple vendors.",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "strengths lead, netmiko",
      "display": "Targets network-device command lines",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "strengths, netmiko",
      "display": "Select a device driver suited to the target network platform.",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "strengths lead, netmiko",
      "display": "Sends network configuration commands",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "strengths, netmiko",
      "display": "Apply a list of configuration commands through send_config_set.",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "limitations lead, netmiko",
      "display": "Device profiles must match hardware",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "limitations, netmiko",
      "display": "Set device_type to a supported platform before connecting.",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Quickstart, netmiko",
      "display": "from netmiko import ConnectHandler\nfrom getpass import getpass\n\ncisco1 = {\n    \"device_type\": \"cisco_ios\",\n    \"host\": \"cisco1.lasthop.io\",\n    \"username\": \"pyclass\",\n    \"password\": getpass(),\n}\n\n# Show command that we execute.\ncommand = \"show ip int brief\"\n\nwith ConnectHandler(**cisco1) as net_connect:\n    output = net_connect.send_command(command)\n\n# Automatically cleans-up the output so that only the show output is returned\nprint()\nprint(output)\nprint()\n",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Project function, netmiko",
      "display": "@_file_prompt_quiet\ndef _commit_handler(self, cmd):\n    # ...\n    current_prompt = self.device.find_prompt().strip()\n    terminating_char = current_prompt[-1]\n    # Look for trailing pattern that includes '#' and '>'\n    pattern1 = r\"[>#{}]\\s*$\".format(terminating_char)\n    # Handle special username removal pattern\n    pattern2 = r\".*all username.*confirm\"\n    patterns = rf\"(?:{pattern1}|{pattern2})\"\n    output = self.device.send_command(cmd, expect_string=patterns, read_timeout=90)\n    loop_count = 50\n    new_output = output\n    for _ in range(loop_count):\n        if re.search(pattern2, new_output):\n            # Send confirmation if username removal\n            new_output = self.device.send_command_timing(\n                \"\\n\", strip_prompt=False, strip_command=False\n            )\n            output += new_output\n        else:\n            break\n    # Reset base prompt in case hostname changed\n    self.device.set_base_prompt()\n    return output\n",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Project function reference, netmiko",
      "display": "ios.py · _commit_handler()",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Project repository, netmiko",
      "display": "napalm-automation/napalm",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Project stars, napalm-automation/napalm",
      "display": "2.5K",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Project push date, napalm-automation/napalm",
      "display": "Aug 2026",
      "asOf": "2026-08-12"
    },
    "F88": {
      "label": "Developer need",
      "display": "Direct SSH commands and SFTP",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "Why choose paramiko",
      "display": "direct remote-command execution",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "Developer need in introduction",
      "display": "direct SSH commands and SFTP",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "Developer need",
      "display": "Native asyncio SSH workflows",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "Why choose asyncssh",
      "display": "an asyncio-native client and server",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "Developer need in introduction",
      "display": "native asyncio SSH workflows",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "When to consider fabric",
      "display": "a script mainly needs captured remote command results",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Developer need",
      "display": "Remote command-result handling",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Why choose fabric",
      "display": "captured remote command results",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Developer need in introduction",
      "display": "remote command-result handling",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "When to consider paramiko",
      "display": "the script needs direct access to SFTP sessions",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Developer need",
      "display": "Network-device configuration",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Why choose netmiko",
      "display": "network configuration command lists",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need in introduction",
      "display": "network-device configuration",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Page introduction",
      "display": "Python SSH libraries let application developers connect to remote systems using SSH.",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "FAQ: What is the best Python SSH library?",
      "display": "Paramiko exposes SSH command and SFTP session APIs.",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "FAQ: What is the best Python SSH library?",
      "display": "AsyncSSH implements SSH clients and servers on asyncio.",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "FAQ: What is the best Python SSH library?",
      "display": "Fabric focuses on remote command execution and captured results.",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "FAQ: What is the best Python SSH library?",
      "display": "Netmiko targets multi-vendor network-device command lines.",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "FAQ: Paramiko vs AsyncSSH: which fits asyncio code?",
      "display": "AsyncSSH implements its client and server on the asyncio framework.",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "FAQ: Can Python SSH clients connect through a jump host?",
      "display": "AsyncSSH can tunnel a new connection through an existing connection or a specified gateway.",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "FAQ: Can Python SSH clients connect through a jump host?",
      "display": "Fabric supports ProxyJump-style and ProxyCommand-style gateways.",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "FAQ: Can Python SSH clients connect through a jump host?",
      "display": "Netmiko’s maintainer documents proxying through an intermediate SSH server.",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "FAQ: Why does Paramiko reject a previously unseen host?",
      "display": "The default missing-host-key policy rejects an unknown key; load the intended trusted keys before connecting.",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "FAQ: Do Python SSH timeouts bound all remote work?",
      "display": "Paramiko channel timeouts apply to blocking channel read and write operations, rather than defining a whole-workflow deadline.",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "FAQ: Why can an SSH script hang when it finishes?",
      "display": "Fabric and Paramiko warn that relying on automatic connection cleanup can cause end-of-process hangs.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "Library name, pexpect",
      "display": "Pexpect",
      "asOf": "2026-11-20"
    },
    "F115": {
      "label": "Monthly downloads, pexpect",
      "display": "137.7M",
      "asOf": "2026-11-20"
    },
    "F116": {
      "label": "License, pexpect",
      "display": "ISC license",
      "asOf": "2026-11-20"
    },
    "F117": {
      "label": "Package release, pexpect",
      "display": "4.9.0",
      "asOf": "2026-11-20"
    },
    "F118": {
      "label": "Package release date, pexpect",
      "display": "Nov 2023",
      "asOf": "2026-11-20"
    },
    "F119": {
      "label": "Install, pexpect",
      "display": "pip install pexpect",
      "asOf": "2026-11-20"
    },
    "F120": {
      "label": "Quickstart, pexpect",
      "display": "from pexpect import pxssh\ns = pxssh.pxssh()\ns.login(hostname, username, password)\ns.sendline('uptime')   # run a command\ns.prompt()             # match the prompt\nprint(s.before)        # print everything before the prompt.\ns.logout()\n",
      "asOf": "2026-11-20"
    },
    "F121": {
      "label": "Official description, pexpect",
      "display": "Controls interactive console applications.",
      "asOf": "2026-11-20"
    },
    "F122": {
      "label": "Quickstart source file, pexpect",
      "display": "pexpect/pxssh.py",
      "asOf": "2026-11-20"
    },
    "F123": {
      "label": "Repository stars, pexpect",
      "display": "2.9K",
      "asOf": "2026-11-20"
    },
    "F124": {
      "label": "Asyncio SSH sessions, pexpect",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F125": {
      "label": "SFTP file API, pexpect",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F126": {
      "label": "SSH integration role, pexpect",
      "display": "Dedicated pxssh session API drives the system SSH CLI/PTY, alongside generic interactive-process features; the package counter includes many non-SSH tasks.",
      "asOf": "2026-11-20"
    },
    "F127": {
      "label": "Process async versus SSH async, pexpect",
      "display": "Pexpect supports async waiting on process output, while the documented pxssh login/session workflow drives a system SSH command and synchronizes a shell prompt.",
      "asOf": "2026-11-20"
    },
    "F128": {
      "label": "Project function, pexpect",
      "display": "def _get_arp_data(self) -> str | None:\n    \"\"\"Open connection to the router and get arp entries.\"\"\"\n\n    try:\n        cisco_ssh: pxssh.pxssh[str] = pxssh.pxssh(encoding=\"utf-8\")\n        cisco_ssh.login(\n            self.host,\n            self.username,\n            self.password,\n            port=self.port,\n            auto_prompt_reset=False,\n        )\n\n        # Find the hostname\n        initial_line = (cisco_ssh.before or \"\").splitlines()\n        router_hostname = initial_line[len(initial_line) - 1]\n        router_hostname += \"#\"\n        # Set the discovered hostname as prompt\n        cisco_ssh.PROMPT = f\"(?i)^{router_hostname}\"\n        # Allow full arp table to print at once\n        cisco_ssh.sendline(\"terminal length 0\")\n        cisco_ssh.prompt(1)\n\n        cisco_ssh.sendline(\"show ip arp\")\n        cisco_ssh.prompt(1)\n\n    except pxssh.ExceptionPxssh as px_e:\n        _LOGGER.error(\"Failed to login via pxssh: %s\", px_e)\n        return None\n\n    return cisco_ssh.before\n",
      "asOf": "2026-11-20"
    },
    "F129": {
      "label": "Project source file, pexpect",
      "display": "homeassistant/components/cisco_ios/device_tracker.py",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "Project full_name, pexpect",
      "display": "home-assistant/core",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "Project stargazers_count, pexpect",
      "display": "92.3K",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Library name, paramiko",
      "display": "Paramiko",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Monthly downloads, paramiko",
      "display": "111.1M",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "License, paramiko",
      "display": "LGPL-2.1",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Package release, paramiko",
      "display": "5.1.0",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Package release date, paramiko",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Install, paramiko",
      "display": "pip install paramiko",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Quickstart, paramiko",
      "display": "from paramiko.client import (\n    AutoAddPolicy,\n    MissingHostKeyPolicy,\n    RejectPolicy,\n    SSHClient,\n    WarningPolicy,\n)\n\nclient = SSHClient()\nclient.load_system_host_keys()\nclient.connect('ssh.example.com')\nstdin, stdout, stderr = client.exec_command('ls -l')\n",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Repository stars, paramiko",
      "display": "9.9K",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Asyncio SSH sessions, paramiko",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "SFTP file API, paramiko",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "SSH integration role, paramiko",
      "display": "Native Python SSH/SFTP client and server building blocks, also used underneath Fabric/Netmiko/tunneling libraries.",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Project function, paramiko",
      "display": "def get(self, remote, local=None, preserve_mode=True):\n    \"\"\"\n    Copy a file from wrapped connection's host to the local filesystem.\n\n    :param str remote:\n        Remote file to download.\n\n        May be absolute, or relative to the remote working directory.\n\n        .. note::\n            Most SFTP servers set the remote working directory to the\n            connecting user's home directory, and (unlike most shells) do\n            *not* expand tildes (``~``).\n\n            For example, instead of saying ``get(\"~/tmp/archive.tgz\")``,\n            say ``get(\"tmp/archive.tgz\")``.\n\n    :param local:\n        Local path to store downloaded file in, or a file-like object.\n\n        **If None or another 'falsey'/empty value is given** (the default),\n        the remote file is downloaded to the current working directory (as\n        seen by `os.getcwd`) using its remote filename. (This is equivalent\n        to giving ``\"{basename}\"``; see the below subsection on\n        interpolation.)\n\n        **If a string is given**, it should be a path to a local directory\n        or file and is subject to similar behavior as that seen by common\n        Unix utilities or OpenSSH's ``sftp`` or ``scp`` tools.\n\n        For example, if the local path is a directory, the remote path's\n        base filename will be added onto it (so ``get('foo/bar/file.txt',\n        '/tmp/')`` would result in creation or overwriting of\n        ``/tmp/file.txt``).\n\n        This path will be **interpolated** with some useful parameters,\n        using `str.format`:\n\n        - The `.Connection` object's ``host``, ``user`` and ``port``\n          attributes.\n        - The ``basename`` and ``dirname`` of the ``remote`` path, as\n          derived by `os.path` (specifically, its ``posixpath`` flavor, so\n          that the resulting values are useful on remote POSIX-compatible\n          SFTP servers even if the local client is Windows).\n        - Thus, for example, ``\"/some/path/{user}@{host}/{basename}\"`` will\n          yield different local paths depending on the properties of both\n          the connection and the remote path.\n\n        .. note::\n            If nonexistent directories are present in this path (including\n            the final path component, if it ends in `os.sep`) they will be\n            created automatically using `os.makedirs`.\n\n        **If a file-like object is given**, the contents of the remote file\n        are simply written into it.\n\n    :param bool preserve_mode:\n        Whether to `os.chmod` the local file so it matches the remote\n        file's mode (default: ``True``).\n\n    :returns: A `.Result` object.\n\n    .. versionadded:: 2.0\n    .. versionchanged:: 2.6\n        Added ``local`` path interpolation of connection & remote file\n        attributes.\n    .. versionchanged:: 2.6\n        Create missing ``local`` directories automatically.\n    \"\"\"\n    # TODO: how does this API change if we want to implement\n    # remote-to-remote file transfer? (Is that even realistic?)\n    # TODO: callback support\n    # TODO: how best to allow changing the behavior/semantics of\n    # remote/local (e.g. users might want 'safer' behavior that complains\n    # instead of overwriting existing files) - this likely ties into the\n    # \"how to handle recursive/rsync\" and \"how to handle scp\" questions\n\n    # Massage remote path\n    if not remote:\n        raise ValueError(\"Remote path must not be empty!\")\n    orig_remote = remote\n    remote = posixpath.join(\n        self.sftp.getcwd() or self.sftp.normalize(\".\"), remote\n    )\n\n    # Massage local path\n    orig_local = local\n    is_file_like = hasattr(local, \"write\") and callable(local.write)\n    remote_filename = posixpath.basename(remote)\n    if not local:\n        local = remote_filename\n    # Path-driven local downloads need interpolation, abspath'ing &\n    # directory creation\n    if not is_file_like:\n        local = local.format(\n            host=self.connection.host,\n            user=self.connection.user,\n            port=self.connection.port,\n            dirname=posixpath.dirname(remote),\n            basename=remote_filename,\n        )\n        # Must treat dir vs file paths differently, lest we erroneously\n        # mkdir what was intended as a filename, and so that non-empty\n        # dir-like paths still get remote filename tacked on.\n        if local.endswith(os.sep):\n            dir_path = local\n            local = os.path.join(local, remote_filename)\n        else:\n            dir_path, _ = os.path.split(local)\n        local = os.path.abspath(local)\n        Path(dir_path).mkdir(parents=True, exist_ok=True)\n        # TODO: reimplement mkdir (or otherwise write a testing function)\n        # allowing us to track what was created so we can revert if\n        # transfer fails.\n        # TODO: Alternately, transfer to temp location and then move, but\n        # that's basically inverse of v1's sudo-put which gets messy\n\n    # Run Paramiko-level .get() (side-effects only. womp.)\n    # TODO: push some of the path handling into Paramiko; it should be\n    # responsible for dealing with path cleaning etc.\n    # TODO: probably preserve warning message from v1 when overwriting\n    # existing files. Use logging for that obviously.\n    #\n    # If local appears to be a file-like object, use sftp.getfo, not get\n    if is_file_like:\n        self.sftp.getfo(remotepath=remote, fl=local)\n    else:\n        self.sftp.get(remotepath=remote, localpath=local)\n        # Set mode to same as remote end\n        # TODO: Push this down into SFTPClient sometime (requires backwards\n        # incompat release.)\n        if preserve_mode:\n            remote_mode = self.sftp.stat(remote).st_mode\n            mode = stat.S_IMODE(remote_mode)\n            os.chmod(local, mode)\n    # Return something useful\n    return Result(\n        orig_remote=orig_remote,\n        remote=remote,\n        orig_local=orig_local,\n        local=local,\n        connection=self.connection,\n    )\n",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Project source file, paramiko",
      "display": "fabric/transfer.py",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Project full_name, paramiko",
      "display": "fabric/fabric",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Project stargazers_count, paramiko",
      "display": "15.5K",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Library name, asyncssh",
      "display": "AsyncSSH",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Monthly downloads, asyncssh",
      "display": "16.3M",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "License, asyncssh",
      "display": "EPL-2.0 OR GPL-2.0-or-later",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Package release, asyncssh",
      "display": "2.24.1",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Package release date, asyncssh",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Install, asyncssh",
      "display": "pip install asyncssh",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Quickstart, asyncssh",
      "display": "import asyncio, asyncssh, sys\n\nasync def run_client():\n    async with asyncssh.connect('localhost') as conn:\n        result = await conn.run('echo \"Hello!\"', check=True)\n        print(result.stdout, end='')\n\ntry:\n    asyncio.run(run_client())\nexcept (OSError, asyncssh.Error) as exc:\n    sys.exit('SSH connection failed: ' + str(exc))\n",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Repository stars, asyncssh",
      "display": "1.8K",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Asyncio SSH sessions, asyncssh",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "SFTP file API, asyncssh",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "SSH integration role, asyncssh",
      "display": "Native asyncio SSH connections/processes/SFTP with coroutine/context-manager APIs.",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Project function, asyncssh",
      "display": "async def start(self):\n    try:\n        import asyncssh  # import now to avoid adding to module startup time\n    except ImportError:\n        raise ImportError(\n            \"Dask's SSHCluster requires the `asyncssh` package to be installed. \"\n            \"Please install it using pip or conda.\"\n        )\n\n    self.connection = await asyncssh.connect(self.address, **self.connect_options)\n\n    result = await self.connection.run(\"uname\")\n    if result.exit_status == 0:\n        set_env = f'env DASK_INTERNAL_INHERIT_CONFIG=\"{dask.config.serialize(dask.config.global_config)}\"'\n    else:\n        result = await self.connection.run(\"cmd /c ver\")\n        if result.exit_status == 0:\n            set_env = f\"set DASK_INTERNAL_INHERIT_CONFIG={dask.config.serialize(dask.config.global_config)} &&\"\n        else:\n            raise Exception(\n                \"Worker failed to set DASK_INTERNAL_INHERIT_CONFIG variable \"\n            )\n\n    if not self.remote_python:\n        self.remote_python = sys.executable\n\n    cmd = \" \".join(\n        [\n            set_env,\n            self.remote_python,\n            \"-m\",\n            \"distributed.cli.dask_spec\",\n            self.scheduler,\n            \"--spec\",\n            \"'{}'\".format(\n                dumps(\n                    {\n                        i: {\"cls\": self.worker_class, \"opts\": {**self.kwargs}}\n                        for i in range(self.n_workers)\n                    }\n                )\n            ),\n        ]\n    )\n\n    self.proc = await self.connection.create_process(cmd)\n\n    # We watch stderr in order to get the address, then we return\n    started_workers = 0\n    while started_workers < self.n_workers:\n        line = await self.proc.stderr.readline()\n        if not line.strip():\n            raise Exception(\"Worker failed to start\")\n        logger.info(line.strip())\n        if \"worker at\" in line:\n            started_workers += 1\n    logger.debug(\"%s\", line)\n    await super().start()\n",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Project source file, asyncssh",
      "display": "distributed/deploy/ssh.py",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Project full_name, asyncssh",
      "display": "dask/distributed",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Project stargazers_count, asyncssh",
      "display": "1.7K",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Library name, sshtunnel",
      "display": "sshtunnel",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Monthly downloads, sshtunnel",
      "display": "14.7M",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "License, sshtunnel",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Package release, sshtunnel",
      "display": "0.5.1",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Package release date, sshtunnel",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Install, sshtunnel",
      "display": "pip install sshtunnel",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Quickstart, sshtunnel",
      "display": "from sshtunnel import SSHTunnelForwarder\n\nserver = SSHTunnelForwarder(\n    'alfa.8iq.dev',\n    ssh_username=\"pahaz\",\n    ssh_password=\"secret\",\n    remote_bind_address=('127.0.0.1', 8080)\n)\n\nserver.start()\n\nprint(server.local_bind_port)  # show assigned local port\n# work with `SECRET SERVICE` through `server.local_bind_port`.\n\nserver.stop()\n",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Official description, sshtunnel",
      "display": "Opens SSH tunnels in pure Python.",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Quickstart source file, sshtunnel",
      "display": "README.rst",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Repository stars, sshtunnel",
      "display": "1.3K",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Asyncio SSH sessions, sshtunnel",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "SFTP file API, sshtunnel",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "SSH integration role, sshtunnel",
      "display": "SSH local TCP forwarding around Paramiko; not a shell-command or SFTP client facade.",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Context-manager lifecycle, sshtunnel",
      "display": "The documented with context starts and stops the tunnel; explicit start/stop is an alternative.",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Project function, sshtunnel",
      "display": "def connect(self, database=\"\", host=\"\", user=\"\", port=\"\", passwd=\"\", dsn=\"\", **kwargs):\n    # Connect to the database.\n\n    if not user:\n        user = getuser()\n\n    if not database:\n        database = user\n\n    kwargs.setdefault(\"application_name\", self.application_name)\n\n    # The resolved value is passed as a connection parameter rather than\n    # merged into the dsn, leaving the user's connection string untouched.\n    timeout = get_connect_timeout(self.connect_timeout, dsn, kwargs, self.default_connect_timeout)\n    if timeout is not None:\n        kwargs[\"connect_timeout\"] = str(timeout)\n\n    # If password prompt is not forced but no password is provided, try\n    # getting it from environment variable.\n    if not self.force_passwd_prompt and not passwd:\n        if dsn:\n            # Check if DSN contains a password - if so, don't use PGPASSWORD\n            parsed_dsn = conninfo_to_dict(dsn)\n            if \"password\" not in parsed_dsn:\n                passwd = os.environ.get(\"PGPASSWORD\", \"\")\n        else:\n            passwd = os.environ.get(\"PGPASSWORD\", \"\")\n\n    # Prompt for a password immediately if requested via the -W flag. This\n    # avoids wasting time trying to connect to the database and catching a\n    # no-password exception.\n    # If we successfully parsed a password from a URI, there's no need to\n    # prompt for it, even with the -W flag\n    if self.force_passwd_prompt and not passwd:\n        passwd = click.prompt(\"Password for %s\" % user, hide_input=True, show_default=False, type=str)\n\n    key = f\"{user}@{host}@{port}\"\n\n    if not passwd and auth.keyring:\n        passwd = auth.keyring_get_password(key)\n\n    def should_ask_for_password(exc):\n        # Prompt for a password after 1st attempt to connect\n        # fails. Don't prompt if the -w flag is supplied\n        if self.never_passwd_prompt:\n            return False\n        error_msg = exc.args[0]\n        if \"no password supplied\" in error_msg:\n            return True\n        if \"password authentication failed\" in error_msg:\n            return True\n        return False\n\n    if dsn:\n        parsed_dsn = conninfo_to_dict(dsn)\n        if \"host\" in parsed_dsn:\n            host = parsed_dsn[\"host\"]\n        if \"port\" in parsed_dsn:\n            port = parsed_dsn[\"port\"]\n\n    if self.dsn_alias and self.dsn_ssh_tunnel_config and not self.ssh_tunnel_url:\n        for dsn_regex, tunnel_url in self.dsn_ssh_tunnel_config.items():\n            if re.search(dsn_regex, self.dsn_alias):\n                self.ssh_tunnel_url = tunnel_url\n                break\n\n    if self.ssh_tunnel_config and not self.ssh_tunnel_url:\n        for db_host_regex, tunnel_url in self.ssh_tunnel_config.items():\n            if re.search(db_host_regex, host):\n                self.ssh_tunnel_url = tunnel_url\n                break\n\n    if self.ssh_tunnel_url:\n        # We add the protocol as urlparse doesn't find it by itself\n        if \"://\" not in self.ssh_tunnel_url:\n            self.ssh_tunnel_url = f\"ssh://{self.ssh_tunnel_url}\"\n\n        tunnel_info = urlparse(self.ssh_tunnel_url)\n        params = {\n            \"local_bind_address\": (\"127.0.0.1\",),\n            \"remote_bind_address\": (host, int(port or 5432)),\n            \"ssh_address_or_host\": (tunnel_info.hostname, tunnel_info.port or 22),\n            \"logger\": self.logger,\n        }\n        if tunnel_info.username:\n            params[\"ssh_username\"] = tunnel_info.username\n        if tunnel_info.password:\n            params[\"ssh_password\"] = tunnel_info.password\n\n        # Hack: sshtunnel adds a console handler to the logger, so we revert handlers.\n        # We can remove this when https://github.com/pahaz/sshtunnel/pull/250 is merged.\n        logger_handlers = self.logger.handlers.copy()\n        try:\n            self.ssh_tunnel = sshtunnel.SSHTunnelForwarder(**params)\n            self.ssh_tunnel.start()\n        except Exception as e:\n            self.logger.handlers = logger_handlers\n            self.logger.error(\"traceback: %r\", traceback.format_exc())\n            click.secho(str(e), err=True, fg=\"red\")\n            sys.exit(1)\n        self.logger.handlers = logger_handlers\n\n        atexit.register(self.ssh_tunnel.stop)\n        # Preserve original host for .pgpass lookup and SSL certificate verification.\n        # Use hostaddr to specify the actual connection endpoint (SSH tunnel).\n        hostaddr = \"127.0.0.1\"\n        port = self.ssh_tunnel.local_bind_ports[0]\n\n        if dsn:\n            dsn = make_conninfo(dsn, host=host, hostaddr=hostaddr, port=port)\n        else:\n            kwargs[\"hostaddr\"] = hostaddr\n\n    # Attempt to connect to the database.\n    # Note that passwd may be empty on the first attempt. If connection\n    # fails because of a missing or incorrect password, but we're allowed to\n    # prompt for a password (no -w flag), prompt for a passwd and try again.\n    try:\n        try:\n            pgexecute = PGExecute(\n                database,\n                user,\n                passwd,\n                host,\n                port,\n                dsn,\n                notify_callback,\n                **kwargs,\n            )\n        except (OperationalError, InterfaceError) as e:\n            if should_ask_for_password(e):\n                passwd = click.prompt(\n                    \"Password for %s\" % user,\n                    hide_input=True,\n                    show_default=False,\n                    type=str,\n                )\n                pgexecute = PGExecute(\n                    database,\n                    user,\n                    passwd,\n                    host,\n                    port,\n                    dsn,\n                    notify_callback,\n                    **kwargs,\n                )\n            else:\n                raise e\n        if passwd and auth.keyring:\n            auth.keyring_set_password(key, passwd)\n\n    except Exception as e:  # Connecting to a database could fail.\n        self.logger.debug(\"Database connection failed: %r.\", e)\n        self.logger.error(\"traceback: %r\", traceback.format_exc())\n        click.secho(str(e), err=True, fg=\"red\")\n        sys.exit(1)\n\n    self.pgexecute = pgexecute\n    self.service_name = None\n",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Project source file, sshtunnel",
      "display": "pgcli/main.py",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Project full_name, sshtunnel",
      "display": "dbcli/pgcli",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Project stargazers_count, sshtunnel",
      "display": "13.5K",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Library name, fabric",
      "display": "Fabric",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Monthly downloads, fabric",
      "display": "7.9M",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "License, fabric",
      "display": "BSD-2-Clause",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Package release, fabric",
      "display": "3.2.3",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Package release date, fabric",
      "display": "Apr 2026",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Install, fabric",
      "display": "pip install fabric",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Quickstart, fabric",
      "display": "from fabric import Connection\nc = Connection('web1')\nresult = c.run('uname -s')\n",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Repository stars, fabric",
      "display": "15.5K",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Asyncio SSH sessions, fabric",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "SFTP file API, fabric",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "SSH integration role, fabric",
      "display": "High-level remote command/task/file-transfer orchestration over Invoke and Paramiko.",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Library name, netmiko",
      "display": "Netmiko",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Monthly downloads, netmiko",
      "display": "967.5K",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "License, netmiko",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Package release, netmiko",
      "display": "4.8.0",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Package release date, netmiko",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Install, netmiko",
      "display": "pip install netmiko",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Quickstart, netmiko",
      "display": "from netmiko import ConnectHandler\nfrom getpass import getpass\n\ncisco1 = {\n    \"device_type\": \"cisco_ios\",\n    \"host\": \"cisco1.lasthop.io\",\n    \"username\": \"pyclass\",\n    \"password\": getpass(),\n}\n\nnet_connect = ConnectHandler(**cisco1)\nprint(net_connect.find_prompt())\nnet_connect.disconnect()\n",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Repository stars, netmiko",
      "display": "4.3K",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Asyncio SSH sessions, netmiko",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "SFTP file API, netmiko",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "SSH integration role, netmiko",
      "display": "Network-device CLI sessions with prompt handling and platform-specific command/configuration workflows; SCP transfer is distinct from SFTP.",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Project function, netmiko",
      "display": "@_file_prompt_quiet\ndef _commit_handler(self, cmd):\n    \"\"\"\n    Special handler for hostname change on commit operation. Also handles username removal\n    which prompts for confirmation (username removal prompts for each user...)\n    \"\"\"\n    current_prompt = self.device.find_prompt().strip()\n    terminating_char = current_prompt[-1]\n    # Look for trailing pattern that includes '#' and '>'\n    pattern1 = r\"[>#{}]\\s*$\".format(terminating_char)\n    # Handle special username removal pattern\n    pattern2 = r\".*all username.*confirm\"\n    patterns = rf\"(?:{pattern1}|{pattern2})\"\n    output = self.device.send_command(cmd, expect_string=patterns, read_timeout=90)\n    loop_count = 50\n    new_output = output\n    for _ in range(loop_count):\n        if re.search(pattern2, new_output):\n            # Send confirmation if username removal\n            new_output = self.device.send_command_timing(\n                \"\\n\", strip_prompt=False, strip_command=False\n            )\n            output += new_output\n        else:\n            break\n    # Reset base prompt in case hostname changed\n    self.device.set_base_prompt()\n    return output\n",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Project source file, netmiko",
      "display": "napalm/ios/ios.py",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Project full_name, netmiko",
      "display": "napalm-automation/napalm",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Project stargazers_count, netmiko",
      "display": "2.5K",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Library name, ssh2-python",
      "display": "ssh2-python",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Monthly downloads, ssh2-python",
      "display": "297.4K",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "License, ssh2-python",
      "display": "LGPL-2.1-only",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Package release, ssh2-python",
      "display": "1.2.0.post1",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Package release date, ssh2-python",
      "display": "Oct 2025",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Install, ssh2-python",
      "display": "pip install ssh2-python",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Quickstart, ssh2-python",
      "display": "import os\nimport socket\nfrom ssh2.session import Session\nhost = 'localhost'\nuser = os.getlogin()\nsock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\nsock.connect((host, 22))\nsession = Session()\nsession.handshake(sock)\nsession.agent_auth(user)\nchannel = session.open_session()\nchannel.execute('echo me')\n",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Official description, ssh2-python",
      "display": "Binds the libssh2 C library.",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Quickstart source file, ssh2-python",
      "display": "examples/example_echo.py",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Repository stars, ssh2-python",
      "display": "237",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Asyncio SSH sessions, ssh2-python",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "SFTP file API, ssh2-python",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "SSH integration role, ssh2-python",
      "display": "Low-level libssh2 bindings for sessions, channels, SFTP, and non-blocking primitives; publisher recommends Parallel-SSH for most high-level users.",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Publisher recommendation, ssh2-python",
      "display": "The own README recommends Parallel-SSH high-level clients for most developers; low-level bindings require more integration code.",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Project function, ssh2-python",
      "display": "def _init_session(self, retries=1):\n    self.session = Session()\n    if self.compress:\n        self.session.flag(LIBSSH2_FLAG_COMPRESS)\n\n    if self.timeout:\n        # libssh2 timeout is in ms\n        self.session.set_timeout(self.timeout * 1000)\n    try:\n        if self._auth_thread_pool:\n            THREAD_POOL.apply(self.session.handshake, (self.sock,))\n        else:\n            self.session.handshake(self.sock)\n    except Exception as ex:\n        if retries < self.num_retries:\n            sleep(self.retry_delay)\n            return self._connect_init_session_retry(retries=retries+1)\n        msg = \"Error connecting to host %s:%s - %s\"\n        logger.error(msg, self.host, self.port, ex)\n        if not self.sock.closed:\n            try:\n                self.sock.shutdown(SHUT_RDWR)\n                self.sock.detach()\n            except Exception:\n                pass\n        if isinstance(ex, SSH2Timeout):\n            raise Timeout(msg, self.host, self.port, ex)\n        raise\n",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Project source file, ssh2-python",
      "display": "pssh/clients/native/single.py",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Project full_name, ssh2-python",
      "display": "ParallelSSH/parallel-ssh",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Project stargazers_count, ssh2-python",
      "display": "1.3K",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Library name, ssh-python",
      "display": "ssh-python",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Monthly downloads, ssh-python",
      "display": "237.5K",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "License, ssh-python",
      "display": "LGPL-2.1-only",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Package release, ssh-python",
      "display": "1.2.0.post1",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Package release date, ssh-python",
      "display": "Oct 2025",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Install, ssh-python",
      "display": "pip install ssh-python",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Quickstart, ssh-python",
      "display": "import socket\n\nfrom ssh.session import Session\nfrom ssh import options\n\nUSERNAME = 'your-user'\nHOST = 'localhost'\nPORT = 22\n\nsock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\nsock.connect((HOST, PORT))\n\ns = Session()\ns.options_set(options.HOST, HOST)\ns.options_set(options.USER, USERNAME)\ns.options_set_port(PORT)\ns.set_socket(sock)\ns.connect()\n\n# Authenticate with agent\ns.userauth_agent(USERNAME)\n\nchan = s.channel_new()\nchan.open_session()\nchan.request_exec('echo me')\nsize, data = chan.read()\nwhile size > 0:\n    print(data.strip())\n    size, data = chan.read()\nchan.close()\n",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Official description, ssh-python",
      "display": "Binds the libssh C library to Python.",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Quickstart source file, ssh-python",
      "display": "examples/exec.py",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Repository stars, ssh-python",
      "display": "48",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Asyncio SSH sessions, ssh-python",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "SFTP file API, ssh-python",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "SSH integration role, ssh-python",
      "display": "Low-level libssh bindings with session/channel/options/SFTP APIs; distinct from libssh2/ssh2-python.",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Project function, ssh-python",
      "display": "def _init_session(self, retries=1):\n    logger.debug(\"Starting new session for %s@%s:%s\",\n                 self.user, self.host, self.port)\n    self.session = Session()\n    self.session.options_set(options.USER, self.user)\n    self.session.options_set(options.HOST, self.host)\n    if self.compress:\n        self.session.options_set(options.COMPRESSION, \"yes\")\n    self.session.options_set_port(self.port)\n    if self.gssapi_server_identity:\n        self.session.options_set(\n            options.GSSAPI_SERVER_IDENTITY, self.gssapi_server_identity)\n    if self.gssapi_client_identity:\n        self.session.options_set(\n            options.GSSAPI_CLIENT_IDENTITY, self.gssapi_client_identity)\n    if self.gssapi_client_identity or self.gssapi_server_identity:\n        self.session.options_set_gssapi_delegate_credentials(\n            self.gssapi_delegate_credentials)\n    logger.debug(\"Session started, connecting with existing socket\")\n    try:\n        self.session.set_socket(self.sock)\n        self._session_connect()\n    except Exception as ex:\n        if retries < self.num_retries:\n            return self._connect_init_session_retry(retries=retries+1)\n        msg = \"Error connecting to host %s:%s - %s\"\n        logger.error(msg, self.host, self.port, ex)\n        raise ex\n",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Project source file, ssh-python",
      "display": "pssh/clients/ssh/single.py",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Project full_name, ssh-python",
      "display": "ParallelSSH/parallel-ssh",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Project stargazers_count, ssh-python",
      "display": "1.3K",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best Python SSH libraries Paramiko AsyncSSH Fabric Netmiko SFTP asyncio jump host automation code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
