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

Uploaded Source

Built Distribution

irisclient-1.3.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: irisclient-1.3.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0

File hashes

Hashes for irisclient-1.3.0.tar.gz
Algorithm Hash digest
SHA256 3b426201624a875a8e5386ab4fa398c8beed143a2915f2ad2fcb0c9969931816
MD5 842843d88a3e56a074c5103c2d95b793
BLAKE2b-256 3692a57b5b2051a2b27dc28b42822db1b9651d74313b35454a3324d4a4cfddb6

See more details on using hashes here.

Provenance

File details

Details for the file irisclient-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: irisclient-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0

File hashes

Hashes for irisclient-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d892ddf8b1f43dc9285e633afb3f54f2d886d8495c30c06e4da6186cc2a12bbb
MD5 bd8afc7b163e763890d9940e18244c64
BLAKE2b-256 79355456916b5f06a9be59c2771c50a6263c94180ff09f71beb645cc125395db

See more details on using hashes here.

Provenance

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