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.7.tar.gz
(2.6 kB
view details)
Built Distribution
File details
Details for the file esguard-0.1.7.tar.gz
.
File metadata
- Download URL: esguard-0.1.7.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 | 16151021ec1ac1ed6abc7144e96bcb4e661ed997131c38b2cb01d2e8d2a93e0b |
|
MD5 | 5dc4906314d367d83c5dbdcb3af9650f |
|
BLAKE2b-256 | a1739a6887aa1cad69db60d6ec4ac7411e80952003f8f457bee5333d5c0541a0 |
File details
Details for the file esguard-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: esguard-0.1.7-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 | f37a08f4b799f9d0d4da79eed212b95f4214356c26e0860433577d641d8f08a2 |
|
MD5 | 14f4af6edcd56cd3fe98d6cd2b6547ab |
|
BLAKE2b-256 | e5c1be9edc434d098e07afb0c0f5679fede2799282541b27347f28b1996e91cf |