jk_prettyprintobj 0.2025.5.24__py3-none-any.whl → 0.2025.6.19__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.
@@ -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
+
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
  __author__ = "Jürgen Knauth"
5
- __version__ = "0.2025.5.24"
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: jk_prettyprintobj
3
- Version: 0.2025.5.24
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>
@@ -1,11 +1,12 @@
1
1
  jk_prettyprintobj/DumperSettings.py,sha256=hPWXl-QwW8VCgF4Z8_vmTuzbRxJywGBxgY_X7Q9q5iE,2094
2
+ jk_prettyprintobj/NamedTupleDumpMixinMeta.py,sha256=dgeJLPW05kB8qy-wbCyqeGn8QrJCSszTcbKyPij987k,2474
2
3
  jk_prettyprintobj/RawValue.py,sha256=ndfRfx1HTK1CBr0CM-5h88FCEgUASfAQ3WChGFmqm3o,2059
3
4
  jk_prettyprintobj/_Bits.py,sha256=EVAk9bMNpnuv_re8hi5vk4znK2xYHsceR07RG_0f4x0,805
4
5
  jk_prettyprintobj/_ByteChunker.py,sha256=Q3BUM87TsuS5-_HorEDoaXIYwAxbyG1vsLgW9H64dUc,5031
5
6
  jk_prettyprintobj/_ConverterFunctions.py,sha256=c31r8SZB4JXy8uohwXimBZR8Gn0rSfYs2jGhr9a5eJw,3301
6
7
  jk_prettyprintobj/_Hex.py,sha256=RsqEIp8N4ms48aDCYIV1TLQxexd0TnxwRmnx91Y0MQg,515
7
- jk_prettyprintobj/__init__.py,sha256=uo9Hwb5yzJ4FrdEEckbO1lGzaJkau6K_OmoUbA1JLT8,800
8
+ jk_prettyprintobj/__init__.py,sha256=8_tGBEl0e2vrAx4TTkjMD4Swej_Rp4lZ729H_xQpSHg,889
8
9
  jk_prettyprintobj/dumper.py,sha256=CmbyLxorGSAv_gbjAztpDgnVWeaHm_ah-ldgGUNHACA,18990
9
- jk_prettyprintobj-0.2025.5.24.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
10
- jk_prettyprintobj-0.2025.5.24.dist-info/METADATA,sha256=v30kH7qziDvemMqwhK_Wg8jwI7_RxGB8578xy9u355E,8316
11
- jk_prettyprintobj-0.2025.5.24.dist-info/RECORD,,
10
+ jk_prettyprintobj-0.2025.6.19.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
11
+ jk_prettyprintobj-0.2025.6.19.dist-info/METADATA,sha256=Frm0MpI1t_1VcAxh026h4FXlZpBaHtGQU6fCGw4LLLg,8316
12
+ jk_prettyprintobj-0.2025.6.19.dist-info/RECORD,,