欢迎使用 ansible-pylibssh 文档!

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 https://img.shields.io/badge/style-wemake-000000.svg Ansible Code of Conduct

夜间版 @ Dumb PyPI @ GitHub Pages

我们在标签和推送到 devel 时发布夜间版。它们托管在由 dumb-pypi 生成的基于 GitHub Pages 的索引上。

网页视图位于 @ https://ansible.github.io/pylibssh/

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

要求

您需要 Python 3.6+

pylibssh 需要安装 libssh,特别是

  • libssh 版本 0.9.0 及更高版本。

    要安装 libssh,请参考其 下载页面

构建模块

在本地环境中,假设系统上存在 libssh 共享库,构建工具链存在,并且环境变量已正确设置

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

manylinux 兼容轮子

$ 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

许可证

此库根据 LGPL 2 或更高版本的条款分发,请参阅此存储库中的 LICENSE.rst 文件。