Whipstaff是一个命令行工具,用于在本地会话中操作一个或多个Liberty Deckplan主机(LDH)。LDH操作员工具包的参考实现。
ldh-operator的Python项目详细描述
风向标
Whipstaff是一个命令行工具,用于操作一个或多个Liberty Deckplan主机(LDH)来自您的本地会话。参考文献 LDH操作员工具包的实现。在
安装
安装Whipstaff的首选方法是使用包管理器。
建议的包名是ldh-operator
。例如:
sudo apt install ldh-operator # Debian-based
或者
^{pr2}$使用
有关帮助和可用命令的列表:
whipstaff --help
安装(源代码)
如果你更喜欢从源头。。。在
- 在
安装python3.x和pipenv。(参见 https://docs.pipenv.org/install/用于教程。)
在 - 在
获取源:
在git clone https://source.puri.sm/liberty/tool/operator.git ldh_operator_toolkit
- 在
用管道安装:
在cd ldh_operator_toolkit pipenv install --dev -e .
使用(源)
cd ldh_operator_toolkit pipenv run whipstaff --help # using "pipenv run" avoids confusion with a regular installation
构建wheel包(也可以选择上载)
按照以下说明将Liberty CLI构建为Python包:
git clone https://source.puri.sm/liberty/tool/operator.git ldh_operator_toolkit cd ldh_operator_toolkit pipenv install --dev pipenv shell # optionally edit default.yaml python setup.py sdist bdist_wheel
如果一切都如预期的那样工作,您应该得到以下文件:
dist/ldh_operator-<version>-py3-none-any.whl
dist/ldh_operator-<version>.tar.gz
现在可以选择使用twine将创建的Python包上载到PyPI:
twine upload dist/*
分享与贡献
Whipstaff(LDH操作员工具包)
https://source.puri.sm/liberty/tool/operator
版权所有2018-2020 Purism SPC
SPDX许可证标识符:AGPL-3.0或更高版本
在AGPL-3.0或更高版本下共享。我们遵守社区契约 1.0无需修改,并根据DCO 1.1证明原产地 用电话签了字。欢迎在相同条件下捐款。在
有关详细信息,请参见:
- 项目
标签: