Skip to main content

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

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.2.1.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file irisclient-1.2.1.tar.gz.

File metadata

  • Download URL: irisclient-1.2.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for irisclient-1.2.1.tar.gz
Algorithm Hash digest
SHA256 04d6a55dd43533b45d88f66dc152a83dedbc6b60d713f1d430ed7f34667d2a02
MD5 13959456ec9cbdd4ac89e462bae679f1
BLAKE2b-256 0bfb722492f81903d86d5764f48bc304538a83180a52bd70ea12d76e7408c410

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page