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.6.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: esguard-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 2fbc0b4bf60593c8f56355032624698244f2839d8e6b818ba2fe633862153a70
MD5 926f9dde1b19c725d4e3a4e501600b19
BLAKE2b-256 ff3c6a66316bc8e456d7536e838bf933e67a5124ee9e89e25c4bbec9c1606f70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: esguard-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 137fb3550b118305b0f2a5cfd4818d5aa5b25b7f8d4068d0fc08af4ff660cd73
MD5 b0c2619a3632d6d9737646543cb88d7d
BLAKE2b-256 1fabd08d5d141e6a40680f9e1f041805d53c470a64f5fc2bc27bb56e645b381e

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