jk_prettyprintobj 0.2025.5.24__tar.gz → 0.2025.6.19__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.
- {jk_prettyprintobj-0.2025.5.24 → jk_prettyprintobj-0.2025.6.19}/PKG-INFO +1 -1
- jk_prettyprintobj-0.2025.6.19/jk_prettyprintobj/NamedTupleDumpMixinMeta.py +64 -0
- {jk_prettyprintobj-0.2025.5.24 → jk_prettyprintobj-0.2025.6.19}/jk_prettyprintobj/__init__.py +3 -1
- {jk_prettyprintobj-0.2025.5.24 → jk_prettyprintobj-0.2025.6.19}/README.md +0 -0
- {jk_prettyprintobj-0.2025.5.24 → jk_prettyprintobj-0.2025.6.19}/jk_prettyprintobj/DumperSettings.py +0 -0
- {jk_prettyprintobj-0.2025.5.24 → jk_prettyprintobj-0.2025.6.19}/jk_prettyprintobj/RawValue.py +0 -0
- {jk_prettyprintobj-0.2025.5.24 → jk_prettyprintobj-0.2025.6.19}/jk_prettyprintobj/_Bits.py +0 -0
- {jk_prettyprintobj-0.2025.5.24 → jk_prettyprintobj-0.2025.6.19}/jk_prettyprintobj/_ByteChunker.py +0 -0
- {jk_prettyprintobj-0.2025.5.24 → jk_prettyprintobj-0.2025.6.19}/jk_prettyprintobj/_ConverterFunctions.py +0 -0
- {jk_prettyprintobj-0.2025.5.24 → jk_prettyprintobj-0.2025.6.19}/jk_prettyprintobj/_Hex.py +0 -0
- {jk_prettyprintobj-0.2025.5.24 → jk_prettyprintobj-0.2025.6.19}/jk_prettyprintobj/dumper.py +0 -0
- {jk_prettyprintobj-0.2025.5.24 → jk_prettyprintobj-0.2025.6.19}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: jk_prettyprintobj
|
3
|
-
Version: 0.2025.
|
3
|
+
Version: 0.2025.6.19
|
4
4
|
Summary: This python module provides a mixin for creating pretty debugging output for objects. This is especially useful for semi-complex data structures.
|
5
5
|
Keywords: pretty-print,debugging,debug
|
6
6
|
Author-email: Jürgen Knauth <pubsrc@binary-overflow.de>
|
@@ -0,0 +1,64 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
import typing
|
4
|
+
|
5
|
+
from .dumper import DumpMixin
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
def _dumpVarNames_x(self):
|
10
|
+
return self._fields
|
11
|
+
#
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
#
|
16
|
+
# This meta class can be used to implement dumpable named tuples.
|
17
|
+
#
|
18
|
+
class NamedTupleDumpMixinMeta(typing.NamedTupleMeta):
|
19
|
+
|
20
|
+
################################################################################################################################
|
21
|
+
## Constants
|
22
|
+
################################################################################################################################
|
23
|
+
|
24
|
+
################################################################################################################################
|
25
|
+
## Constructor
|
26
|
+
################################################################################################################################
|
27
|
+
|
28
|
+
################################################################################################################################
|
29
|
+
## Public Properties
|
30
|
+
################################################################################################################################
|
31
|
+
|
32
|
+
################################################################################################################################
|
33
|
+
## Helper Methods
|
34
|
+
################################################################################################################################
|
35
|
+
|
36
|
+
################################################################################################################################
|
37
|
+
## Public Methods
|
38
|
+
################################################################################################################################
|
39
|
+
|
40
|
+
################################################################################################################################
|
41
|
+
## Public Static Methods
|
42
|
+
################################################################################################################################
|
43
|
+
|
44
|
+
################################################################################################################################
|
45
|
+
## Special Methods
|
46
|
+
################################################################################################################################
|
47
|
+
|
48
|
+
def __new__(cls, typename, bases, ns):
|
49
|
+
if DumpMixin not in bases:
|
50
|
+
bases = ( DumpMixin, ) + bases
|
51
|
+
cls_obj = super().__new__(cls, typename+"_nm_base", bases, ns)
|
52
|
+
bases = bases + (cls_obj,)
|
53
|
+
return type(typename, bases, {
|
54
|
+
"_dumpVarNames": _dumpVarNames_x
|
55
|
+
})
|
56
|
+
#
|
57
|
+
|
58
|
+
#
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
{jk_prettyprintobj-0.2025.5.24 → jk_prettyprintobj-0.2025.6.19}/jk_prettyprintobj/__init__.py
RENAMED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
__author__ = "Jürgen Knauth"
|
5
|
-
__version__ = "0.2025.
|
5
|
+
__version__ = "0.2025.6.19"
|
6
6
|
__email__ = "pubsrc@binary-overflow.de"
|
7
7
|
__license__ = "Apache2"
|
8
8
|
__copyright__ = "Copyright (c) 2020-2025, Jürgen Knauth"
|
@@ -16,6 +16,7 @@ __all__ = (
|
|
16
16
|
"DumpCtx",
|
17
17
|
"DEFAULT_DUMPER_SETTINGS",
|
18
18
|
"pprint",
|
19
|
+
"NamedTupleDumpMixinMeta",
|
19
20
|
)
|
20
21
|
|
21
22
|
|
@@ -25,6 +26,7 @@ __all__ = (
|
|
25
26
|
from .DumperSettings import DumperSettings
|
26
27
|
from .RawValue import RawValue
|
27
28
|
from .dumper import DumpMixin, Dumper, DumpCtx, DEFAULT_DUMPER_SETTINGS
|
29
|
+
from .NamedTupleDumpMixinMeta import NamedTupleDumpMixinMeta
|
28
30
|
|
29
31
|
from builtins import print as _print
|
30
32
|
|
File without changes
|
{jk_prettyprintobj-0.2025.5.24 → jk_prettyprintobj-0.2025.6.19}/jk_prettyprintobj/DumperSettings.py
RENAMED
File without changes
|
{jk_prettyprintobj-0.2025.5.24 → jk_prettyprintobj-0.2025.6.19}/jk_prettyprintobj/RawValue.py
RENAMED
File without changes
|
File without changes
|
{jk_prettyprintobj-0.2025.5.24 → jk_prettyprintobj-0.2025.6.19}/jk_prettyprintobj/_ByteChunker.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|