pyquoks 1.3.0__tar.gz → 1.3.2__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.
- {pyquoks-1.3.0 → pyquoks-1.3.2}/PKG-INFO +4 -4
- {pyquoks-1.3.0 → pyquoks-1.3.2}/requirements.txt +3 -3
- {pyquoks-1.3.0 → pyquoks-1.3.2}/setup.cfg +1 -1
- {pyquoks-1.3.0 → pyquoks-1.3.2}/src/pyquoks/data.py +21 -7
- {pyquoks-1.3.0 → pyquoks-1.3.2}/src/pyquoks.egg-info/PKG-INFO +4 -4
- {pyquoks-1.3.0 → pyquoks-1.3.2}/src/pyquoks.egg-info/requires.txt +3 -3
- {pyquoks-1.3.0 → pyquoks-1.3.2}/LICENSE +0 -0
- {pyquoks-1.3.0 → pyquoks-1.3.2}/README.md +0 -0
- {pyquoks-1.3.0 → pyquoks-1.3.2}/pyproject.toml +0 -0
- {pyquoks-1.3.0 → pyquoks-1.3.2}/src/pyquoks/__init__.py +0 -0
- {pyquoks-1.3.0 → pyquoks-1.3.2}/src/pyquoks/localhost.py +0 -0
- {pyquoks-1.3.0 → pyquoks-1.3.2}/src/pyquoks/models.py +0 -0
- {pyquoks-1.3.0 → pyquoks-1.3.2}/src/pyquoks/utils.py +0 -0
- {pyquoks-1.3.0 → pyquoks-1.3.2}/src/pyquoks.egg-info/SOURCES.txt +0 -0
- {pyquoks-1.3.0 → pyquoks-1.3.2}/src/pyquoks.egg-info/dependency_links.txt +0 -0
- {pyquoks-1.3.0 → pyquoks-1.3.2}/src/pyquoks.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyquoks
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.2
|
|
4
4
|
Summary: Пакет PyPI для часто используемых модулей в проектах diquoks
|
|
5
5
|
Home-page: https://diquoks.ru
|
|
6
6
|
Author: Denis Titovets
|
|
@@ -13,15 +13,15 @@ Description-Content-Type: text/markdown
|
|
|
13
13
|
License-File: LICENSE
|
|
14
14
|
Requires-Dist: blinker==1.9.0
|
|
15
15
|
Requires-Dist: certifi==2025.10.5
|
|
16
|
-
Requires-Dist: charset-normalizer==3.4.
|
|
16
|
+
Requires-Dist: charset-normalizer==3.4.4
|
|
17
17
|
Requires-Dist: click==8.3.0
|
|
18
18
|
Requires-Dist: colorama==0.4.6
|
|
19
19
|
Requires-Dist: Flask==3.1.2
|
|
20
|
-
Requires-Dist: idna==3.
|
|
20
|
+
Requires-Dist: idna==3.11
|
|
21
21
|
Requires-Dist: itsdangerous==2.2.0
|
|
22
22
|
Requires-Dist: Jinja2==3.1.6
|
|
23
23
|
Requires-Dist: MarkupSafe==3.0.3
|
|
24
|
-
Requires-Dist: pillow==
|
|
24
|
+
Requires-Dist: pillow==12.0.0
|
|
25
25
|
Requires-Dist: requests==2.32.5
|
|
26
26
|
Requires-Dist: urllib3==2.5.0
|
|
27
27
|
Requires-Dist: waitress==3.0.2
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
blinker==1.9.0
|
|
2
2
|
certifi==2025.10.5
|
|
3
|
-
charset-normalizer==3.4.
|
|
3
|
+
charset-normalizer==3.4.4
|
|
4
4
|
click==8.3.0
|
|
5
5
|
colorama==0.4.6
|
|
6
6
|
Flask==3.1.2
|
|
7
|
-
idna==3.
|
|
7
|
+
idna==3.11
|
|
8
8
|
itsdangerous==2.2.0
|
|
9
9
|
Jinja2==3.1.6
|
|
10
10
|
MarkupSafe==3.0.3
|
|
11
|
-
pillow==
|
|
11
|
+
pillow==12.0.0
|
|
12
12
|
requests==2.32.5
|
|
13
13
|
urllib3==2.5.0
|
|
14
14
|
waitress==3.0.2
|
|
@@ -87,6 +87,8 @@ class IConfigProvider:
|
|
|
87
87
|
match data_type.__name__:
|
|
88
88
|
case "int":
|
|
89
89
|
setattr(self, setting, int(getattr(self, setting)))
|
|
90
|
+
case "float":
|
|
91
|
+
setattr(self, setting, float(getattr(self, setting)))
|
|
90
92
|
case "bool":
|
|
91
93
|
if getattr(self, setting) not in (str(True), str(False)):
|
|
92
94
|
setattr(self, setting, None)
|
|
@@ -324,13 +326,12 @@ class IDatabaseManager:
|
|
|
324
326
|
check_same_thread=False,
|
|
325
327
|
)
|
|
326
328
|
|
|
327
|
-
self._cursor
|
|
328
|
-
self._db_cursor.execute(self._SQL)
|
|
329
|
+
self._cursor.execute(self._SQL)
|
|
329
330
|
self.commit()
|
|
330
331
|
|
|
331
332
|
@property
|
|
332
|
-
def
|
|
333
|
-
return self.
|
|
333
|
+
def _cursor(self) -> sqlite3.Cursor:
|
|
334
|
+
return self.cursor()
|
|
334
335
|
|
|
335
336
|
_PATH: str = utils.get_path("db/")
|
|
336
337
|
"""
|
|
@@ -477,12 +478,18 @@ class LoggerService(logging.Logger):
|
|
|
477
478
|
Class that provides methods for parallel logging
|
|
478
479
|
"""
|
|
479
480
|
|
|
481
|
+
_LOGS_PATH: str | None
|
|
482
|
+
"""
|
|
483
|
+
Path to the logs file
|
|
484
|
+
"""
|
|
485
|
+
|
|
480
486
|
def __init__(
|
|
481
487
|
self,
|
|
482
|
-
name: str,
|
|
488
|
+
name: str,
|
|
489
|
+
path: str = utils.get_path("logs/", only_abspath=True),
|
|
483
490
|
filename: str = datetime.datetime.now().strftime("%d-%m-%y-%H-%M-%S"),
|
|
491
|
+
file_handling: bool = True,
|
|
484
492
|
level: int = logging.NOTSET,
|
|
485
|
-
path: str = utils.get_path("logs/", only_abspath=True),
|
|
486
493
|
) -> None:
|
|
487
494
|
super().__init__(name, level)
|
|
488
495
|
|
|
@@ -498,9 +505,10 @@ class LoggerService(logging.Logger):
|
|
|
498
505
|
|
|
499
506
|
if file_handling:
|
|
500
507
|
os.makedirs(path, exist_ok=True)
|
|
508
|
+
self._LOG_PATH = path + f"{filename}-{name}.log"
|
|
501
509
|
|
|
502
510
|
file_handler = logging.FileHandler(
|
|
503
|
-
|
|
511
|
+
self._LOG_PATH,
|
|
504
512
|
encoding="utf-8",
|
|
505
513
|
)
|
|
506
514
|
file_handler.setFormatter(
|
|
@@ -512,6 +520,12 @@ class LoggerService(logging.Logger):
|
|
|
512
520
|
)
|
|
513
521
|
self.addHandler(file_handler)
|
|
514
522
|
|
|
523
|
+
def get_logs_file(self) -> io.BufferedReader:
|
|
524
|
+
"""
|
|
525
|
+
:return: Opened file-like object of current logs
|
|
526
|
+
"""
|
|
527
|
+
return open(self._LOG_PATH, "rb")
|
|
528
|
+
|
|
515
529
|
def log_exception(self, e: Exception) -> None:
|
|
516
530
|
"""
|
|
517
531
|
Logs an exception with detailed traceback
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyquoks
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.2
|
|
4
4
|
Summary: Пакет PyPI для часто используемых модулей в проектах diquoks
|
|
5
5
|
Home-page: https://diquoks.ru
|
|
6
6
|
Author: Denis Titovets
|
|
@@ -13,15 +13,15 @@ Description-Content-Type: text/markdown
|
|
|
13
13
|
License-File: LICENSE
|
|
14
14
|
Requires-Dist: blinker==1.9.0
|
|
15
15
|
Requires-Dist: certifi==2025.10.5
|
|
16
|
-
Requires-Dist: charset-normalizer==3.4.
|
|
16
|
+
Requires-Dist: charset-normalizer==3.4.4
|
|
17
17
|
Requires-Dist: click==8.3.0
|
|
18
18
|
Requires-Dist: colorama==0.4.6
|
|
19
19
|
Requires-Dist: Flask==3.1.2
|
|
20
|
-
Requires-Dist: idna==3.
|
|
20
|
+
Requires-Dist: idna==3.11
|
|
21
21
|
Requires-Dist: itsdangerous==2.2.0
|
|
22
22
|
Requires-Dist: Jinja2==3.1.6
|
|
23
23
|
Requires-Dist: MarkupSafe==3.0.3
|
|
24
|
-
Requires-Dist: pillow==
|
|
24
|
+
Requires-Dist: pillow==12.0.0
|
|
25
25
|
Requires-Dist: requests==2.32.5
|
|
26
26
|
Requires-Dist: urllib3==2.5.0
|
|
27
27
|
Requires-Dist: waitress==3.0.2
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
blinker==1.9.0
|
|
2
2
|
certifi==2025.10.5
|
|
3
|
-
charset-normalizer==3.4.
|
|
3
|
+
charset-normalizer==3.4.4
|
|
4
4
|
click==8.3.0
|
|
5
5
|
colorama==0.4.6
|
|
6
6
|
Flask==3.1.2
|
|
7
|
-
idna==3.
|
|
7
|
+
idna==3.11
|
|
8
8
|
itsdangerous==2.2.0
|
|
9
9
|
Jinja2==3.1.6
|
|
10
10
|
MarkupSafe==3.0.3
|
|
11
|
-
pillow==
|
|
11
|
+
pillow==12.0.0
|
|
12
12
|
requests==2.32.5
|
|
13
13
|
urllib3==2.5.0
|
|
14
14
|
waitress==3.0.2
|
|
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
|