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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: esguard-0.1.9.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.9.tar.gz
Algorithm Hash digest
SHA256 1a5fc738dcca1602c5120b76b1f034d2d4ddea8cbc6e2eb885793b1c341bc58f
MD5 5d1b92cdb8e06e297a695bed89e2c569
BLAKE2b-256 b7c4c392cbf7f1dda5c49ef8503db07cd084ecb24194ccc31ead1862ad57fe7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: esguard-0.1.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 afa7fd879503fd9a97f15148a9fa5477ef454a73fd55ae48cd0893ba1c2521de
MD5 aedf4ac0c20f0d8cf336b1c46fc9731d
BLAKE2b-256 2556ef7ef7ce68e00b0c0dbaa08d8c1cb471f86b70dcc8ec02996cee8be5e468

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