Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shake_that_assurance-0.0.6.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shake_that_assurance-0.0.6-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

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

Hashes for shake_that_assurance-0.0.6.tar.gz
Algorithm Hash digest
SHA256 5edb0f3ca310fe6b2433ad4154dc06a92ba2a1643abd1bf7eab65b443b282010
MD5 a19488e103aab501e27ae4e17fbefd61
BLAKE2b-256 058bae08bcdbca7a3a5b967dcd1254e0f4e196480529da596fa4c32ecf9005bf

See more details on using hashes here.

File details

Details for the file shake_that_assurance-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for shake_that_assurance-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 727b73c3eaa67c662393203ccbfbb9c75e7b5dcd88be19e03fca1661e63b521e
MD5 cffe45e32c165576a078401c374da947
BLAKE2b-256 650ee3812d2cc6231bc61a4d37ab172b30d34df91ef8fadac73c712c18dcba97

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page