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.4.tar.gz
(2.6 kB
view details)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfe23416e646d614749f2394756ff81fb90c563b5596935bf529259926bce1c4 |
|
MD5 | 834a68cb3ea8a8d2d8c0598548ca7da4 |
|
BLAKE2b-256 | 8ada9fb01041e416b1b4cb11c8ab690e708495773834541c26d862d9b10731a9 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e7cd6f2092bf3d8757083b05d90208e727e381079de2cdc6f9581b09bd73619 |
|
MD5 | 17bcac55dff875c26f00dfb08947b60f |
|
BLAKE2b-256 | a9063a7a3b8eb31f7332f8a505fd06e07868ba29e4a0fdaccee63f5b5e21e861 |