Package: lqs-client
LogQS ClientA Python library for interacting with a LogQS DataStore API.  More information and examples can be found athttps://docs.logqs.com.InstallationRequires Python >= 3.6Instally from PyPI, using pip:$ pip install logqs-clientQuickstartCreate a client instance:from lqs_client import LogQS
lqs = LogQS(
    api_url="<LQS API URL>",
    api_key_id="<LQS API KEY ID>",
    api_key_secret="<LQS API KEY SECRET>"
)Interact with the LogQS API:response = lqs.list.log()
data = response["data"]
print(data)Alternatively, you can use the LogQS Client from the command line.  If you have the configuration set as environment variables or in a .env file:$ python -m lqs_client list logConfigurationRequired ParametersThe LogQS Client requires three parameters to be configured:LQS_API_URLThe URL of the endpoint for the LogQS API.  This should be the base URL for all REST operations, i.e., if the DataStore's API includes a/apisubpath, this should be included.This parameter can be supplied/overridden with theapi_urlparameter.LQS_API_KEY_IDThe ID of the API Key for which the client will operate as.This parameter can be supplied/overridden with theapi_key_idparameter.LQS_API_KEY_SECRETThe secret of the API Key for which the client will operate as.This parameter can be supplied/overridden with theapi_key_secretparameter.Optional ParametersOptional parameters include:LQS_PRETTYA boolean parameter indicating whether or not to "prettify" the output results.  Useful when using the client in the command line.  Default isfalse.This parameter can be supplied/overrident with theprettyparameter.LQS_VERBOSEA boolean parameter indicating whether to log debug information.  Default isfalse.This parameter can be supplied/overriden with theverboseparameter.LQS_DRY_RUNA boolean parameter indicating whether to execute actual API requests.  Default isfalse.This parameter can be supplied/overriden with thedry_runparameter.LQS_RETRY_COUNTAn integer parameter greater than or equal to 0 indicating the number of times we should retry failed API requests.  Default is4This parameter can be supplied/overriden with theretry_countparameter.LQS_RETRY_DELAYAn integer parameter greater than or equal to 0 indicating the initial value, in seconds, we use for exponential backoff when waiting to retry a failed request.  Default is4This parameter can be supplied/overriden with theretry_delayparameter.LQS_RETRY_AGRESSIVEA boolean parameter indicating whether we should retry on "expected" errors from LogQS (such as "BadRequest", "Conflict", etc.).  Default isfalse.This parameter can be supplied/overriden with theretry_aggressiveparameter.DevelopmentThe LogQS Client module source is located inlqs-clientand it's Python requirements are listed in therequirements.txtfile.  You can install it locally withpip install ..The project uses Python 3.9, which may require some dependencies to be required.  In one go,sudo apt install python3.9 python3.9-dev python3.9-distutils python3.9-venvTo run the application from this directory (i.e., for development):Create a virtual environment:python3.9 -m venv venvSource the environment:source venv/bin/activateInstall the requirements:pip install -r requirements.txtInstall LogQS Client in develop mode:pip install -e .Run the module:python -m lqs-client