Metadata-Version: 2.4
Name: irisclient
Version: 1.2.1
Summary: Python client for Iris API
Home-page: https://github.com/houqp/iris-python-client
Author: Minhaz Mahmud
License: BSD 2-CLAUSE
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
License-File: LICENSE
Requires-Dist: requests
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: summary

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