Skip to content

ansible/pylibssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c626441 · Feb 15, 2025
Feb 13, 2025
Sep 10, 2024
Sep 23, 2020
Sep 12, 2024
Sep 12, 2024
Jun 27, 2024
Jun 27, 2024
Nov 19, 2024
Sep 11, 2024
May 18, 2020
Sep 10, 2024
Sep 12, 2024
May 7, 2020
May 7, 2020
Dec 15, 2021
Jun 16, 2023
Sep 12, 2024
Jan 6, 2025
Sep 12, 2024
Sep 17, 2022
Jan 20, 2020
Jun 27, 2024
Jan 21, 2020
Sep 12, 2024
Sep 12, 2024
Sep 10, 2024
Sep 12, 2024
Sep 12, 2024
May 31, 2024
https://img.shields.io/pypi/v/ansible-pylibssh.svg?logo=Python&logoColor=white https://img.shields.io/badge/license-LGPL+-blue.svg?maxAge=3600 https://img.shields.io/pypi/pyversions/ansible-pylibssh.svg?logo=Python&logoColor=white 🧪 CI/CD @ devel devel branch coverage via Codecov Ansible Code of Conduct

pylibssh: Python bindings to client functionality of libssh specific to Ansible use case

Nightlies @ Dumb PyPI @ GitHub Pages

We publish nightlies on tags and pushes to devel. They are hosted on a GitHub Pages based index generated by dumb-pypi.

The web view is @ https://ansible.github.io/pylibssh/.

$ pip install \
    --extra-index-url=https://ansible.github.io/pylibssh/simple/ \
    --pre \
    ansible-pylibssh

Requirements

You need Python 3.8+

pylibssh requires libssh to be installed in particular:

  • libssh version 0.9.0 and later.

    To install libssh refer to its Downloads page.

Building the module

In the local env, assumes there's a libssh shared library on the system, build toolchain is present and env vars are set properly:

$ git clone https://github.com/ansible/pylibssh.git
$ cd pylibssh
$ pip install tox
$ tox -e build-dists

manylinux-compatible wheels:

$ git clone https://github.com/ansible/pylibssh.git
$ cd pylibssh
$ pip install tox
$ tox -e build-dists-manylinux1-x86_64  # with Docker

# or with Podman
$ DOCKER_EXECUTABLE=podman tox -e build-dists-manylinux1-x86_64

# to enable shell script debug mode use
$ tox -e build-dists-manylinux1-x86_64 -- -e DEBUG=1

Communication

Join the Ansible forum:

For more information about getting in touch with us, see the Ansible communication guide.

License

This library is distributed under the terms of LGPL 2 or higher, see file LICENSE.rst in this repository.