CA Spectrum Web Services API wrapper
Project description
# spectrum-client
[![image](https://img.shields.io/pypi/v/spectrum-client.svg?style=flat-square)](https://pypi.org/project/spectrum-client)
[![image](https://img.shields.io/pypi/pyversions/spectrum-client.svg?style=flat-square)](https://pypi.org/project/spectrum-client)
[![image](https://img.shields.io/pypi/l/spectrum-client.svg?style=flat-square)](https://pypi.org/project/spectrum-client)
---
CA Spectrum Web Services API wrapper
## Instalation
spectrum-client is distributed on PyPI and is available on Linux/macOS and Windows and supports Python 3.6+.
``` bash
$ pip install -U spectrum-client
```
## Usage
``` python
from spectrum_client import Spectrum
spectrum = Spectrum('http://oneclick.mydomain:8080', 'myuser', 'secret')
# Update a model attribute
spectrum.update_attribute(0x210afa,0x10024,'MySNMPSecret')
```
If not provided, server and credentials will be read from the environment variables `SPECTRUM_URL`, `SPECTRUM_USERNAME`, `SPECTRUM_PASSWORD`.
[![image](https://img.shields.io/pypi/v/spectrum-client.svg?style=flat-square)](https://pypi.org/project/spectrum-client)
[![image](https://img.shields.io/pypi/pyversions/spectrum-client.svg?style=flat-square)](https://pypi.org/project/spectrum-client)
[![image](https://img.shields.io/pypi/l/spectrum-client.svg?style=flat-square)](https://pypi.org/project/spectrum-client)
---
CA Spectrum Web Services API wrapper
## Instalation
spectrum-client is distributed on PyPI and is available on Linux/macOS and Windows and supports Python 3.6+.
``` bash
$ pip install -U spectrum-client
```
## Usage
``` python
from spectrum_client import Spectrum
spectrum = Spectrum('http://oneclick.mydomain:8080', 'myuser', 'secret')
# Update a model attribute
spectrum.update_attribute(0x210afa,0x10024,'MySNMPSecret')
```
If not provided, server and credentials will be read from the environment variables `SPECTRUM_URL`, `SPECTRUM_USERNAME`, `SPECTRUM_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
spectrum-client-0.0.10.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for spectrum_client-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2370db4ed0d2f1096696c3e353834f43026b7362e9ea76c18352631a535ed5e3 |
|
MD5 | 91dc07b5e3a39875f546fb8903b91b2c |
|
BLAKE2b-256 | 70e28fa0327440e68a73c47829496a445f275e0084c62fb9f4c43ce19457e4a4 |