python库帮助编写linux操作脚本。
OpScripts的Python项目详细描述
……图片::https://img.shields.io/badge/supported%20by-clockwork-ffcc00.svg
:alt:badge:supported by clockwork
:align:right
:target:https://www.clockwork.com/
操作脚本
==
。图片::https://img.shields.io/pypi/v/opscripts.svg
:alt:badge:python包索引版本
:align:right
:target:https://pypi.python.org/pypi/opscripts
。图片::https://img.shields.io/github/tag/clockworknet/opscripts.svg
:alt:badge:github最新标记
:align:right
:target:https://github.com/clockworknet/opscripts/tags
帮助编写Linux操作脚本的Python库。
==当前需要与以下组件兼容:
…图片::https://img.shields.io/pypi/pyversions/opscripts.svg
:alt:badge:python包索引支持的python版本
:align:right
:target:https://pypi.python.org/pypi/opscripts
-2.6
-2.7
-3.4
图片::https://img.shields.io/travis/clockworknet/opscripts/master.svg
:alt:badge:travis ci master branch status
:align:right
:target:https://travis ci.org/clockworknet/opscripts
自动测试其他版本。
==
对每个模块进行版本控制,以便它们可以在不影响使用它们的脚本的功能和稳定性的情况下进行重大更改。
例如::
从opscripts.config导入v6作为ops配置
从opscripts.logging import v2 as ops日志
从opscripts.utils import v8 as ops utils
有关更深入的示例,请参见:
-`<;example.py>;`\br/>-`<;example\notify电子邮件.py>;`\br/>-`<;example\yaml.py>;`
-``opscriptscripts.config```
-`configargparparse```
-`pyyaml``
-`opscript opscripts.yaml```````opscripts.yaml````````
-`pytest`
-`pytest catchlog`
-`pytest colordots`
-`pytest flakes`
-`pytest localserver`
-`pytest-pep8`
-`pytest pythonpath`
。_` configargparse`:https://github.com/bw2/configargparse
。_` pyyaml`:http://pyyaml.org/wiki/pyyaml
。_` ordereddict`:https://pypi.python.org/pypi/ordereddict/1.1
。_` mock`:https://pypi.python.org/pypi/mock
。_` pytest`:http://pytest.org/latest/
。_` pytest catchlog`:https://pypi.python.org/pypi/pytest catchlog
。_` pytest colordots`:https://github.com/svenstaro/pytest colordots
。_` pytest flakes`:https://pypi.python.org/pypi/pytest flakes
。_` pytest localserver`:https://pypi.python.org/pypi/pytest localserver
。_` pytest-pep8`:http://pypi.python.org/pypi/pytest-pep8
。_` pytest pythonpath`:https://pypi.python.org/pypi/pytest pythonpath
>测试快速启动
===
1。将目录更改为存储库(与本自述文件所在的目录相同)。
2。安装虚拟环境:
mkvirtualenv-a。-r tests/requirements.txt opscripts_test
>a.如果安装需求错误,请更新“pip”:
>b.安装需求::
3.运行py test::
py.test
若要针对其他python版本进行测试,可以使用安装了``virtualenv`
的解释器以外的解释器创建虚拟
环境,例如,对于非默认python3::
mkvirtualenv-a。-p$(哪个python3)-r tests/requirements.txt操作脚本3
license
==
……图片::https://img.shields.io/github/license/clockworknet/opscripts.svg
:alt:badge:github许可证(mit)
:align:right
:target:`mit license`<;license>;`(`mit license'
…麻省理工学院许可证:http://www.opensource.org/licenses/mit
:alt:badge:supported by clockwork
:align:right
:target:https://www.clockwork.com/
操作脚本
==
。图片::https://img.shields.io/pypi/v/opscripts.svg
:alt:badge:python包索引版本
:align:right
:target:https://pypi.python.org/pypi/opscripts
。图片::https://img.shields.io/github/tag/clockworknet/opscripts.svg
:alt:badge:github最新标记
:align:right
:target:https://github.com/clockworknet/opscripts/tags
帮助编写Linux操作脚本的Python库。
…图片::https://img.shields.io/pypi/pyversions/opscripts.svg
:alt:badge:python包索引支持的python版本
:align:right
:target:https://pypi.python.org/pypi/opscripts
-2.6
-2.7
-3.4
图片::https://img.shields.io/travis/clockworknet/opscripts/master.svg
:alt:badge:travis ci master branch status
:align:right
:target:https://travis ci.org/clockworknet/opscripts
自动测试其他版本。
对每个模块进行版本控制,以便它们可以在不影响使用它们的脚本的功能和稳定性的情况下进行重大更改。
例如::
从opscripts.config导入v6作为ops配置
从opscripts.logging import v2 as ops日志
从opscripts.utils import v8 as ops utils
有关更深入的示例,请参见:
-`<;example.py>;`\br/>-`<;example\notify电子邮件.py>;`\br/>-`<;example\yaml.py>;`
-``opscriptscripts.config```
-`configargparparse```
-`pyyaml``
-`opscript opscripts.yaml```````opscripts.yaml````````
-`pytest catchlog`
-`pytest colordots`
-`pytest flakes`
-`pytest localserver`
-`pytest-pep8`
-`pytest pythonpath`
。_` configargparse`:https://github.com/bw2/configargparse
。_` pyyaml`:http://pyyaml.org/wiki/pyyaml
。_` ordereddict`:https://pypi.python.org/pypi/ordereddict/1.1
。_` mock`:https://pypi.python.org/pypi/mock
。_` pytest`:http://pytest.org/latest/
。_` pytest catchlog`:https://pypi.python.org/pypi/pytest catchlog
。_` pytest colordots`:https://github.com/svenstaro/pytest colordots
。_` pytest flakes`:https://pypi.python.org/pypi/pytest flakes
。_` pytest localserver`:https://pypi.python.org/pypi/pytest localserver
。_` pytest-pep8`:http://pypi.python.org/pypi/pytest-pep8
。_` pytest pythonpath`:https://pypi.python.org/pypi/pytest pythonpath
>测试快速启动
===
1。将目录更改为存储库(与本自述文件所在的目录相同)。
2。安装虚拟环境:
mkvirtualenv-a。-r tests/requirements.txt opscripts_test
>a.如果安装需求错误,请更新“pip”:
>b.安装需求::
3.运行py test::
py.test
若要针对其他python版本进行测试,可以使用安装了``virtualenv`
的解释器以外的解释器创建虚拟
环境,例如,对于非默认python3::
mkvirtualenv-a。-p$(哪个python3)-r tests/requirements.txt操作脚本3
license
==
……图片::https://img.shields.io/github/license/clockworknet/opscripts.svg
:alt:badge:github许可证(mit)
:align:right
:target:`mit license`<;license>;`(`mit license'
…麻省理工学院许可证:http://www.opensource.org/licenses/mit