MapleX 3.2.0.dev1__py3-none-any.whl → 3.2.0.dev3__py3-none-any.whl
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.
- maplex/__init__.py +1 -1
- maplex/library/logger/config.py +3 -6
- maplex/library/logger/consts/__init__.py +2 -0
- maplex/library/logger/consts/defaults.py +3 -1
- {maplex-3.2.0.dev1.dist-info → maplex-3.2.0.dev3.dist-info}/METADATA +3 -3
- {maplex-3.2.0.dev1.dist-info → maplex-3.2.0.dev3.dist-info}/RECORD +9 -9
- {maplex-3.2.0.dev1.dist-info → maplex-3.2.0.dev3.dist-info}/WHEEL +0 -0
- {maplex-3.2.0.dev1.dist-info → maplex-3.2.0.dev3.dist-info}/licenses/LICENSE +0 -0
- {maplex-3.2.0.dev1.dist-info → maplex-3.2.0.dev3.dist-info}/top_level.txt +0 -0
maplex/__init__.py
CHANGED
maplex/library/logger/config.py
CHANGED
|
@@ -60,10 +60,7 @@ class LoggerConfig(BaseModel):
|
|
|
60
60
|
try:
|
|
61
61
|
|
|
62
62
|
super().__init__(**config)
|
|
63
|
-
|
|
64
|
-
print("Initializing logger config...")
|
|
65
63
|
self.consoleColors = getConsoleColors()
|
|
66
|
-
|
|
67
64
|
self.logConfInstance = self.checkConfigFile(config.get(CONFIG_FILE, self.configFile))
|
|
68
65
|
self.checkOutputDirectory(config.get(WORKING_DIRECTORY, None))
|
|
69
66
|
self.setLogFileName(config.get(FILE_MODE, "append"))
|
|
@@ -302,7 +299,7 @@ class LoggerConfig(BaseModel):
|
|
|
302
299
|
except MapleInvalidLoggerLevelException as ex:
|
|
303
300
|
|
|
304
301
|
print(f"{self.consoleColors.Red}Warning: Invalid {fileOrConsole} provided: [{tempLogLevel}]. Using default value.{self.consoleColors.Reset}")
|
|
305
|
-
return
|
|
302
|
+
return LogLevel.INFO
|
|
306
303
|
|
|
307
304
|
def setFileEncoding(self, encoding: str) -> None:
|
|
308
305
|
|
|
@@ -378,7 +375,7 @@ class LoggerConfig(BaseModel):
|
|
|
378
375
|
|
|
379
376
|
else:
|
|
380
377
|
|
|
381
|
-
self.formats.consoleFormat = self.logConf.get(CONSOLE_LOG_FORMAT, None)
|
|
378
|
+
self.formats.consoleFormat = self.logConf.get(FORMATS, {}).get(CONSOLE_LOG_FORMAT, None)
|
|
382
379
|
|
|
383
380
|
if self.formats.consoleFormat is None:
|
|
384
381
|
|
|
@@ -393,7 +390,7 @@ class LoggerConfig(BaseModel):
|
|
|
393
390
|
|
|
394
391
|
else:
|
|
395
392
|
|
|
396
|
-
self.formats.fileFormat = self.logConf.get(FILE_LOG_FORMAT, None)
|
|
393
|
+
self.formats.fileFormat = self.logConf.get(FORMATS, {}).get(FILE_LOG_FORMAT, None)
|
|
397
394
|
|
|
398
395
|
if self.formats.fileFormat is None:
|
|
399
396
|
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
FILE_FORMAT = '({pid}) {timestamp} [{level}]{func} {callerName}{callerFunc}({callerLine})'
|
|
2
2
|
CONSOLE_FORMAT = '[{level}]{func} {callerFunc}{callerLine}'
|
|
3
3
|
TIMESTAMP_FORMAT = "%F %X.%f"
|
|
4
|
-
MILLISECOND_DIGITS = None
|
|
4
|
+
MILLISECOND_DIGITS = None
|
|
5
|
+
FILE_MODE_OVERWRITE = 'overwrite'
|
|
6
|
+
FILE_MODE_DAILY = 'daily'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: MapleX
|
|
3
|
-
Version: 3.2.0.
|
|
3
|
+
Version: 3.2.0.dev3
|
|
4
4
|
Summary: A Python library for simple logging, json file operations, Maple file format operations, and console color utilities.
|
|
5
5
|
Author: Ryuji Hazama
|
|
6
6
|
Project-URL: PyPI, https://pypi.org/project/MapleX/
|
|
@@ -16,8 +16,8 @@ Classifier: Operating System :: OS Independent
|
|
|
16
16
|
Requires-Python: >=3.12
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
License-File: LICENSE
|
|
19
|
-
Requires-Dist: cryptography>=
|
|
20
|
-
Requires-Dist: pydantic>=2.
|
|
19
|
+
Requires-Dist: cryptography>=49.0.0
|
|
20
|
+
Requires-Dist: pydantic>=2.13.4
|
|
21
21
|
Dynamic: license-file
|
|
22
22
|
|
|
23
23
|
# MapleX
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
maplex/__init__.py,sha256=
|
|
1
|
+
maplex/__init__.py,sha256=CjRB1hRYf7YEvEtihCtKC1PXOnjKhWc4oC7SoW5-GrU,1881
|
|
2
2
|
maplex/jsonHandler.py,sha256=HZ4uCUMzs2oaAYWgInc6gzo960q46e7IOk7tTMzqdAE,7445
|
|
3
3
|
maplex/mapleColors.py,sha256=ASg-GstHkyXsq4mVMuFz8Qaq3nQeFayQWcCy9iHzjTs,1543
|
|
4
4
|
maplex/mapleExceptions.py,sha256=zN-GLYNGSWalQ8GiFH-BxRzYhSfbv6V-1O3cA46yAUo,4924
|
|
@@ -6,17 +6,17 @@ maplex/mapleLogger.py,sha256=M7djSjf2ZxQP8lWeuLCiDlCP4ALt2NQproO7ybgX3gM,10819
|
|
|
6
6
|
maplex/mapleTreeEditor.py,sha256=5596bARJWHXyGUeXWRYx9lKSfaZdBmGQLvkF_OiKzZ0,29249
|
|
7
7
|
maplex/utils.py,sha256=TcUdfn9uhk9zwMTxtWgsZ1ZKdc2_i0ysgrksMbzvX1I,603
|
|
8
8
|
maplex/library/logger/__init__.py,sha256=SXTK3CieuahEa-6-eE-JGb6TwxgS7xyMaOjE5PspDbk,447
|
|
9
|
-
maplex/library/logger/config.py,sha256=
|
|
9
|
+
maplex/library/logger/config.py,sha256=KJCbicwci-vv3PzYmlYH53p77YdHnXEcBg2nh0CxFZ8,14650
|
|
10
10
|
maplex/library/logger/file_handler.py,sha256=nbBTTNl_-iq2i0ooV6tpCP7JbfTiWvqoFkY0QF6vir8,2740
|
|
11
11
|
maplex/library/logger/formatter.py,sha256=aHPk-56uIcEGsHml2Fb1VwI9l97cll0bn_n1gRhs50k,7400
|
|
12
12
|
maplex/library/logger/log_levels.py,sha256=q4NpokbM6vEabLC7OS-JHZgnhbDROk0yHa5-uM3t_Uw,186
|
|
13
13
|
maplex/library/logger/utilities.py,sha256=-IIPsvrebE4K2fP0fIHT-D55463Zkq3M4SlD0dEZINI,2874
|
|
14
|
-
maplex/library/logger/consts/__init__.py,sha256=
|
|
14
|
+
maplex/library/logger/consts/__init__.py,sha256=_C16zebMU2ac0UdIB96S5j8__qLL4cYh8LQ9TAdFb_I,865
|
|
15
15
|
maplex/library/logger/consts/config_keys.py,sha256=qMBJTMSVerprRrgP86sAmmfPF5IyHGsoBFZTW9uqbjU,486
|
|
16
|
-
maplex/library/logger/consts/defaults.py,sha256=
|
|
16
|
+
maplex/library/logger/consts/defaults.py,sha256=sI5dwexy4BBWq6fNwFfPrkWeWuT5OcCMnhM_8i7vo0g,266
|
|
17
17
|
maplex/library/logger/consts/dict_keys.py,sha256=7cDArmYjVn4t9pniT6csV6ByEKmV8Z4SlB-pWFRRgCw,317
|
|
18
|
-
maplex-3.2.0.
|
|
19
|
-
maplex-3.2.0.
|
|
20
|
-
maplex-3.2.0.
|
|
21
|
-
maplex-3.2.0.
|
|
22
|
-
maplex-3.2.0.
|
|
18
|
+
maplex-3.2.0.dev3.dist-info/licenses/LICENSE,sha256=M7R85ReZ2srvowIPO_c9sHI3DV7QmxnLH93esXVhwGI,1068
|
|
19
|
+
maplex-3.2.0.dev3.dist-info/METADATA,sha256=vYhG4WQ3G2cXmxhVLIJ5yqIlVSdb4iavPn9h0QrDVlo,7389
|
|
20
|
+
maplex-3.2.0.dev3.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
|
|
21
|
+
maplex-3.2.0.dev3.dist-info/top_level.txt,sha256=ME8uFV82K0y0KYJrHVTMgc0hEBV67iXXUKsvom7BO5g,7
|
|
22
|
+
maplex-3.2.0.dev3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|