Skip to main content

Zenoss API client module

Project description

Cherwell API Client

Tests badge Documentation Status PyPI - Version GitHub Release TestPyPI - Version

NOTE: This module is inspired by the excellent ZenossAPIClient by Zuora-TechOps and the fork contributed by boblickj.

My own fork of that project is available via PyPI as zenAPIClient

-dan-smalley

Python module for interacting with the Cherwell API in an object-oriented way. Tested with API version 10.1.0, no guarantees for earlier versions...

The philosophy here is to use objects to work with everything in the Cherwell API, and to try to normalize the various calls to the different routers. Thus get methods will always return an object, list methods will return data. All methods to add or create start with add, all remove or delete start with delete. As much as possible the methods try to hide the idiosyncrasies of the JSON API, and to do the work for you, for example by letting you use a device name instead of having to provide the full device UID for every call.

Installing

pip install CherwellAPIClient

Using

In [1]: from cherwellapi import apiclient as capi

In [2]: cherwell_client = capi.Client(host=CHERWELL_URL, client_id=CLIENT_ID, username=USERNAME, passwrod=PASSWORD)

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

cherwellapiclient-1.0.0.tar.gz (11.8 kB view hashes)

Uploaded Source

Built Distribution

CherwellAPIClient-1.0.0-py3-none-any.whl (13.9 kB view hashes)

Uploaded Python 3

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