Skip to main content

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

Metadata

Release files for esguard 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for esguard 0.1.9
File Size Uploaded
esguard-0.1.9.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for esguard 0.1.9
File Interpreter ABI Platform
esguard-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 5.4 kB

Release files / esguard-0.1.9.tar.gz

Download URL esguard-0.1.9.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1a5fc738dcca1602c5120b76b1f034d2d4ddea8cbc6e2eb885793b1c341bc58f
BLAKE2b-256 checksum
How to use checksums
b7c4c392cbf7f1dda5c49ef8503db07cd084ecb24194ccc31ead1862ad57fe7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.9.0 Darwin/18.7.0

Release files / esguard-0.1.9-py3-none-any.whl

Download URL esguard-0.1.9-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
afa7fd879503fd9a97f15148a9fa5477ef454a73fd55ae48cd0893ba1c2521de
BLAKE2b-256 checksum
How to use checksums
2556ef7ef7ce68e00b0c0dbaa08d8c1cb471f86b70dcc8ec02996cee8be5e468
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.9.0 Darwin/18.7.0

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page