Skip to main content

A set of modules that help with QA

Project description

EPython

The purpose of this library is to provide helper abstractions on top of well known libraries. The idea is to harden existing technologies and build easy-to-use wrappers for incorporation in test or production python code.

Overrides

There are instances when retry logic needs to be tweaked to make tests more performant, or more hardened. For this purpose, there are environmental variables that can be set to change the retry behavior.

Below are the current overrides that are available:

Env Variable Default Description
EPYTHON_LOG_LEVEL INFO Control the epython logging level
EPYTHON_LOG_FILE None Set this to have all epython output logging to a file
EPYTHON_REQUEST_ID "epython-poke" Set this to control what X-Request-ID is presented using poke
EPYTHON_REQUEST_INTERVAL 5 The length of time between subsequent request retries
EPYTHON_REQUEST_RETRIES 5 The number of request retries to make
EPYTHON_SSH_KEY None Private SSH key to use
EPYTHON_SSH_RETRIES 3 The number of times to retry an ssh login operation
EPYTHON_SSH_RETRY_INTERVAL 5 The time to wait before a new ssh attempt

Requests Headers:

EPYTHON_REQUEST_ID defaults to "epython-poke"

POKE_HEADERS = { "Content-Type": "application/json", "Accept": "application/json", "X-Request-ID": EPYTHON_REQUEST_ID }

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

elibs-epython-2021.1045.tar.gz (11.4 kB view hashes)

Uploaded Source

Built Distribution

elibs_epython-2021.1045-py3-none-any.whl (16.0 kB view hashes)

Uploaded Python 3

Supported by

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