esguard provides a Python decorator that waits for processing while monitoring the load of Elasticsearch.
Project description
esguard
esguard provides a Python decorator that waits for processing while monitoring the load of Elasticsearch.
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
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 263e29e23e42bebddbc7389253b325feab957323e27d5aff7de924eabba7564f |
|
MD5 | ce7bc831fdd20a817732c26fac4270bc |
|
BLAKE2b-256 | 192d7717c59d264c68ff958fff3791f7b7748441cc5332ee9fcfc95d9d5cde4d |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff4288d4f3f7cd2b4e0951d1a97e8de5ca5b515cceca6d9ca51d011d85e6df21 |
|
MD5 | 4b16aab0add15e4a0376ae0a45b1bfca |
|
BLAKE2b-256 | 40f50f2ae56680bb499b246706ad5f25e2e578c8c5a0b6b44ada641301196808 |