Python client for Iris API
Project description
Python client for Iris API
Usage
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
pip install tox
tox
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-0.0.1.tar.gz
(3.4 kB
view details)
Built Distribution
irisclient-0.0.1-py2.7.egg
(4.3 kB
view details)
File details
Details for the file irisclient-0.0.1.tar.gz
.
File metadata
- Download URL: irisclient-0.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ef47f45ad2d9a9839b51b85a2cc6b1630d6ca1f2d6e0306d73e2c5a7dbaeace |
|
MD5 | 856816c30c5f3b1afdc79aa6ec70aa34 |
|
BLAKE2b-256 | d69cdffffa186ac58caa9eb89c61c7f1756b986f56bcd9cc95e204b5eba7f38b |
File details
Details for the file irisclient-0.0.1-py2.7.egg
.
File metadata
- Download URL: irisclient-0.0.1-py2.7.egg
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6d50eb4c81753b6717603a91441efae204ef000d4f5d753610821937984f0f1 |
|
MD5 | 9eca876d5d1e130439eb1656307b0b7b |
|
BLAKE2b-256 | dd1270544e68b7cb184f982250533f223e0acfcedd34438fefc165507ff0b6cc |