skip to navigation
skip to content

irisclient 1.2.1

Python client for Iris API

.. 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

Python client for Iris API
==========================

Install
------

.. code-block:: bash

pip install irisclient


Usage
-----

.. code-block:: python

from irisclient import IrisClient

client = IrisClient(
app='SERVICE_FOO',
key='IRIS_API_KEY',
api_host='http://localhost:5000'
)
# create an incident
print client.incident('plan-foo', context={'key-foo': 'abc', 'key-bar': 1})
# send an adhoc notification
print client.notification(role='user', target='alice', priority='urgent', subject='Yo')


Test
----

.. code-block:: bash

pip install tox
tox


Release
-------

.. code-block:: bash

python setup.py sdist
twine upload dist/*  
File Type Py Version Uploaded on Size
irisclient-1.2.1.tar.gz (md5) Source 2017-07-09 3KB