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/*
: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 查看散列)
关闭
irisclient-1.3.0.tar.gz的散列
算法 | 散列摘要 | |
---|---|---|
SHA256 | 3b426201624a875a8e5386ab4fa398c8beed143a2915f2ad2fcb0c9969931816 |
|
MD5 | 842843d88a3e56a074c5103c2d95b793 |
|
BLAKE2b-256 | 3692a57b5b2051a2b27dc28b42822db1b9651d74313b35454a3324d4a4cfddb6 |
关闭
irisclient-1.3.0-py3-none-any.whl的散列
算法 | 散列摘要 | |
---|---|---|
SHA256 | d892ddf8b1f43dc9285e633afb3f54f2d886d8495c30c06e4da6186cc2a12bbb |
|
MD5 | bd8afc7b163e763890d9940e18244c64 |
|
BLAKE2b-256 | 79355456916b5f06a9be59c2771c50a6263c94180ff09f71beb645cc125395db |