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.6.tar.gz
(2.6 kB
view details)
Built Distribution
File details
Details for the file esguard-0.1.6.tar.gz
.
File metadata
- Download URL: esguard-0.1.6.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 | 2fbc0b4bf60593c8f56355032624698244f2839d8e6b818ba2fe633862153a70 |
|
MD5 | 926f9dde1b19c725d4e3a4e501600b19 |
|
BLAKE2b-256 | ff3c6a66316bc8e456d7536e838bf933e67a5124ee9e89e25c4bbec9c1606f70 |
File details
Details for the file esguard-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: esguard-0.1.6-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 | 137fb3550b118305b0f2a5cfd4818d5aa5b25b7f8d4068d0fc08af4ff660cd73 |
|
MD5 | b0c2619a3632d6d9737646543cb88d7d |
|
BLAKE2b-256 | 1fabd08d5d141e6a40680f9e1f041805d53c470a64f5fc2bc27bb56e645b381e |