Zenoss API client module
Project description
Cherwell API Client
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
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
Built Distribution
File details
Details for the file cherwellapiclient-1.0.0.tar.gz
.
File metadata
- Download URL: cherwellapiclient-1.0.0.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc128edc3cc36bf91967155408ff77342b50ea5b3afba2e56b0f5fe4c540a142 |
|
MD5 | 22393d3d7f8c6ac06936b3704b7c9c81 |
|
BLAKE2b-256 | 48b6ba50473c22e72fbc6ea8fb652d10a5209f7a61f98b2fc43dbcd2987c91f5 |
File details
Details for the file CherwellAPIClient-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: CherwellAPIClient-1.0.0-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 995c9bcafc05c2af0e264dd7b9299047058d71654b2a3a10eb021952c71e3a62 |
|
MD5 | 2706be10f752b33b2c41f6bca9268a2b |
|
BLAKE2b-256 | eef7a05cc02a0f74f0f5860b680a12350dd513093a6f2ebfb3a1fdb8f497163b |