MapleX 3.2.0.dev1__tar.gz → 3.2.0.dev3__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.
Files changed (40) hide show
  1. {maplex-3.2.0.dev1/src/MapleX.egg-info → maplex-3.2.0.dev3}/PKG-INFO +3 -3
  2. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/pyproject.toml +3 -3
  3. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3/src/MapleX.egg-info}/PKG-INFO +3 -3
  4. maplex-3.2.0.dev3/src/MapleX.egg-info/requires.txt +2 -0
  5. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/src/maplex/__init__.py +1 -1
  6. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/src/maplex/library/logger/config.py +3 -6
  7. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/src/maplex/library/logger/consts/__init__.py +2 -0
  8. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/src/maplex/library/logger/consts/defaults.py +3 -1
  9. maplex-3.2.0.dev1/src/MapleX.egg-info/requires.txt +0 -2
  10. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/LICENSE +0 -0
  11. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/MANIFEST.in +0 -0
  12. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/README.md +0 -0
  13. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/logErrorOutputSample.png +0 -0
  14. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/logOutputSample.png +0 -0
  15. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/readmes/LoggingBestPractice.md +0 -0
  16. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/readmes/README_ConsoleColors.md +0 -0
  17. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/readmes/README_Exceptions.md +0 -0
  18. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/readmes/README_Json.md +0 -0
  19. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/readmes/README_Logger.md +0 -0
  20. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/readmes/README_MapleTree.md +0 -0
  21. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/setup.cfg +0 -0
  22. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/src/MapleX.egg-info/SOURCES.txt +0 -0
  23. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/src/MapleX.egg-info/dependency_links.txt +0 -0
  24. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/src/MapleX.egg-info/top_level.txt +0 -0
  25. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/src/maplex/jsonHandler.py +0 -0
  26. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/src/maplex/library/logger/__init__.py +0 -0
  27. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/src/maplex/library/logger/consts/config_keys.py +0 -0
  28. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/src/maplex/library/logger/consts/dict_keys.py +0 -0
  29. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/src/maplex/library/logger/file_handler.py +0 -0
  30. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/src/maplex/library/logger/formatter.py +0 -0
  31. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/src/maplex/library/logger/log_levels.py +0 -0
  32. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/src/maplex/library/logger/utilities.py +0 -0
  33. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/src/maplex/mapleColors.py +0 -0
  34. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/src/maplex/mapleExceptions.py +0 -0
  35. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/src/maplex/mapleLogger.py +0 -0
  36. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/src/maplex/mapleTreeEditor.py +0 -0
  37. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/src/maplex/utils.py +0 -0
  38. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/tests/test_logger_unittest.py +0 -0
  39. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/tests/test_maplejson_unittest.py +0 -0
  40. {maplex-3.2.0.dev1 → maplex-3.2.0.dev3}/tests/test_mapletree_unittest.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: MapleX
3
- Version: 3.2.0.dev1
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>=46.0.3
20
- Requires-Dist: pydantic>=2.12.5
19
+ Requires-Dist: cryptography>=49.0.0
20
+ Requires-Dist: pydantic>=2.13.4
21
21
  Dynamic: license-file
22
22
 
23
23
  # MapleX
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "MapleX"
7
- version = "3.2.0.dev1"
7
+ version = "3.2.0.dev3"
8
8
  description = """A Python library for simple logging, json file operations, Maple file format operations, and console color utilities."""
9
9
  keywords = ["logging", "logger", "json", "file operations", "maple file format", "console colors"]
10
10
  readme = "README.md"
@@ -13,8 +13,8 @@ authors = [
13
13
  {name = "Ryuji Hazama"}
14
14
  ]
15
15
  dependencies = [
16
- "cryptography>=46.0.3",
17
- "pydantic>=2.12.5"
16
+ "cryptography>=49.0.0",
17
+ "pydantic>=2.13.4"
18
18
  ]
19
19
  classifiers = [
20
20
  "Programming Language :: Python :: 3.12",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: MapleX
3
- Version: 3.2.0.dev1
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>=46.0.3
20
- Requires-Dist: pydantic>=2.12.5
19
+ Requires-Dist: cryptography>=49.0.0
20
+ Requires-Dist: pydantic>=2.13.4
21
21
  Dynamic: license-file
22
22
 
23
23
  # MapleX
@@ -0,0 +1,2 @@
1
+ cryptography>=49.0.0
2
+ pydantic>=2.13.4
@@ -52,7 +52,7 @@ __all__ = [
52
52
  'winUnHide'
53
53
  ]
54
54
 
55
- __version__ = "3.2.0.dev1"
55
+ __version__ = "3.2.0.dev3"
56
56
  __author__ = "Ryuji Hazama"
57
57
  __license__ = "MIT"
58
58
 
@@ -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 self.LogLevel.INFO
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
 
@@ -38,4 +38,6 @@ __all__ = [
38
38
  "CONSOLE_FORMAT",
39
39
  "TIMESTAMP_FORMAT",
40
40
  "MILLISECOND_DIGITS",
41
+ "FILE_MODE_OVERWRITE",
42
+ "FILE_MODE_DAILY",
41
43
  ]
@@ -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,2 +0,0 @@
1
- cryptography>=46.0.3
2
- pydantic>=2.12.5
File without changes
File without changes
File without changes
File without changes