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
esguard-0.1.8.tar.gz
(2.6 kB
view details)
Built Distribution
File details
Details for the file esguard-0.1.8.tar.gz
.
File metadata
- Download URL: esguard-0.1.8.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 | 2df60edc9baeb6480aaec2859166b128c2127293a010021e1930e0653904a6c8 |
|
MD5 | c086d58358d39e450ed09f1a04064180 |
|
BLAKE2b-256 | 30d7d108370246234484350910b13c41e06b0dd5947b67d03054aed754ead386 |
File details
Details for the file esguard-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: esguard-0.1.8-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 | 12eb2a4718b52e9e67a577c07d4d89c86583a0c8161204e1c4dda005016bc15d |
|
MD5 | d7b306cabdf14141b042e126a15b232d |
|
BLAKE2b-256 | bc90512bf947a095757b584a753d8fc9f776be1cdf7f82aaf3e9fe2c91d8934b |