Python api wrapper for Unified Assurance
Project description
API Wrapper
Python wrapper for making calls to Oracle Communications Unified Assurance, previously known as Assure1 and Monolith. It connects to the Presentation Server.
Development
Clone the repo and install dependencies into a local virtual environment.
python3 -m venv .venv
source .venv/bin/activate
pip install --editable .
Tests
Export variables for your environment, otherwise the test will prompt you for input.
export UA_API_USER=example
export UA_API_PASS=hunter2
export UA_FQDN='https://presentation-server01.example.com'
pytest
Error Handling
-
If you see an
requests.exceptions.SSLError
error or something similar, it usually just means Apache is overwhelmed and failed to respond. This typically happens when making successive queries and happens more or less randomly. We already retry after waiting with an exponential backoff. If it stalls for too long, try starting over again. -
Another transient bug in the API can cause the script to throw
IndexError
(needs investigation). Just re-run the script for now. -
If you see database errors like below, it likely means you've exhaused the maximum connections to Oracle MySQL. You should probably increase the max connections or it will just keep happening.
WARNING: API responded with failure: {"success":false,"message":"PHP Exception<ul><li>\/opt\/assure1\/www\/api\/lib\/Model.php on line 997<\/li><ul><li>Error connecting to [Assure1] database. Please contact your administrator<\/li><\/ul><\/ul>","data":[]}
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
Hashes for shake_that_assurance-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d3dde1d92e57111f66aff2123e9ce5708042ee6201e20d2a0526a92cf61053a |
|
MD5 | b807ca38de2a8a8f9bad1bd9d788de48 |
|
BLAKE2b-256 | 695dd16ab985b4f813fb12d230b1a07f7195cd92ddb343b4c6a4f40f4ab1ddeb |
Hashes for shake_that_assurance-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e91f0ea96ac3d107897744f0e49a5ec37a4c3738825d7b6eb6e03fd128108e7 |
|
MD5 | 0b69a3a06f17a0a7aa7f48e5bbd6d948 |
|
BLAKE2b-256 | 1f70cb47d2dc061b0756a58047507159618369c045f579b76ef80cecb78eda6b |