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).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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file esguard-0.1.9.tar.gz.
File metadata
- Download URL: esguard-0.1.9.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 |
1a5fc738dcca1602c5120b76b1f034d2d4ddea8cbc6e2eb885793b1c341bc58f
|
|
| MD5 |
5d1b92cdb8e06e297a695bed89e2c569
|
|
| BLAKE2b-256 |
b7c4c392cbf7f1dda5c49ef8503db07cd084ecb24194ccc31ead1862ad57fe7c
|
File details
Details for the file esguard-0.1.9-py3-none-any.whl.
File metadata
- Download URL: esguard-0.1.9-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 |
afa7fd879503fd9a97f15148a9fa5477ef454a73fd55ae48cd0893ba1c2521de
|
|
| MD5 |
aedf4ac0c20f0d8cf336b1c46fc9731d
|
|
| BLAKE2b-256 |
2556ef7ef7ce68e00b0c0dbaa08d8c1cb471f86b70dcc8ec02996cee8be5e468
|