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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: esguard-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 dfe23416e646d614749f2394756ff81fb90c563b5596935bf529259926bce1c4
MD5 834a68cb3ea8a8d2d8c0598548ca7da4
BLAKE2b-256 8ada9fb01041e416b1b4cb11c8ab690e708495773834541c26d862d9b10731a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: esguard-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7e7cd6f2092bf3d8757083b05d90208e727e381079de2cdc6f9581b09bd73619
MD5 17bcac55dff875c26f00dfb08947b60f
BLAKE2b-256 a9063a7a3b8eb31f7332f8a505fd06e07868ba29e4a0fdaccee63f5b5e21e861

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