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/*
Release files for oncallclient 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| oncallclient-1.1.0.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| oncallclient-1.1.0-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 6.6 kB
Release files / oncallclient-1.1.0.tar.gz
| Download URL | oncallclient-1.1.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c59a24d424ad496398a0114a020dcac78b31e7866a71a905f056ccf255341d99
|
|
BLAKE2b-256 checksum How to use checksums |
f15f394b6e186ddb699337960e75230818dd7faa37a91aff345e8056783f19b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.5
|
Release files / oncallclient-1.1.0-py2-none-any.whl
| Download URL | oncallclient-1.1.0-py2-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
c2c4bbb00abeedfd55da121b6e64ff7c6ca1ce28780afca43447fce68f10986b
|
|
BLAKE2b-256 checksum How to use checksums |
4dbdb8a99346114068b297718a8a9e55a633cdc48169aade98dcbb59d82afc37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.5
|