tango系统cli管理器
tangoctl的Python项目详细描述
tangoctl
==
为tango_u系统管理员构建的cli。
这里有一段视频:
目的
----
*日常探戈维护
*帮助自动化Ansible、Puppet或Chef脚本
*为您自己的软件准备自动测试脚本
*帮助为您的工具编写自定义的“bash completion”(bash completion)
*服务器信息
*服务器树
*服务器列表
*注册/注销服务器
*设备操作:
*设备信息
*设备树
*设备列表
*注册/注销设备
*执行命令
*命令信息
*读写属性
*属性信息
**读写属性
安装
----
…代码块:
$pip install tangoctl
就这样!
示例代码块:
exec-d sys/tg戋test/1-c init
显示“双戋谱”属性信息
tangoctl设备属性信息-d sys/tg戋test/1-双戋谱
显示设备属性列表:
tangoctl设备属性列表-d sys/tg戋test/1
server
###################################################
Imagine you have a Tango_ server called `LimaCCDs` and you registered
two instances in the database, maybe using tangoctl:
.. 代码块::bash
tangoctl server a d d limaccds/basler1-d id00/limaccds/basler1
tangoctl server add limaccds/pilats1-d id00/limaccds/pilats1
代码块::bash
{
{br/>stype=${comp[0]}
{
{
echo$stype
compreply=($(tangoctl server t ilist-t'${stype}--filter=${sname}*)
<<
<<<<
>返回0
}
complete-f探戈服务器完成演示并运行它。下次在BASH命令行输入'LimaCds[Tab] ]时,它
将将现有的LimaCARS实例提供为完成选项:
BR/>。代码块::bash
limaccds[tab]
basler1 pilatus1
pilatus1
>查看bash完成文档,了解如何将其永久添加到您的
环境中。
特别感谢
----
*pytango与python绑定
*单击“美丽”命令行接口
*gevent:i/o使表格格式的ascii表变得简单高效
*treelib:树数据结构
credits
----
这个包是用cookiecutter和“audreyr/cookiecutter pypackage”项目模板创建的。_ treelib:https://github.com/caesar0301/treelib
。_表格:https://bitbucket.org/astanin/python tablate
…_ gevent:https://github.com/gevent/gevent
。_ pytango:https://github.com/tango controls/pytango
。_点击:https://github.com/pallets/click
。_ Cookiecutter:https://github.com/audreyr/Cookiecutter
。_` audreyr/cookiecutter pypackage`:https://github.com/audreyr/cookiec完全pypackage
…_探戈:http://tango controls.org
…_ bash完成:http://www.caliban.org/bash/completion
…| pypi版本图像::https://img.shields.io/pypi/v/tangoctl.svg
:目标:https://pypi.python.org/pypi/tangoctl
| python版本image::https://img.shields.io/pypi/pyversions/tangoctl.svg
:目标:https://pypi.python.org/pypi/tangoctl
……|构建状态图像::https://gitlab.com/tiagokoutinho/tangocottl/badges/master/pipeline.svg
:目标:https://gitlab.com/tiagokoutinho/tangottl/commits/master
……|覆盖状态图像::https://gitlab.com/tiagokoutinho/tangococtl/badges/master/coverage.svg
:目标:https://gitlab.com/tiagokoutinho/tangoctl/commits/master
……| Asciinema图像::https://asciinema.org/a/6u4y6nvqwdftqy8orfmssg4w.svg
:目标:https://asciinema.org/a/6u4y6nvqwdftqy8orfmssg4w?自动播放=1
==
为tango_u系统管理员构建的cli。
这里有一段视频:
目的
----
*日常探戈维护
*帮助自动化Ansible、Puppet或Chef脚本
*为您自己的软件准备自动测试脚本
*帮助为您的工具编写自定义的“bash completion”(bash completion)
*服务器信息
*服务器树
*服务器列表
*注册/注销服务器
*设备操作:
*设备信息
*设备树
*设备列表
*注册/注销设备
*执行命令
*命令信息
*读写属性
*属性信息
**读写属性
安装
----
…代码块:
$pip install tangoctl
就这样!
示例代码块:
exec-d sys/tg戋test/1-c init
显示“双戋谱”属性信息
tangoctl设备属性信息-d sys/tg戋test/1-双戋谱
显示设备属性列表:
tangoctl设备属性列表-d sys/tg戋test/1
server
###################################################
Imagine you have a Tango_ server called `LimaCCDs` and you registered
two instances in the database, maybe using tangoctl:
.. 代码块::bash
tangoctl server a d d limaccds/basler1-d id00/limaccds/basler1
tangoctl server add limaccds/pilats1-d id00/limaccds/pilats1
代码块::bash
{
{br/>stype=${comp[0]}
{
{
echo$stype
compreply=($(tangoctl server t ilist-t'${stype}--filter=${sname}*)
<<
<<<<
>返回0
}
complete-f探戈服务器完成演示并运行它。下次在BASH命令行输入'LimaCds[Tab] ]时,它
将将现有的LimaCARS实例提供为完成选项:
BR/>。代码块::bash
limaccds[tab]
basler1 pilatus1
>查看bash完成文档,了解如何将其永久添加到您的
环境中。
特别感谢
----
*pytango与python绑定
*单击“美丽”命令行接口
*gevent:i/o使表格格式的ascii表变得简单高效
*treelib:树数据结构
credits
----
这个包是用cookiecutter和“audreyr/cookiecutter pypackage”项目模板创建的。_ treelib:https://github.com/caesar0301/treelib
。_表格:https://bitbucket.org/astanin/python tablate
…_ gevent:https://github.com/gevent/gevent
。_ pytango:https://github.com/tango controls/pytango
。_点击:https://github.com/pallets/click
。_ Cookiecutter:https://github.com/audreyr/Cookiecutter
。_` audreyr/cookiecutter pypackage`:https://github.com/audreyr/cookiec完全pypackage
…_探戈:http://tango controls.org
…_ bash完成:http://www.caliban.org/bash/completion
…| pypi版本图像::https://img.shields.io/pypi/v/tangoctl.svg
:目标:https://pypi.python.org/pypi/tangoctl
| python版本image::https://img.shields.io/pypi/pyversions/tangoctl.svg
:目标:https://pypi.python.org/pypi/tangoctl
……|构建状态图像::https://gitlab.com/tiagokoutinho/tangocottl/badges/master/pipeline.svg
:目标:https://gitlab.com/tiagokoutinho/tangottl/commits/master
……|覆盖状态图像::https://gitlab.com/tiagokoutinho/tangococtl/badges/master/coverage.svg
:目标:https://gitlab.com/tiagokoutinho/tangoctl/commits/master
……| Asciinema图像::https://asciinema.org/a/6u4y6nvqwdftqy8orfmssg4w.svg
:目标:https://asciinema.org/a/6u4y6nvqwdftqy8orfmssg4w?自动播放=1