Python client for oncall API
Project description
Python client for Oncall API
==========================
Install
------
.. code-block:: bash
pip install oncallclient
Usage
-----
.. code-block:: python
from oncallclient import OncallClient
client = OncallClient(
app='SERVICE_FOO',
key='oncall_API_KEY',
api_host='http://localhost:5000'
)
print client.get_user('username')
print client.get_team('team_name')
print client.get_oncall_now('team_name', role='primary')
print client.get('http://localhost:5000/api/v0/events?team=example_team&role=primary').json()
Test
----
.. code-block:: bash
pip install tox
tox
Release
-------
.. code-block:: bash
python setup.py sdist
twine upload dist/*
==========================
Install
------
.. code-block:: bash
pip install oncallclient
Usage
-----
.. code-block:: python
from oncallclient import OncallClient
client = OncallClient(
app='SERVICE_FOO',
key='oncall_API_KEY',
api_host='http://localhost:5000'
)
print client.get_user('username')
print client.get_team('team_name')
print client.get_oncall_now('team_name', role='primary')
print client.get('http://localhost:5000/api/v0/events?team=example_team&role=primary').json()
Test
----
.. code-block:: bash
pip install tox
tox
Release
-------
.. code-block:: bash
python setup.py sdist
twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
oncallclient-1.1.0.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for oncallclient-1.1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2c4bbb00abeedfd55da121b6e64ff7c6ca1ce28780afca43447fce68f10986b |
|
MD5 | 643fe48b53567d2d526025d2145ab30f |
|
BLAKE2b-256 | 4dbdb8a99346114068b297718a8a9e55a633cdc48169aade98dcbb59d82afc37 |