Skip to main content

esguard provides a Python decorator that waits for processing while monitoring the load of Elasticsearch.

Project description

esguard-logo

esguard

esguard provides a Python decorator that waits for processing while monitoring the load of Elasticsearch.

PyPi version PyTest

Quick Start

You need to launch elasticsearch before quick start.

from esguard import ESGuard


@ESGuard(os_cpu_percent=95).decotator()
def mock_func(x):
    return x

self.assertEqual(mock_func(1), 1)

Test

You need to launch elasticsearch before testing.

$ docker compose up -d --build
$ poetry run pytest

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

esguard-0.1.5.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

esguard-0.1.5-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file esguard-0.1.5.tar.gz.

File metadata

  • Download URL: esguard-0.1.5.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.0 Darwin/18.7.0

File hashes

Hashes for esguard-0.1.5.tar.gz
Algorithm Hash digest
SHA256 263e29e23e42bebddbc7389253b325feab957323e27d5aff7de924eabba7564f
MD5 ce7bc831fdd20a817732c26fac4270bc
BLAKE2b-256 192d7717c59d264c68ff958fff3791f7b7748441cc5332ee9fcfc95d9d5cde4d

See more details on using hashes here.

File details

Details for the file esguard-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: esguard-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.0 Darwin/18.7.0

File hashes

Hashes for esguard-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ff4288d4f3f7cd2b4e0951d1a97e8de5ca5b515cceca6d9ca51d011d85e6df21
MD5 4b16aab0add15e4a0376ae0a45b1bfca
BLAKE2b-256 40f50f2ae56680bb499b246706ad5f25e2e578c8c5a0b6b44ada641301196808

See more details on using hashes here.

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