在jupyter笔记本中启用devops任务的python包
rubix的Python项目详细描述
[![PYPI版本](https://badge.fury.io/py/rubix.svg)](https://badge.fury.io/py/rubix)
python库,使在jupyter笔记本中执行常见的devops任务变得容易。例如,绘制CloudWatch度量,回滚您的ECS/Kubernetes应用程序等。
虽然rubix可以在许多上下文中使用,但它对于编写事件Runbook/Playbooks最为有用。随叫随到可以从Jupyter笔记本上读取指令并执行步骤。我在这里(https://hackernoon.com/simplify-devops-with-jupyter-notebook-c700fb6b503c)写了更多关于这个用例的文章。
-jupyter允许交错指令和可执行代码。非常适合快速的事件响应。
-丰富的HTML输出使绘制图表、显示部署状态等变得容易。
-在浏览器中编辑/查看/执行笔记本的低摩擦方式。
[演示视频](https://uploads ssl.webflow.com/5adf07174a787c7249ade79f/5b0cfeb0589c364b44ee72_video_thumbnail_2.png)(https://www.youtube.com/watch?v=vvlxsahcgf8&rel=0&autoplay=0“api延迟演示”)
请注意,jupyter笔记本支持执行[shell命令](http://docs.nurtch.com/en/latest/nurtch platform/index.html在笔记本中运行shell命令)&;[SQL查询](http://docs.nurtch.com/en/latest/nurtch platform/index.html在笔记本中运行SQL查询)开箱即用。
*[rubix](http://docs.nurtch.com/en/latest/rubix library/index.html)
*[cloudwatch](http://docs.nurtch.com/en/latest/rubix library/aws/cloudwatch.html)
*[弹性容器服务(ecs)“(http://docs.nurtch.com/en/latest/rubix library/aws/ecs.html)
*[kubernetes](http://docs.nurtch.com/en/latest/rubix library/kubernetes.html api用法)
rubix只适用于jupyter笔记本电脑。您可以在本地[安装jupyter](http://jupyter.org/install)或使用[jupyterhub](https://jupyterhub.readthedocs.io/en/stable/)多用户安装程序。我还构建了[nurtch](http://nurtch.com)(商业版)以方便多用户jupyter设置。
*对于jupyter/jupyterhub设置,只需在任何笔记本的顶部执行以下操作。bang运算符告诉jupyter将其作为终端命令执行。
```
!pip install rubix
```
*rubix预装有[nurtch]多用户jupyter设置。
下面是一些使用示例。
\plot cloudwatch metrics
![CloudWatch Metrics Example](http://docs.nurtch.com/en/latest/廑images/plot廑u metric廑example.png)
ecs中的回滚服务
![ECS回滚示例](http://docs.nurtch.com/en/latest/廑images/ecs廑rollback.png)
对于其他集成,请使用“feature request”标记打开一个问题,并清楚地描述要执行的操作。您可以在[amit@nurtch.com](mailto:amit@nurtch.com)或[twitter]上的dm me(https://twitter.com/amittrathi)写信给我。
python库,使在jupyter笔记本中执行常见的devops任务变得容易。例如,绘制CloudWatch度量,回滚您的ECS/Kubernetes应用程序等。
虽然rubix可以在许多上下文中使用,但它对于编写事件Runbook/Playbooks最为有用。随叫随到可以从Jupyter笔记本上读取指令并执行步骤。我在这里(https://hackernoon.com/simplify-devops-with-jupyter-notebook-c700fb6b503c)写了更多关于这个用例的文章。
-jupyter允许交错指令和可执行代码。非常适合快速的事件响应。
-丰富的HTML输出使绘制图表、显示部署状态等变得容易。
-在浏览器中编辑/查看/执行笔记本的低摩擦方式。
[演示视频](https://uploads ssl.webflow.com/5adf07174a787c7249ade79f/5b0cfeb0589c364b44ee72_video_thumbnail_2.png)(https://www.youtube.com/watch?v=vvlxsahcgf8&rel=0&autoplay=0“api延迟演示”)
请注意,jupyter笔记本支持执行[shell命令](http://docs.nurtch.com/en/latest/nurtch platform/index.html在笔记本中运行shell命令)&;[SQL查询](http://docs.nurtch.com/en/latest/nurtch platform/index.html在笔记本中运行SQL查询)开箱即用。
*[rubix](http://docs.nurtch.com/en/latest/rubix library/index.html)
*[cloudwatch](http://docs.nurtch.com/en/latest/rubix library/aws/cloudwatch.html)
*[弹性容器服务(ecs)“(http://docs.nurtch.com/en/latest/rubix library/aws/ecs.html)
*[kubernetes](http://docs.nurtch.com/en/latest/rubix library/kubernetes.html api用法)
rubix只适用于jupyter笔记本电脑。您可以在本地[安装jupyter](http://jupyter.org/install)或使用[jupyterhub](https://jupyterhub.readthedocs.io/en/stable/)多用户安装程序。我还构建了[nurtch](http://nurtch.com)(商业版)以方便多用户jupyter设置。
*对于jupyter/jupyterhub设置,只需在任何笔记本的顶部执行以下操作。bang运算符告诉jupyter将其作为终端命令执行。
```
!pip install rubix
```
*rubix预装有[nurtch]多用户jupyter设置。
下面是一些使用示例。
\plot cloudwatch metrics
![CloudWatch Metrics Example](http://docs.nurtch.com/en/latest/廑images/plot廑u metric廑example.png)
ecs中的回滚服务
![ECS回滚示例](http://docs.nurtch.com/en/latest/廑images/ecs廑rollback.png)
对于其他集成,请使用“feature request”标记打开一个问题,并清楚地描述要执行的操作。您可以在[amit@nurtch.com](mailto:amit@nurtch.com)或[twitter]上的dm me(https://twitter.com/amittrathi)写信给我。