Metadata-Version: 2.1
Name: oncallclient
Version: 1.1.0
Summary: Python client for oncall API
Home-page: https://github.com/dwang159/oncall-python-client
Author: Daniel Wang
Author-email: UNKNOWN
License: BSD 2-CLAUSE
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Requires-Dist: requests

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


