Python client for Iris API
Project description
.. 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/*
: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/*
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
irisclient-1.3.0.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for irisclient-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d892ddf8b1f43dc9285e633afb3f54f2d886d8495c30c06e4da6186cc2a12bbb |
|
MD5 | bd8afc7b163e763890d9940e18244c64 |
|
BLAKE2b-256 | 79355456916b5f06a9be59c2771c50a6263c94180ff09f71beb645cc125395db |