跳转到主要内容

Iris API的Python客户端

项目描述

.. image:: https://badge.fury.io/py/irisclient.svg
:target: https://badge.fury.io/py/irisclient

.. image:: https://travis-ci.org/houqp/iris-python-client.svg?branch=master
:target: https://travis-ci.org/houqp/iris-python-client

Iris API的Python客户端
==========================

安装
------

.. code-block:: bash

pip install irisclient


用法
-----

.. code-block:: python

from irisclient import IrisClient

client = IrisClient(
app='SERVICE_FOO',
key='IRIS_API_KEY',
api_host='http://localhost:5000'
)
# 创建一个事件
打印客户端.incident('plan-foo', context={'key-foo': 'abc', 'key-bar': 1})
发送一个即兴通知
打印客户端.notification(role='user', target='alice', priority='urgent', subject='Yo')


测试
----

.. code-block:: bash

pip install tox
tox


发布
-------

.. code-block:: bash

python setup.py sdist
twine upload dist/*


项目详情


下载文件

下载适用于您平台文件的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分布

irisclient-1.3.0.tar.gz (4.1 kB 查看散列)

上传时间

构建分布

irisclient-1.3.0-py3-none-any.whl (4.5 kB 查看散列)

上传时间 Python 3

由以下支持