From 8be2846bee58ec8adc0bd5f99a3dab1b1ff2ffc9 Mon Sep 17 00:00:00 2001 From: Zerohertz Date: Thu, 9 Nov 2023 14:58:42 +0900 Subject: [PATCH 1/5] :art: Update: Logger Format --- zerohertzLib/logging/Logging.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zerohertzLib/logging/Logging.py b/zerohertzLib/logging/Logging.py index 1a3f5354..b7560e7c 100644 --- a/zerohertzLib/logging/Logging.py +++ b/zerohertzLib/logging/Logging.py @@ -18,15 +18,15 @@ class Logger: Examples: >>> logger = zz.logging.Logger("TEST_1") >>> logger.debug("debug") - 2023-11-07 21:41:36,505 | TEST_1 | DEBUG | debug + 2023-11-07 21:41:36,505 | DEBUG | TEST_1 | debug >>> logger.info("info") - 2023-11-07 21:41:36,505 | TEST_1 | INFO | info + 2023-11-07 21:41:36,505 | INFO | TEST_1 | info >>> logger.warning("warning") - 2023-11-07 21:41:36,505 | TEST_1 | WARNING | warning + 2023-11-07 21:41:36,505 | WARNING | TEST_1 | warning >>> logger.error("error") - 2023-11-07 21:41:36,505 | TEST_1 | ERROR | error + 2023-11-07 21:41:36,505 | ERROR | TEST_1 | error >>> logger.critical("critical") - 2023-11-07 21:41:36,505 | TEST_1 | CRITICAL | critical + 2023-11-07 21:41:36,505 | CRITICAL | TEST_1 | critical """ def __init__( @@ -40,7 +40,7 @@ def __init__( self.logger = logging.getLogger(logger_name) self.logger.setLevel(loggerLevel) formatter = logging.Formatter( - "%(asctime)s | %(name)s | %(levelname)-8s | %(message)s" + "%(asctime)s | %(levelname)-8s | %(name)s | %(message)s" ) console_handler = logging.StreamHandler() console_handler.setLevel(consoleLevel) From 4925000b6717fe78f3c748b7c027006b59f6b1c5 Mon Sep 17 00:00:00 2001 From: Zerohertz Date: Thu, 9 Nov 2023 15:11:35 +0900 Subject: [PATCH 2/5] :memo: Fix: Triton Client Class Annotation --- zerohertzLib/MLOps/triton.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zerohertzLib/MLOps/triton.py b/zerohertzLib/MLOps/triton.py index 374c55db..f7200608 100644 --- a/zerohertzLib/MLOps/triton.py +++ b/zerohertzLib/MLOps/triton.py @@ -15,7 +15,7 @@ class tritonClientURL: Attributes: inputs (``List[Dict[str, any]]``): 지정된 model의 입력 - output (``List[Dict[str, any]]``): 지정된 model의 출력 + outputs (``List[Dict[str, any]]``): 지정된 model의 출력 Methods: __call__: @@ -88,7 +88,7 @@ class tritonClientK8s(tritonClientURL): Attributes: inputs (``List[Dict[str, any]]``): 지정된 model의 입력 - output (``List[Dict[str, any]]``): 지정된 model의 출력 + outputs (``List[Dict[str, any]]``): 지정된 model의 출력 Methods: __call__: From dd1b8ad6d2413f3b85cd0e3b4bd76beecf7011cd Mon Sep 17 00:00:00 2001 From: Zerohertz Date: Sun, 12 Nov 2023 17:35:51 +0900 Subject: [PATCH 3/5] :tada: Feat: Discord Logger --- test/test_logging.py | 13 ++++++++++++ zerohertzLib/api/discord.py | 15 +++++++++++--- zerohertzLib/logging/Logging.py | 35 ++++++++++++++++++++++++++++++++- 3 files changed, 59 insertions(+), 4 deletions(-) diff --git a/test/test_logging.py b/test/test_logging.py index 99fc5b9a..11e9ec85 100644 --- a/test/test_logging.py +++ b/test/test_logging.py @@ -8,3 +8,16 @@ def test_logging(): log.warning("warning") log.error("error") log.critical("critical") + + +def test_logging_discord(): + log = zz.logging.Logger( + "TEST_3", + loggerLevel=20, + discord="https://discord.com/api/webhooks/1170962638583373904/xVJKW1KkNo7Pc1HykJ85cHs_4SvRkKCbOvbf1qe1j8QXOnJyTGyJy8T7sI7kvfA8SGb-", + ) + log.debug("debug") + log.info("info") + log.warning("warning") + log.error("error") + log.critical("critical") diff --git a/zerohertzLib/api/discord.py b/zerohertzLib/api/discord.py index 20176b8a..2ed8ec90 100644 --- a/zerohertzLib/api/discord.py +++ b/zerohertzLib/api/discord.py @@ -1,6 +1,6 @@ import json import time -from typing import List +from typing import List, Optional import requests @@ -10,12 +10,18 @@ def _split_string_in_chunks(text, chunk_size): def send_discord_message( - webhook_url: str, message: str + webhook_url: str, + message: str, + t: Optional[int] = 1, + codeblock: Optional[bool] = False, ) -> List[requests.models.Response]: """Discord Webhook에 메세지 전송 Args: + webhook_url (``str``): Discord Webhook의 URL message (``str``): Discord Webhook의 입력 + t (``int``): ``message`` 의 전송 간 간격 + codeblock (``bool``): 전송되는 메세지의 스타일 Returns: ``List[requests.models.Response]``: Discord Webhook의 응답 @@ -29,9 +35,12 @@ def send_discord_message( contents = _split_string_in_chunks(message, 1500) responses = [] for content in contents: + if codeblock: + content = "```\n" + content + "\n```" data = {"content": content} responses.append( requests.post(webhook_url, data=json.dumps(data), headers=headers) ) - time.sleep(1) + if t > 0: + time.sleep(t) return responses diff --git a/zerohertzLib/logging/Logging.py b/zerohertzLib/logging/Logging.py index b7560e7c..2328eb90 100644 --- a/zerohertzLib/logging/Logging.py +++ b/zerohertzLib/logging/Logging.py @@ -1,5 +1,10 @@ +import io import logging -from typing import Optional +from typing import List, Optional + +import requests + +from zerohertzLib.api import send_discord_message class Logger: @@ -11,6 +16,7 @@ class Logger: Args: logger_name (``Optional[str]``): Logger의 이름 file_name(``Optional[str]``): ``.log`` 파일의 이름 (미입력 시 미출력) + discord (``Optional[str]``): Discord webhook의 URL (``loggerLevel`` 적용) loggerLevel (``Optional[int]``): ``logging.getLogger`` 의 level consoleLevel (``Optional[int]``): ``logging.StreamHandler`` 의 level fileLevel (``Optional[int]``): ``logging.FileHandler`` 의 level @@ -33,6 +39,7 @@ def __init__( self, logger_name: Optional[str] = None, file_name: Optional[str] = None, + discord: Optional[str] = None, loggerLevel: Optional[int] = logging.DEBUG, consoleLevel: Optional[int] = logging.DEBUG, fileLevel: Optional[int] = logging.DEBUG, @@ -51,18 +58,44 @@ def __init__( file_handler.setLevel(fileLevel) file_handler.setFormatter(formatter) self.logger.addHandler(file_handler) + self.discord = discord + if not self.discord is None: + self.log_stream = io.StringIO() + stream_handler = logging.StreamHandler(self.log_stream) + stream_handler.setLevel(loggerLevel) + stream_handler.setFormatter(formatter) + self.logger.addHandler(stream_handler) def debug(self, log: str) -> None: self.logger.debug(log) + if not self.discord is None: + self._send_discord_message() def info(self, log: str) -> None: self.logger.info(log) + if not self.discord is None: + self._send_discord_message() def warning(self, log: str) -> None: self.logger.warning(log) + if not self.discord is None: + self._send_discord_message() def error(self, log: str) -> None: self.logger.error(log) + if not self.discord is None: + self._send_discord_message() def critical(self, log: str) -> None: self.logger.critical(log) + if not self.discord is None: + self._send_discord_message() + + def _send_discord_message(self) -> List[requests.models.Response]: + # TODO: response에 대한 처리 + response = send_discord_message( + self.discord, self.log_stream.getvalue(), t=0, codeblock=True + ) + self.log_stream.seek(0) + self.log_stream.truncate() + return response From f63d7b563f7706447b8eefc31fc96b09b9a8b3e3 Mon Sep 17 00:00:00 2001 From: Zerohertz Date: Sun, 12 Nov 2023 08:42:01 +0000 Subject: [PATCH 4/5] :hammer: Update: Version (#32) --- zerohertzLib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerohertzLib/__init__.py b/zerohertzLib/__init__.py index 43a34de3..145d986c 100644 --- a/zerohertzLib/__init__.py +++ b/zerohertzLib/__init__.py @@ -1,3 +1,3 @@ from zerohertzLib import MLOps, algorithm, api, logging, plot, vision -__version__ = "v0.1.7" +__version__ = "v0.1.8" From d7feda7664643835bbf9d8770f34681765dc060c Mon Sep 17 00:00:00 2001 From: Zerohertz Date: Sun, 12 Nov 2023 08:42:21 +0000 Subject: [PATCH 5/5] :memo: Docs: Build Sphinx (#32) --- docs/.buildinfo | 2 +- docs/_static/documentation_options.js | 2 +- docs/genindex.html | 8 ++++---- docs/index.html | 4 ++-- docs/modules.html | 4 ++-- docs/objects.inv | Bin 686 -> 684 bytes docs/py-modindex.html | 4 ++-- docs/search.html | 4 ++-- docs/searchindex.js | 2 +- docs/zerohertzLib.MLOps.html | 12 ++++++------ docs/zerohertzLib.algorithm.html | 4 ++-- docs/zerohertzLib.api.html | 13 +++++++++---- docs/zerohertzLib.html | 4 ++-- docs/zerohertzLib.logging.html | 17 +++++++++-------- docs/zerohertzLib.plot.html | 4 ++-- docs/zerohertzLib.vision.html | 4 ++-- 16 files changed, 47 insertions(+), 41 deletions(-) diff --git a/docs/.buildinfo b/docs/.buildinfo index 9acd5360..a82a8dac 100644 --- a/docs/.buildinfo +++ b/docs/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 4c91fe6e2b1b77db2bc455e533bc538f +config: 91f61221e22a68fcc61e6bd22737c381 tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/docs/_static/documentation_options.js b/docs/_static/documentation_options.js index fc3be59e..fede61e1 100644 --- a/docs/_static/documentation_options.js +++ b/docs/_static/documentation_options.js @@ -1,6 +1,6 @@ var DOCUMENTATION_OPTIONS = { URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'), - VERSION: 'v0.1.7', + VERSION: 'v0.1.8', LANGUAGE: 'en', COLLAPSE_INDEX: false, BUILDER: 'html', diff --git a/docs/genindex.html b/docs/genindex.html index c56119a0..9a156e03 100644 --- a/docs/genindex.html +++ b/docs/genindex.html @@ -3,14 +3,14 @@ - Index — zerohertzLib v0.1.7 documentation + Index — zerohertzLib v0.1.8 documentation - + @@ -219,10 +219,10 @@

M

O

diff --git a/docs/index.html b/docs/index.html index 51e8a289..d95dcada 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4,14 +4,14 @@ - Indices and tables — zerohertzLib v0.1.7 documentation + Indices and tables — zerohertzLib v0.1.8 documentation - + diff --git a/docs/modules.html b/docs/modules.html index c3b35499..008ba167 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -4,14 +4,14 @@ - zerohertzLib — zerohertzLib v0.1.7 documentation + zerohertzLib — zerohertzLib v0.1.8 documentation - + diff --git a/docs/objects.inv b/docs/objects.inv index 86a2a621501b296a5139722b9a1af9a9f0a15353..9daa575c717567dfe21f62e2a46d66dddb505b7f 100644 GIT binary patch delta 404 zcmV;F0c-xQ1*`?IBLRP!m8ssPEhViU$d0*sAUo*NKw?g%MOJmZdOuXs6+Edu%U>OB z--^;ODNeU@!b^aPy8^e70GMR z8dJEA#wDdp(0DWkg>*zlrJenPik7X%Is@63_5ztL+IYo&2}ggRXz5BUP)e$mSWN8Y zN~kxi#CVqrX`#!^QnXY$ocL+DH1T}vr0HbqH43a!2|rQ7<`vUsiT!wnE9_sH?hK*< zaPo8r1|3$@JIeN{jm&8=%qt^b#Za)BM&KQ3L+&{)fOqLJuJ(H9clUQQsS#OrO1=gw zK_e^(GPvNNH}-$T0dRB3MuD?@aG`T9T$J?O$*|;<=O@|BP-lER9c&E=-<1Ze%E~u% zYtH7`$)D_d?1g&1w@*{Jw}Kj6zMPs5^LPw0%>yVj#fN~?m=J^dJru=;j3C^$*C=*q yMd))w4xz^W6vNFQAr$UxA#7j2G3H0{qQJWqq75Y-W delta 406 zcmV;H0crlM1+E3KBLROJOI;D_-Puyo>T&FttH-f}E{r4QR9a$H$7}aPC0)Oh+Oz!C z(e|w<4U^(@J14vZsMzauKx84PVTtfG>`Y*+g8k($a7b=qu6k3$^?x^V^By(WK`POFQ{nMdaN^$ZD}u%*_w?P?3aIV1d5if!~&(HT8YKP zUao|C!%B>IxsVpR%q&GqrNfDzhD#IAw@#W)wqB#aDwXgPC2U?XZI;-NXSl-tmFdnP z8UQCxhhWfQHNB&3pW4Wr7Q?(U@>L84n`s2zkv8O>;{te>9^-1Shkkc|Hqknmk;z^bf# zL$~H^o}K*3zQH{=j%>`yV={1HOo&KAP<^&4Y;6fX+ATOry|(lHL+tawoHDHxdl0k<6jz<_tg AEC2ui diff --git a/docs/py-modindex.html b/docs/py-modindex.html index d04c0b36..a90c0904 100644 --- a/docs/py-modindex.html +++ b/docs/py-modindex.html @@ -3,14 +3,14 @@ - Python Module Index — zerohertzLib v0.1.7 documentation + Python Module Index — zerohertzLib v0.1.8 documentation - + diff --git a/docs/search.html b/docs/search.html index 55e572cc..eff4d54d 100644 --- a/docs/search.html +++ b/docs/search.html @@ -3,7 +3,7 @@ - Search — zerohertzLib v0.1.7 documentation + Search — zerohertzLib v0.1.8 documentation @@ -11,7 +11,7 @@ - + diff --git a/docs/searchindex.js b/docs/searchindex.js index b19c2d59..a7b7fe2f 100644 --- a/docs/searchindex.js +++ b/docs/searchindex.js @@ -1 +1 @@ -Search.setIndex({"docnames": ["index", "modules", "zerohertzLib", "zerohertzLib.MLOps", "zerohertzLib.algorithm", "zerohertzLib.api", "zerohertzLib.logging", "zerohertzLib.plot", "zerohertzLib.vision"], "filenames": ["index.rst", "modules.rst", "zerohertzLib.rst", "zerohertzLib.MLOps.rst", "zerohertzLib.algorithm.rst", "zerohertzLib.api.rst", "zerohertzLib.logging.rst", "zerohertzLib.plot.rst", "zerohertzLib.vision.rst"], "titles": ["Indices and tables", "zerohertzLib", "zerohertzLib package", "zerohertzLib.MLOps package", "zerohertzLib.algorithm package", "zerohertzLib.api package", "zerohertzLib.logging package", "zerohertzLib.plot package", "zerohertzLib.vision package"], "terms": {"zerohertz": 0, "": [0, 3], "librari": 0, "sudo": 0, "apt": 0, "instal": 0, "python3": 0, "opencv": 0, "y": [0, 7], "pip": 0, "zerohertzlib": 0, "import": [0, 3, 4, 5, 7, 8], "zz": [0, 3, 4, 5, 6, 7, 8], "packag": [0, 1], "index": 0, "modul": [0, 1], "search": [0, 5], "page": 0, "subpackag": 1, "mlop": [1, 2], "algorithm": [1, 2], "api": [1, 2], "log": [1, 2], "plot": [1, 2], "vision": [1, 2], "content": 1, "class": [3, 6], "tritonclientk8": 3, "svc_name": 3, "str": [3, 5, 6, 7, 8], "namespac": 3, "model_nam": 3, "port": 3, "int": [3, 4, 6, 7, 8], "none": [3, 6, 7, 8], "8001": 3, "base": [3, 6], "tritonclienturl": 3, "kubernetes\uc5d0\uc11c": 3, "\uc2e4\ud589\ub418\ub294": 3, "triton": 3, "infer": 3, "server\uc758": 3, "\ud638\ucd9c\uc744": 3, "\uc704\ud55c": [3, 4], "paramet": [3, 4, 5, 6, 7, 8], "\ud638\ucd9c\ud560": 3, "kubernet": 3, "service\uc758": 3, "\uc774\ub984": [3, 6], "server": 3, "\ub0b4": [3, 8], "model\uc758": 3, "option": [3, 6, 7, 8], "grpc": 3, "\ud1b5\uc2e0": 3, "\ubc88\ud638": 3, "input": 3, "\uc9c0\uc815\ub41c": 3, "\uc785\ub825": [3, 4, 5, 7], "type": [3, 4, 5, 7, 8], "list": [3, 4, 5, 7], "dict": [3, 7], "ani": 3, "output": 3, "\ucd9c\ub825": [3, 5], "__call__": 3, "model": [3, 5], "\ud638\ucd9c": 3, "\uc218\ud589": 3, "arg": 3, "\uc2dc": [3, 6, 7], "\uc0ac\uc6a9\ub420": 3, "self": 3, "return": [3, 4, 5, 7, 8], "\ud638\ucd9c\ub41c": 3, "\uacb0\uacfc": 3, "np": [3, 7], "ndarrai": 3, "exampl": [3, 4, 5, 6, 7, 8], "kubectl": 3, "get": 3, "svc": 3, "n": [3, 4], "yolo": 3, "name": 3, "cluster": 3, "ip": 3, "extern": 3, "ag": 3, "fastapi": 3, "clusterip": 3, "10": [3, 4, 6, 7], "106": 3, "72": 3, "126": 3, "80": 3, "tcp": 3, "90": 3, "96": 3, "28": 3, "172": 3, "docker": 3, "exec": 3, "api_contain": 3, "bash": 3, "python": 3, "tc": 3, "imag": 3, "data_typ": 3, "type_fp32": 3, "dim": 3, "1": [3, 4, 7], "3": [3, 4, 5], "640": 3, "output0": 3, "25200": 3, "85": 3, "zero": 3, "arrai": 3, "90108061e": 3, "00": 3, "51982164e": 3, "7": [3, 4], "49971962e": 3, "2": [3, 4, 7], "21481919e": 3, "03": 3, "17585063e": 3, "36753917e": 3, "dtype": 3, "float32": 3, "url": 3, "object": [3, 5, 6], "\uc678\ubd80\uc5d0\uc11c": 3, "localhost": 3, "soe": 4, "siev": 4, "eratosthen": 4, "\uad6c\ud558\uace0\uc790": 4, "\ud558\ub294": 4, "\uc18c\uc218": 4, "\ubc94\uc704\uc758": 4, "\ucd5c\ub313\uac12": 4, "n\uae4c\uc9c0": 4, "\uc874\uc7ac\ud558\ub294": [4, 8], "5": [4, 5], "bf": 4, "map": 4, "start": 4, "bfs\ub97c": 4, "\uc218\ud589\ud558\uae30": 4, "\ud568\uc218": 4, "\uadf8\ub798\ud504": 4, "\uadf8\ub798\ud504\uc758": 4, "\uc2dc\uc791": 4, "\uc9c0\uc810": 4, "\ubc29\ubb38": 4, "\uc21c\uc11c": 4, "4": 4, "df": 4, "dfs\ub97c": 4, "api_kei": 5, "openaiobject": 5, "openai\uc758": 5, "\ud0a4": 5, "\ub4f1\ub85d": 5, "\uc704\uc640": 5, "\uac19\uc774": 5, "openai": 5, "\ud398\uc774\uc9c0\uc5d0\uc11c": 5, "\ubc1c\uae09": 5, "\ud6c4": 5, "api\ub97c": 5, "\ub4f1\ub85d\ud574\uc57c": 5, "\uc0ac\uc6a9\ud560": 5, "\uc218": 5, "\uc788\ub2e4": 5, "kei": 5, "\uc0ac\uc6a9": 5, "\uac00\ub2a5\ud55c": 5, "model\ub4e4\uc758": 5, "\uc815\ubcf4": 5, "openai_object": 5, "sk": 5, "json": 5, "data": [5, 7], "id": 5, "text": 5, "babbag": 5, "doc": 5, "001": 5, "creat": 5, "owned_bi": 5, "dev": 5, "gpt": 5, "turbo": 5, "16k": 5, "0613": 5, "messag": 5, "\uc2e4\ud589": 5, "chatgpt": 5, "5\uc758": 5, "hi": 5, "hello": 5, "how": 5, "can": 5, "i": [5, 7], "assist": 5, "you": 5, "todai": 5, "send_discord_messag": 5, "webhook_url": 5, "respons": 5, "discord": 5, "webhook\uc5d0": 5, "\uba54\uc138\uc9c0": 5, "\uc804\uc1a1": 5, "webhook\uc758": 5, "\uc751\ub2f5": 5, "request": 5, "http": 5, "com": 5, "webhook": 5, "test": 5, "204": 5, "logger": 6, "logger_nam": 6, "file_nam": 6, "loggerlevel": 6, "consolelevel": 6, "filelevel": 6, "\uc774\uc058\uac8c": 6, "log\ub97c": 6, "\ucc0d\uc5b4\ubcf4\ub294": 6, "\ub354": 6, "\uc608\ubed0\uc9c0\uace0": 6, "\uc2f6\uc2b5\ub2c8\ub2e4": 6, "logger\uc758": 6, "\ud30c\uc77c\uc758": 6, "\ubbf8\uc785\ub825": 6, "\ubbf8\ucd9c\ub825": 6, "getlogg": 6, "\uc758": 6, "level": 6, "streamhandl": 6, "filehandl": 6, "test_1": 6, "debug": 6, "2023": 6, "11": 6, "07": 6, "21": 6, "41": 6, "36": 6, "505": 6, "info": 6, "warn": 6, "error": 6, "critic": 6, "bar": 7, "float": 7, "xlab": 7, "\ubcc0\uc218": 7, "\ub2e8\uc704": 7, "ylab": 7, "\ube48\ub3c4": 7, "titl": 7, "tmp": [7, 8], "ratio": 7, "tupl": 7, "15": [7, 8], "dpi": 7, "300": 7, "rot": 7, "0": 7, "per": [7, 8], "bool": 7, "true": 7, "dictionary\ub85c": 7, "\uc785\ub825\ubc1b\uc740": 7, "\ub370\uc774\ud130\ub97c": 7, "graph\ub85c": 7, "\uc2dc\uac01\ud654": 7, "union": 7, "\ub370\uc774\ud130": 7, "graph\uc5d0": 7, "\ucd9c\ub825\ub420": [7, 8], "x\ucd95": 7, "label": 7, "y\ucd95": 7, "\ud45c\uc2dc\ub420": 7, "\uc81c\ubaa9": 7, "\ubc0f": 7, "\ud30c\uc77c\uba85": [7, 8], "graph\uc758": 7, "\uac00\ub85c": 7, "\uc138\ub85c": 7, "\uae38\uc774": 7, "graph": 7, "\uc800\uc7a5": [7, 8], "dot": 7, "inch": 7, "x\ucd95\uc758": 7, "\ub208\uae08": 7, "\ud68c\uc804": 7, "\uac01\ub3c4": 7, "\uac01": 7, "\uc0c1\ub2e8\uc5d0": 7, "percentag": 7, "\ud45c\uc2dc": 7, "\uc5ec\ubd80": 7, "\ud604\uc7ac": [7, 8], "directory\uc5d0": [7, 8], "\ubc14\ub85c": [7, 8], "\ud14c\ub780": 7, "27": 7, "\uc800\uadf8": 7, "40": 7, "\ud504\ub85c\ud1a0\uc2a4": 7, "30": 7, "\uc885\uc871": 7, "\uc778\uad6c": 7, "\uba85": 7, "star": 7, "craft": 7, "hist": 7, "cnt": 7, "ovp": 7, "histogram\uc73c\ub85c": 7, "bin\uc758": 7, "\uac1c\uc218": 7, "class\uc5d0": 7, "\ub530\ub978": 7, "histogram": 7, "overlap": 7, "random": 7, "rand": 7, "1000": 7, "\uc131\uc801": 7, "\uc810": 7, "\uc778\uc6d0": 7, "x": 7, "rang": 7, "20": 7, "\uc2dc\uac04": 7, "\ucd08": 7, "img2gif": 8, "images_path": 8, "output_filenam": 8, "durat": 8, "500": 8, "directori": 8, "\uc774\ubbf8\uc9c0\ub4e4\uc744": 8, "gif\ub85c": 8, "\ubcc0\ud658": 8, "\ubcc0\ud658\ud560": 8, "\uc774\ubbf8\uc9c0\ub4e4\uc774": 8, "\uacbd\ub85c": 8, "gif": 8, "m": 8, "\ub2e8\uc704\uc758": 8, "\uc0ac\uc9c4": 8, "\uac04": 8, "\uac04\uaca9": 8, "vid2gif": 8, "video_path": 8, "qualiti": 8, "100": 8, "fp": 8, "\ub3d9\uc601\uc0c1\uc744": 8, "\ub3d9\uc601\uc0c1\uc774": 8, "gif\uc758": 8, "\ud488\uc9c8": 8, "frame": 8, "second": 8, "mp4": 8}, "objects": {"": [[2, 0, 0, "-", "zerohertzLib"]], "zerohertzLib": [[3, 0, 0, "-", "MLOps"], [4, 0, 0, "-", "algorithm"], [5, 0, 0, "-", "api"], [6, 0, 0, "-", "logging"], [7, 0, 0, "-", "plot"], [8, 0, 0, "-", "vision"]], "zerohertzLib.MLOps": [[3, 1, 1, "", "tritonClientK8s"], [3, 1, 1, "", "tritonClientURL"]], "zerohertzLib.MLOps.tritonClientK8s": [[3, 2, 1, "", "__call__"], [3, 3, 1, "", "inputs"], [3, 3, 1, "", "output"]], "zerohertzLib.MLOps.tritonClientURL": [[3, 2, 1, "", "__call__"], [3, 3, 1, "", "inputs"], [3, 3, 1, "", "output"]], "zerohertzLib.algorithm": [[4, 4, 1, "", "SoE"], [4, 4, 1, "", "bfs"], [4, 4, 1, "", "dfs"]], "zerohertzLib.api": [[5, 4, 1, "", "api_key"], [5, 4, 1, "", "gpt"], [5, 4, 1, "", "send_discord_message"]], "zerohertzLib.logging": [[6, 1, 1, "", "Logger"]], "zerohertzLib.logging.Logger": [[6, 2, 1, "", "critical"], [6, 2, 1, "", "debug"], [6, 2, 1, "", "error"], [6, 2, 1, "", "info"], [6, 2, 1, "", "warning"]], "zerohertzLib.plot": [[7, 4, 1, "", "bar"], [7, 4, 1, "", "hist"], [7, 4, 1, "", "plot"]], "zerohertzLib.vision": [[8, 4, 1, "", "img2gif"], [8, 4, 1, "", "vid2gif"]]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:method", "3": "py:attribute", "4": "py:function"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "method", "Python method"], "3": ["py", "attribute", "Python attribute"], "4": ["py", "function", "Python function"]}, "titleterms": {"content": [0, 2, 3, 4, 5, 6, 7, 8], "indic": 0, "tabl": 0, "zerohertzlib": [1, 2, 3, 4, 5, 6, 7, 8], "packag": [2, 3, 4, 5, 6, 7, 8], "subpackag": 2, "modul": [2, 3, 4, 5, 6, 7, 8], "mlop": 3, "algorithm": 4, "api": 5, "log": 6, "plot": 7, "vision": 8}, "envversion": {"sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 58}, "alltitles": {"Contents:": [[0, null]], "Indices and tables": [[0, "indices-and-tables"]], "zerohertzLib": [[1, "zerohertzlib"]], "zerohertzLib package": [[2, "zerohertzlib-package"]], "Subpackages": [[2, "subpackages"]], "Module contents": [[2, "module-zerohertzLib"], [3, "module-zerohertzLib.MLOps"], [4, "module-zerohertzLib.algorithm"], [5, "module-zerohertzLib.api"], [6, "module-zerohertzLib.logging"], [7, "module-zerohertzLib.plot"], [8, "module-zerohertzLib.vision"]], "zerohertzLib.MLOps package": [[3, "zerohertzlib-mlops-package"]], "zerohertzLib.algorithm package": [[4, "zerohertzlib-algorithm-package"]], "zerohertzLib.api package": [[5, "zerohertzlib-api-package"]], "zerohertzLib.logging package": [[6, "zerohertzlib-logging-package"]], "zerohertzLib.plot package": [[7, "zerohertzlib-plot-package"]], "zerohertzLib.vision package": [[8, "zerohertzlib-vision-package"]]}, "indexentries": {"module": [[2, "module-zerohertzLib"], [3, "module-zerohertzLib.MLOps"], [4, "module-zerohertzLib.algorithm"], [5, "module-zerohertzLib.api"], [6, "module-zerohertzLib.logging"], [7, "module-zerohertzLib.plot"], [8, "module-zerohertzLib.vision"]], "zerohertzlib": [[2, "module-zerohertzLib"]], "__call__() (zerohertzlib.mlops.tritonclientk8s method)": [[3, "zerohertzLib.MLOps.tritonClientK8s.__call__"]], "__call__() (zerohertzlib.mlops.tritonclienturl method)": [[3, "zerohertzLib.MLOps.tritonClientURL.__call__"]], "inputs (zerohertzlib.mlops.tritonclientk8s attribute)": [[3, "zerohertzLib.MLOps.tritonClientK8s.inputs"]], "inputs (zerohertzlib.mlops.tritonclienturl attribute)": [[3, "zerohertzLib.MLOps.tritonClientURL.inputs"]], "output (zerohertzlib.mlops.tritonclientk8s attribute)": [[3, "zerohertzLib.MLOps.tritonClientK8s.output"]], "output (zerohertzlib.mlops.tritonclienturl attribute)": [[3, "zerohertzLib.MLOps.tritonClientURL.output"]], "tritonclientk8s (class in zerohertzlib.mlops)": [[3, "zerohertzLib.MLOps.tritonClientK8s"]], "tritonclienturl (class in zerohertzlib.mlops)": [[3, "zerohertzLib.MLOps.tritonClientURL"]], "zerohertzlib.mlops": [[3, "module-zerohertzLib.MLOps"]], "soe() (in module zerohertzlib.algorithm)": [[4, "zerohertzLib.algorithm.SoE"]], "bfs() (in module zerohertzlib.algorithm)": [[4, "zerohertzLib.algorithm.bfs"]], "dfs() (in module zerohertzlib.algorithm)": [[4, "zerohertzLib.algorithm.dfs"]], "zerohertzlib.algorithm": [[4, "module-zerohertzLib.algorithm"]], "api_key() (in module zerohertzlib.api)": [[5, "zerohertzLib.api.api_key"]], "gpt() (in module zerohertzlib.api)": [[5, "zerohertzLib.api.gpt"]], "send_discord_message() (in module zerohertzlib.api)": [[5, "zerohertzLib.api.send_discord_message"]], "zerohertzlib.api": [[5, "module-zerohertzLib.api"]], "logger (class in zerohertzlib.logging)": [[6, "zerohertzLib.logging.Logger"]], "critical() (zerohertzlib.logging.logger method)": [[6, "zerohertzLib.logging.Logger.critical"]], "debug() (zerohertzlib.logging.logger method)": [[6, "zerohertzLib.logging.Logger.debug"]], "error() (zerohertzlib.logging.logger method)": [[6, "zerohertzLib.logging.Logger.error"]], "info() (zerohertzlib.logging.logger method)": [[6, "zerohertzLib.logging.Logger.info"]], "warning() (zerohertzlib.logging.logger method)": [[6, "zerohertzLib.logging.Logger.warning"]], "zerohertzlib.logging": [[6, "module-zerohertzLib.logging"]], "bar() (in module zerohertzlib.plot)": [[7, "zerohertzLib.plot.bar"]], "hist() (in module zerohertzlib.plot)": [[7, "zerohertzLib.plot.hist"]], "plot() (in module zerohertzlib.plot)": [[7, "zerohertzLib.plot.plot"]], "zerohertzlib.plot": [[7, "module-zerohertzLib.plot"]], "img2gif() (in module zerohertzlib.vision)": [[8, "zerohertzLib.vision.img2gif"]], "vid2gif() (in module zerohertzlib.vision)": [[8, "zerohertzLib.vision.vid2gif"]], "zerohertzlib.vision": [[8, "module-zerohertzLib.vision"]]}}) \ No newline at end of file +Search.setIndex({"docnames": ["index", "modules", "zerohertzLib", "zerohertzLib.MLOps", "zerohertzLib.algorithm", "zerohertzLib.api", "zerohertzLib.logging", "zerohertzLib.plot", "zerohertzLib.vision"], "filenames": ["index.rst", "modules.rst", "zerohertzLib.rst", "zerohertzLib.MLOps.rst", "zerohertzLib.algorithm.rst", "zerohertzLib.api.rst", "zerohertzLib.logging.rst", "zerohertzLib.plot.rst", "zerohertzLib.vision.rst"], "titles": ["Indices and tables", "zerohertzLib", "zerohertzLib package", "zerohertzLib.MLOps package", "zerohertzLib.algorithm package", "zerohertzLib.api package", "zerohertzLib.logging package", "zerohertzLib.plot package", "zerohertzLib.vision package"], "terms": {"zerohertz": 0, "": [0, 3], "librari": 0, "sudo": 0, "apt": 0, "instal": 0, "python3": 0, "opencv": 0, "y": [0, 7], "pip": 0, "zerohertzlib": 0, "import": [0, 3, 4, 5, 7, 8], "zz": [0, 3, 4, 5, 6, 7, 8], "packag": [0, 1], "index": 0, "modul": [0, 1], "search": [0, 5], "page": 0, "subpackag": 1, "mlop": [1, 2], "algorithm": [1, 2], "api": [1, 2], "log": [1, 2], "plot": [1, 2], "vision": [1, 2], "content": 1, "class": [3, 6], "tritonclientk8": 3, "svc_name": 3, "str": [3, 5, 6, 7, 8], "namespac": 3, "model_nam": 3, "port": 3, "int": [3, 4, 5, 6, 7, 8], "none": [3, 5, 6, 7, 8], "8001": 3, "base": [3, 6], "tritonclienturl": 3, "kubernetes\uc5d0\uc11c": 3, "\uc2e4\ud589\ub418\ub294": 3, "triton": 3, "infer": 3, "server\uc758": 3, "\ud638\ucd9c\uc744": 3, "\uc704\ud55c": [3, 4], "paramet": [3, 4, 5, 6, 7, 8], "\ud638\ucd9c\ud560": 3, "kubernet": 3, "service\uc758": 3, "\uc774\ub984": [3, 6], "server": 3, "\ub0b4": [3, 8], "model\uc758": 3, "option": [3, 6, 7, 8], "grpc": 3, "\ud1b5\uc2e0": 3, "\ubc88\ud638": 3, "input": 3, "\uc9c0\uc815\ub41c": 3, "\uc785\ub825": [3, 4, 5, 7], "type": [3, 4, 5, 7, 8], "list": [3, 4, 5, 7], "dict": [3, 7], "ani": 3, "output": 3, "\ucd9c\ub825": [3, 5], "__call__": 3, "model": [3, 5], "\ud638\ucd9c": 3, "\uc218\ud589": 3, "arg": 3, "\uc2dc": [3, 6, 7], "\uc0ac\uc6a9\ub420": 3, "self": 3, "return": [3, 4, 5, 7, 8], "\ud638\ucd9c\ub41c": 3, "\uacb0\uacfc": 3, "np": [3, 7], "ndarrai": 3, "exampl": [3, 4, 5, 6, 7, 8], "kubectl": 3, "get": 3, "svc": 3, "n": [3, 4], "yolo": 3, "name": 3, "cluster": 3, "ip": 3, "extern": 3, "ag": 3, "fastapi": 3, "clusterip": 3, "10": [3, 4, 6, 7], "106": 3, "72": 3, "126": 3, "80": 3, "tcp": 3, "90": 3, "96": 3, "28": 3, "172": 3, "docker": 3, "exec": 3, "api_contain": 3, "bash": 3, "python": 3, "tc": 3, "imag": 3, "data_typ": 3, "type_fp32": 3, "dim": 3, "1": [3, 4, 5, 7], "3": [3, 4, 5], "640": 3, "output0": 3, "25200": 3, "85": 3, "zero": 3, "arrai": 3, "90108061e": 3, "00": 3, "51982164e": 3, "7": [3, 4], "49971962e": 3, "2": [3, 4, 7], "21481919e": 3, "03": 3, "17585063e": 3, "36753917e": 3, "dtype": 3, "float32": 3, "url": [3, 5, 6], "object": [3, 5, 6], "\uc678\ubd80\uc5d0\uc11c": 3, "localhost": 3, "soe": 4, "siev": 4, "eratosthen": 4, "\uad6c\ud558\uace0\uc790": 4, "\ud558\ub294": 4, "\uc18c\uc218": 4, "\ubc94\uc704\uc758": 4, "\ucd5c\ub313\uac12": 4, "n\uae4c\uc9c0": 4, "\uc874\uc7ac\ud558\ub294": [4, 8], "5": [4, 5], "bf": 4, "map": 4, "start": 4, "bfs\ub97c": 4, "\uc218\ud589\ud558\uae30": 4, "\ud568\uc218": 4, "\uadf8\ub798\ud504": 4, "\uadf8\ub798\ud504\uc758": 4, "\uc2dc\uc791": 4, "\uc9c0\uc810": 4, "\ubc29\ubb38": 4, "\uc21c\uc11c": 4, "4": 4, "df": 4, "dfs\ub97c": 4, "api_kei": 5, "openaiobject": 5, "openai\uc758": 5, "\ud0a4": 5, "\ub4f1\ub85d": 5, "\uc704\uc640": 5, "\uac19\uc774": 5, "openai": 5, "\ud398\uc774\uc9c0\uc5d0\uc11c": 5, "\ubc1c\uae09": 5, "\ud6c4": 5, "api\ub97c": 5, "\ub4f1\ub85d\ud574\uc57c": 5, "\uc0ac\uc6a9\ud560": 5, "\uc218": 5, "\uc788\ub2e4": 5, "kei": 5, "\uc0ac\uc6a9": 5, "\uac00\ub2a5\ud55c": 5, "model\ub4e4\uc758": 5, "\uc815\ubcf4": 5, "openai_object": 5, "sk": 5, "json": 5, "data": [5, 7], "id": 5, "text": 5, "babbag": 5, "doc": 5, "001": 5, "creat": 5, "owned_bi": 5, "dev": 5, "gpt": 5, "turbo": 5, "16k": 5, "0613": 5, "messag": 5, "\uc2e4\ud589": 5, "chatgpt": 5, "5\uc758": 5, "hi": 5, "hello": 5, "how": 5, "can": 5, "i": [5, 7], "assist": 5, "you": 5, "todai": 5, "send_discord_messag": 5, "webhook_url": 5, "t": 5, "codeblock": 5, "bool": [5, 7], "fals": 5, "respons": 5, "discord": [5, 6], "webhook\uc5d0": 5, "\uba54\uc138\uc9c0": 5, "\uc804\uc1a1": 5, "webhook\uc758": [5, 6], "\uc758": [5, 6], "\uac04": [5, 8], "\uac04\uaca9": [5, 8], "\uc804\uc1a1\ub418\ub294": 5, "\uba54\uc138\uc9c0\uc758": 5, "\uc2a4\ud0c0\uc77c": 5, "\uc751\ub2f5": 5, "request": 5, "http": 5, "com": 5, "webhook": 5, "test": 5, "204": 5, "logger": 6, "logger_nam": 6, "file_nam": 6, "loggerlevel": 6, "consolelevel": 6, "filelevel": 6, "\uc774\uc058\uac8c": 6, "log\ub97c": 6, "\ucc0d\uc5b4\ubcf4\ub294": 6, "\ub354": 6, "\uc608\ubed0\uc9c0\uace0": 6, "\uc2f6\uc2b5\ub2c8\ub2e4": 6, "logger\uc758": 6, "\ud30c\uc77c\uc758": 6, "\ubbf8\uc785\ub825": 6, "\ubbf8\ucd9c\ub825": 6, "\uc801\uc6a9": 6, "getlogg": 6, "level": 6, "streamhandl": 6, "filehandl": 6, "test_1": 6, "debug": 6, "2023": 6, "11": 6, "07": 6, "21": 6, "41": 6, "36": 6, "505": 6, "info": 6, "warn": 6, "error": 6, "critic": 6, "bar": 7, "float": 7, "xlab": 7, "\ubcc0\uc218": 7, "\ub2e8\uc704": 7, "ylab": 7, "\ube48\ub3c4": 7, "titl": 7, "tmp": [7, 8], "ratio": 7, "tupl": 7, "15": [7, 8], "dpi": 7, "300": 7, "rot": 7, "0": 7, "per": [7, 8], "true": 7, "dictionary\ub85c": 7, "\uc785\ub825\ubc1b\uc740": 7, "\ub370\uc774\ud130\ub97c": 7, "graph\ub85c": 7, "\uc2dc\uac01\ud654": 7, "union": 7, "\ub370\uc774\ud130": 7, "graph\uc5d0": 7, "\ucd9c\ub825\ub420": [7, 8], "x\ucd95": 7, "label": 7, "y\ucd95": 7, "\ud45c\uc2dc\ub420": 7, "\uc81c\ubaa9": 7, "\ubc0f": 7, "\ud30c\uc77c\uba85": [7, 8], "graph\uc758": 7, "\uac00\ub85c": 7, "\uc138\ub85c": 7, "\uae38\uc774": 7, "graph": 7, "\uc800\uc7a5": [7, 8], "dot": 7, "inch": 7, "x\ucd95\uc758": 7, "\ub208\uae08": 7, "\ud68c\uc804": 7, "\uac01\ub3c4": 7, "\uac01": 7, "\uc0c1\ub2e8\uc5d0": 7, "percentag": 7, "\ud45c\uc2dc": 7, "\uc5ec\ubd80": 7, "\ud604\uc7ac": [7, 8], "directory\uc5d0": [7, 8], "\ubc14\ub85c": [7, 8], "\ud14c\ub780": 7, "27": 7, "\uc800\uadf8": 7, "40": 7, "\ud504\ub85c\ud1a0\uc2a4": 7, "30": 7, "\uc885\uc871": 7, "\uc778\uad6c": 7, "\uba85": 7, "star": 7, "craft": 7, "hist": 7, "cnt": 7, "ovp": 7, "histogram\uc73c\ub85c": 7, "bin\uc758": 7, "\uac1c\uc218": 7, "class\uc5d0": 7, "\ub530\ub978": 7, "histogram": 7, "overlap": 7, "random": 7, "rand": 7, "1000": 7, "\uc131\uc801": 7, "\uc810": 7, "\uc778\uc6d0": 7, "x": 7, "rang": 7, "20": 7, "\uc2dc\uac04": 7, "\ucd08": 7, "img2gif": 8, "images_path": 8, "output_filenam": 8, "durat": 8, "500": 8, "directori": 8, "\uc774\ubbf8\uc9c0\ub4e4\uc744": 8, "gif\ub85c": 8, "\ubcc0\ud658": 8, "\ubcc0\ud658\ud560": 8, "\uc774\ubbf8\uc9c0\ub4e4\uc774": 8, "\uacbd\ub85c": 8, "gif": 8, "m": 8, "\ub2e8\uc704\uc758": 8, "\uc0ac\uc9c4": 8, "vid2gif": 8, "video_path": 8, "qualiti": 8, "100": 8, "fp": 8, "\ub3d9\uc601\uc0c1\uc744": 8, "\ub3d9\uc601\uc0c1\uc774": 8, "gif\uc758": 8, "\ud488\uc9c8": 8, "frame": 8, "second": 8, "mp4": 8}, "objects": {"": [[2, 0, 0, "-", "zerohertzLib"]], "zerohertzLib": [[3, 0, 0, "-", "MLOps"], [4, 0, 0, "-", "algorithm"], [5, 0, 0, "-", "api"], [6, 0, 0, "-", "logging"], [7, 0, 0, "-", "plot"], [8, 0, 0, "-", "vision"]], "zerohertzLib.MLOps": [[3, 1, 1, "", "tritonClientK8s"], [3, 1, 1, "", "tritonClientURL"]], "zerohertzLib.MLOps.tritonClientK8s": [[3, 2, 1, "", "__call__"], [3, 3, 1, "", "inputs"], [3, 3, 1, "", "outputs"]], "zerohertzLib.MLOps.tritonClientURL": [[3, 2, 1, "", "__call__"], [3, 3, 1, "", "inputs"], [3, 3, 1, "", "outputs"]], "zerohertzLib.algorithm": [[4, 4, 1, "", "SoE"], [4, 4, 1, "", "bfs"], [4, 4, 1, "", "dfs"]], "zerohertzLib.api": [[5, 4, 1, "", "api_key"], [5, 4, 1, "", "gpt"], [5, 4, 1, "", "send_discord_message"]], "zerohertzLib.logging": [[6, 1, 1, "", "Logger"]], "zerohertzLib.logging.Logger": [[6, 2, 1, "", "critical"], [6, 2, 1, "", "debug"], [6, 2, 1, "", "error"], [6, 2, 1, "", "info"], [6, 2, 1, "", "warning"]], "zerohertzLib.plot": [[7, 4, 1, "", "bar"], [7, 4, 1, "", "hist"], [7, 4, 1, "", "plot"]], "zerohertzLib.vision": [[8, 4, 1, "", "img2gif"], [8, 4, 1, "", "vid2gif"]]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:method", "3": "py:attribute", "4": "py:function"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "method", "Python method"], "3": ["py", "attribute", "Python attribute"], "4": ["py", "function", "Python function"]}, "titleterms": {"content": [0, 2, 3, 4, 5, 6, 7, 8], "indic": 0, "tabl": 0, "zerohertzlib": [1, 2, 3, 4, 5, 6, 7, 8], "packag": [2, 3, 4, 5, 6, 7, 8], "subpackag": 2, "modul": [2, 3, 4, 5, 6, 7, 8], "mlop": 3, "algorithm": 4, "api": 5, "log": 6, "plot": 7, "vision": 8}, "envversion": {"sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 58}, "alltitles": {"Contents:": [[0, null]], "Indices and tables": [[0, "indices-and-tables"]], "zerohertzLib": [[1, "zerohertzlib"]], "zerohertzLib package": [[2, "zerohertzlib-package"]], "Subpackages": [[2, "subpackages"]], "Module contents": [[2, "module-zerohertzLib"], [3, "module-zerohertzLib.MLOps"], [4, "module-zerohertzLib.algorithm"], [5, "module-zerohertzLib.api"], [6, "module-zerohertzLib.logging"], [7, "module-zerohertzLib.plot"], [8, "module-zerohertzLib.vision"]], "zerohertzLib.MLOps package": [[3, "zerohertzlib-mlops-package"]], "zerohertzLib.algorithm package": [[4, "zerohertzlib-algorithm-package"]], "zerohertzLib.api package": [[5, "zerohertzlib-api-package"]], "zerohertzLib.logging package": [[6, "zerohertzlib-logging-package"]], "zerohertzLib.plot package": [[7, "zerohertzlib-plot-package"]], "zerohertzLib.vision package": [[8, "zerohertzlib-vision-package"]]}, "indexentries": {"module": [[2, "module-zerohertzLib"], [3, "module-zerohertzLib.MLOps"], [4, "module-zerohertzLib.algorithm"], [5, "module-zerohertzLib.api"], [6, "module-zerohertzLib.logging"], [7, "module-zerohertzLib.plot"], [8, "module-zerohertzLib.vision"]], "zerohertzlib": [[2, "module-zerohertzLib"]], "__call__() (zerohertzlib.mlops.tritonclientk8s method)": [[3, "zerohertzLib.MLOps.tritonClientK8s.__call__"]], "__call__() (zerohertzlib.mlops.tritonclienturl method)": [[3, "zerohertzLib.MLOps.tritonClientURL.__call__"]], "inputs (zerohertzlib.mlops.tritonclientk8s attribute)": [[3, "zerohertzLib.MLOps.tritonClientK8s.inputs"]], "inputs (zerohertzlib.mlops.tritonclienturl attribute)": [[3, "zerohertzLib.MLOps.tritonClientURL.inputs"]], "outputs (zerohertzlib.mlops.tritonclientk8s attribute)": [[3, "zerohertzLib.MLOps.tritonClientK8s.outputs"]], "outputs (zerohertzlib.mlops.tritonclienturl attribute)": [[3, "zerohertzLib.MLOps.tritonClientURL.outputs"]], "tritonclientk8s (class in zerohertzlib.mlops)": [[3, "zerohertzLib.MLOps.tritonClientK8s"]], "tritonclienturl (class in zerohertzlib.mlops)": [[3, "zerohertzLib.MLOps.tritonClientURL"]], "zerohertzlib.mlops": [[3, "module-zerohertzLib.MLOps"]], "soe() (in module zerohertzlib.algorithm)": [[4, "zerohertzLib.algorithm.SoE"]], "bfs() (in module zerohertzlib.algorithm)": [[4, "zerohertzLib.algorithm.bfs"]], "dfs() (in module zerohertzlib.algorithm)": [[4, "zerohertzLib.algorithm.dfs"]], "zerohertzlib.algorithm": [[4, "module-zerohertzLib.algorithm"]], "api_key() (in module zerohertzlib.api)": [[5, "zerohertzLib.api.api_key"]], "gpt() (in module zerohertzlib.api)": [[5, "zerohertzLib.api.gpt"]], "send_discord_message() (in module zerohertzlib.api)": [[5, "zerohertzLib.api.send_discord_message"]], "zerohertzlib.api": [[5, "module-zerohertzLib.api"]], "logger (class in zerohertzlib.logging)": [[6, "zerohertzLib.logging.Logger"]], "critical() (zerohertzlib.logging.logger method)": [[6, "zerohertzLib.logging.Logger.critical"]], "debug() (zerohertzlib.logging.logger method)": [[6, "zerohertzLib.logging.Logger.debug"]], "error() (zerohertzlib.logging.logger method)": [[6, "zerohertzLib.logging.Logger.error"]], "info() (zerohertzlib.logging.logger method)": [[6, "zerohertzLib.logging.Logger.info"]], "warning() (zerohertzlib.logging.logger method)": [[6, "zerohertzLib.logging.Logger.warning"]], "zerohertzlib.logging": [[6, "module-zerohertzLib.logging"]], "bar() (in module zerohertzlib.plot)": [[7, "zerohertzLib.plot.bar"]], "hist() (in module zerohertzlib.plot)": [[7, "zerohertzLib.plot.hist"]], "plot() (in module zerohertzlib.plot)": [[7, "zerohertzLib.plot.plot"]], "zerohertzlib.plot": [[7, "module-zerohertzLib.plot"]], "img2gif() (in module zerohertzlib.vision)": [[8, "zerohertzLib.vision.img2gif"]], "vid2gif() (in module zerohertzlib.vision)": [[8, "zerohertzLib.vision.vid2gif"]], "zerohertzlib.vision": [[8, "module-zerohertzLib.vision"]]}}) \ No newline at end of file diff --git a/docs/zerohertzLib.MLOps.html b/docs/zerohertzLib.MLOps.html index 4767bb54..ca6ac27f 100644 --- a/docs/zerohertzLib.MLOps.html +++ b/docs/zerohertzLib.MLOps.html @@ -4,14 +4,14 @@ - zerohertzLib.MLOps package — zerohertzLib v0.1.7 documentation + zerohertzLib.MLOps package — zerohertzLib v0.1.8 documentation - + @@ -117,8 +117,8 @@

zerohertzLib.MLOps package -
-output
+
+outputs

지정된 model의 출력

Type:
@@ -193,8 +193,8 @@

zerohertzLib.MLOps package -
-output
+
+outputs

지정된 model의 출력

Type:
diff --git a/docs/zerohertzLib.algorithm.html b/docs/zerohertzLib.algorithm.html index b39ab9a7..784357ad 100644 --- a/docs/zerohertzLib.algorithm.html +++ b/docs/zerohertzLib.algorithm.html @@ -4,14 +4,14 @@ - zerohertzLib.algorithm package — zerohertzLib v0.1.7 documentation + zerohertzLib.algorithm package — zerohertzLib v0.1.8 documentation - + diff --git a/docs/zerohertzLib.api.html b/docs/zerohertzLib.api.html index 1bc904b9..76ae4082 100644 --- a/docs/zerohertzLib.api.html +++ b/docs/zerohertzLib.api.html @@ -4,14 +4,14 @@ - zerohertzLib.api package — zerohertzLib v0.1.7 documentation + zerohertzLib.api package — zerohertzLib v0.1.8 documentation - + @@ -156,11 +156,16 @@

zerohertzLib.api package
-zerohertzLib.api.send_discord_message(webhook_url: str, message: str) List[Response]
+zerohertzLib.api.send_discord_message(webhook_url: str, message: str, t: int | None = 1, codeblock: bool | None = False) List[Response]

Discord Webhook에 메세지 전송

Parameters:
-

message (str) – Discord Webhook의 입력

+
    +
  • webhook_url (str) – Discord Webhook의 URL

  • +
  • message (str) – Discord Webhook의 입력

  • +
  • t (int) – message 의 전송 간 간격

  • +
  • codeblock (bool) – 전송되는 메세지의 스타일

  • +
Returns:

Discord Webhook의 응답

diff --git a/docs/zerohertzLib.html b/docs/zerohertzLib.html index ae92fc4d..7ff0f8be 100644 --- a/docs/zerohertzLib.html +++ b/docs/zerohertzLib.html @@ -4,14 +4,14 @@ - zerohertzLib package — zerohertzLib v0.1.7 documentation + zerohertzLib package — zerohertzLib v0.1.8 documentation - + diff --git a/docs/zerohertzLib.logging.html b/docs/zerohertzLib.logging.html index d1a9d11c..0356375f 100644 --- a/docs/zerohertzLib.logging.html +++ b/docs/zerohertzLib.logging.html @@ -4,14 +4,14 @@ - zerohertzLib.logging package — zerohertzLib v0.1.7 documentation + zerohertzLib.logging package — zerohertzLib v0.1.8 documentation - + @@ -92,7 +92,7 @@

zerohertzLib.logging package

Module contents

-class zerohertzLib.logging.Logger(logger_name: str | None = None, file_name: str | None = None, loggerLevel: int | None = 10, consoleLevel: int | None = 10, fileLevel: int | None = 10)
+class zerohertzLib.logging.Logger(logger_name: str | None = None, file_name: str | None = None, discord: str | None = None, loggerLevel: int | None = 10, consoleLevel: int | None = 10, fileLevel: int | None = 10)

Bases: object

이쁘게 Log를 찍어보는 Class ~!

@@ -104,6 +104,7 @@

zerohertzLib.logging package