Skip to main content

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

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

oncallclient-1.0.0.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file oncallclient-1.0.0.tar.gz.

File metadata

  • Download URL: oncallclient-1.0.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for oncallclient-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bb5d9a6552841ffb0bbe75af02b1541fe57398b8403f22b68825f60d4d6766dd
MD5 602038a1c725825030bcf83416b5bc21
BLAKE2b-256 b3d2d634d10ac137e18e6d4877e356cee6bf45a2bc02f08b7a7e6aa219730872

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