sciveo 0.1.47__tar.gz → 0.1.48__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sciveo-0.1.47 → sciveo-0.1.48}/PKG-INFO +1 -1
- sciveo-0.1.48/sciveo/monitoring/process/memory.py +37 -0
- sciveo-0.1.48/sciveo/tools/aws/__init__.py +0 -0
- sciveo-0.1.48/sciveo/version.py +2 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo.egg-info/PKG-INFO +1 -1
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo.egg-info/SOURCES.txt +2 -0
- sciveo-0.1.47/sciveo/version.py +0 -2
- {sciveo-0.1.47 → sciveo-0.1.48}/README.md +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/api/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/api/base.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/api/upload.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/cli.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/common/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/common/configuration.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/common/model.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/common/optimizers.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/common/sampling.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/content/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/content/dataset.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/content/experiment.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/content/project.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/content/runner.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/ml/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/ml/base.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/ml/encoders/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/ml/encoders/base.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/ml/encoders/normalizer.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/ml/nlp/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/ml/nlp/search.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/ml/time_series/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/ml/time_series/dataset.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/ml/time_series/predictor.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/ml/time_series/trainer.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/ml/time_series/window_generator.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/base.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/job_daemon.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/layouts/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/layouts/base.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/pipeline.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/postprocessors/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/postprocessors/base.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/postprocessors/default.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/audio/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/audio/audio.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/audio/audio_extractor_process.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/aws.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/base.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/file/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/file/archive.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/image/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/image/album.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/image/album_in_image.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/image/depth_esimation.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/image/embeddings.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/image/filters.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/image/generators.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/image/histogram.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/image/mask.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/image/object_detection.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/image/resize.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/image/segmentation.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/image/watermark.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/media_info.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/nlp/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/nlp/address.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/qr.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/sci/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/sci/base.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/sci/dataset.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/sci/time_series/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/sci/time_series/predictor.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/sci/time_series/trainer.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/tpu_base.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/video/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/video/generators.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/video/motion_detection.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/video/resize.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/video/video_album.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/video/video_frames.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/video/video_resample.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/queues.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/server.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/web/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/web/server.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/tools/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/tools/nvr.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/ml/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/ml/base.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/ml/dataset/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/ml/dataset/object_detection.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/ml/evaluation/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/ml/evaluation/object_detection.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/ml/images/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/ml/images/base.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/ml/images/description.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/ml/images/embeddings.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/ml/images/object_detection.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/ml/images/segmentation.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/ml/images/tools.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/ml/images/transformers.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/ml/nlp/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/ml/nlp/embeddings.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/ml/nlp/tokenizers/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/ml/nlp/tokenizers/bpe.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/ml/video/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/ml/video/description.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/monitoring/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/monitoring/monitor.py +0 -0
- {sciveo-0.1.47/sciveo/network → sciveo-0.1.48/sciveo/monitoring/process}/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/monitoring/start.py +0 -0
- {sciveo-0.1.47/sciveo/tools → sciveo-0.1.48/sciveo/network}/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/network/camera.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/network/sniffer.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/network/tools.py +0 -0
- {sciveo-0.1.47/sciveo/tools/aws → sciveo-0.1.48/sciveo/tools}/__init__.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/tools/array.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/tools/aws/priority_queue.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/tools/aws/s3.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/tools/common.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/tools/complexity.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/tools/compress.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/tools/configuration.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/tools/crypto.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/tools/daemon.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/tools/formating.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/tools/hardware.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/tools/http.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/tools/logger.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/tools/os.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/tools/queue.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/tools/random.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/tools/remote.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/tools/simple_counter.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/tools/synchronized.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo/tools/timers.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo.egg-info/dependency_links.txt +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo.egg-info/entry_points.txt +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo.egg-info/requires.txt +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/sciveo.egg-info/top_level.txt +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/setup.cfg +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/setup.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/test/test_complexity.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/test/test_compress.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/test/test_configuration.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/test/test_crypto.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/test/test_ml_datasets.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/test/test_monitoring.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/test/test_runner.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/test/test_sampling.py +0 -0
- {sciveo-0.1.47 → sciveo-0.1.48}/test/test_tokenizers.py +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Pavlin Georgiev, Softel Labs
|
|
3
|
+
#
|
|
4
|
+
# This is a proprietary file and may not be copied,
|
|
5
|
+
# distributed, or modified without express permission
|
|
6
|
+
# from the owner. For licensing inquiries, please
|
|
7
|
+
# contact pavlin@softel.bg.
|
|
8
|
+
#
|
|
9
|
+
# 2025
|
|
10
|
+
#
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
import psutil
|
|
14
|
+
import subprocess
|
|
15
|
+
import time
|
|
16
|
+
import threading
|
|
17
|
+
|
|
18
|
+
from sciveo.tools.daemon import *
|
|
19
|
+
from sciveo.tools.logger import *
|
|
20
|
+
from sciveo.tools.simple_counter import RunCounter
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class MemoryMonitorCommandDaemon(DaemonBase):
|
|
24
|
+
def __init__(self, threshold_percent=90, period=5, command="echo 'Low Memory!'"):
|
|
25
|
+
super().__init__(period=period)
|
|
26
|
+
self.threshold_percent = threshold_percent
|
|
27
|
+
self.command = command
|
|
28
|
+
self.used_percent = 0
|
|
29
|
+
self.printer = RunCounter(60, lambda: debug(f"Memory usage: {self.used_percent}%", f"threshold: {self.threshold_percent}%"))
|
|
30
|
+
|
|
31
|
+
def loop(self):
|
|
32
|
+
mem = psutil.virtual_memory()
|
|
33
|
+
self.used_percent = mem.percent
|
|
34
|
+
self.printer.run()
|
|
35
|
+
if self.used_percent > self.threshold_percent:
|
|
36
|
+
warning(f"⚠️ Memory usage {self.used_percent}% exceeded {self.threshold_percent}%, executing command: {self.command}")
|
|
37
|
+
subprocess.run(self.command, shell=True)
|
|
File without changes
|
|
@@ -112,6 +112,8 @@ sciveo/ml/video/description.py
|
|
|
112
112
|
sciveo/monitoring/__init__.py
|
|
113
113
|
sciveo/monitoring/monitor.py
|
|
114
114
|
sciveo/monitoring/start.py
|
|
115
|
+
sciveo/monitoring/process/__init__.py
|
|
116
|
+
sciveo/monitoring/process/memory.py
|
|
115
117
|
sciveo/network/__init__.py
|
|
116
118
|
sciveo/network/camera.py
|
|
117
119
|
sciveo/network/sniffer.py
|
sciveo-0.1.47/sciveo/version.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/audio/audio_extractor_process.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/sci/time_series/__init__.py
RENAMED
|
File without changes
|
{sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/sci/time_series/predictor.py
RENAMED
|
File without changes
|
{sciveo-0.1.47 → sciveo-0.1.48}/sciveo/media/pipelines/processors/sci/time_series/trainer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|