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.SSLErrorerror 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shake_that_assurance-0.0.6.tar.gz.
File metadata
- Download URL: shake_that_assurance-0.0.6.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5edb0f3ca310fe6b2433ad4154dc06a92ba2a1643abd1bf7eab65b443b282010
|
|
| MD5 |
a19488e103aab501e27ae4e17fbefd61
|
|
| BLAKE2b-256 |
058bae08bcdbca7a3a5b967dcd1254e0f4e196480529da596fa4c32ecf9005bf
|
File details
Details for the file shake_that_assurance-0.0.6-py3-none-any.whl.
File metadata
- Download URL: shake_that_assurance-0.0.6-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
727b73c3eaa67c662393203ccbfbb9c75e7b5dcd88be19e03fca1661e63b521e
|
|
| MD5 |
cffe45e32c165576a078401c374da947
|
|
| BLAKE2b-256 |
650ee3812d2cc6231bc61a4d37ab172b30d34df91ef8fadac73c712c18dcba97
|