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.7.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for spectrum_client-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0eff8ac95c6310a81e077e96497af6d0a1df0a58370353c927842803785ea6f2 |
|
MD5 | ea4c204a1c618d125470e17c7a5a6d42 |
|
BLAKE2b-256 | 81a722e35c30a278da0d23a9caa989e951d1b9a29bdafd42d6343d89a6adb0c0 |