memory-graph 0.3.80__tar.gz → 0.3.82__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.
- {memory_graph-0.3.80 → memory_graph-0.3.82}/PKG-INFO +2 -2
- {memory_graph-0.3.80 → memory_graph-0.3.82}/README.md +1 -1
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/__init__.py +1 -1
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/config_default.py +2 -2
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/config_helpers.py +2 -4
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph.egg-info/PKG-INFO +2 -2
- {memory_graph-0.3.80 → memory_graph-0.3.82}/pyproject.toml +1 -1
- {memory_graph-0.3.80 → memory_graph-0.3.82}/LICENSE.txt +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/call_stack.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/config.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/extension_numpy.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/extension_pandas.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/extension_torch.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/html_table.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/list_view.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/memory_to_nodes.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/node_base.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/node_key_value.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/node_leaf.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/node_linear.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/node_table.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/sequence.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/slicer.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/slices.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/slices_iterator.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/slices_table_iterator.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/test.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/test_max_graph_depth.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/test_memory_graph.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/test_memory_to_nodes.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/test_sequence.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/test_slicer.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/test_slices.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/test_slices_iterator.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph/utils.py +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph.egg-info/SOURCES.txt +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph.egg-info/dependency_links.txt +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph.egg-info/requires.txt +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/memory_graph.egg-info/top_level.txt +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/setup.cfg +0 -0
- {memory_graph-0.3.80 → memory_graph-0.3.82}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: memory_graph
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.82
|
|
4
4
|
Summary: Teaching tool and debugging aid in context of references, mutable data types, and shallow and deep copy.
|
|
5
5
|
Author-email: Bas Terwijn <bterwijn@gmail.com>
|
|
6
6
|
License-Expression: BSD-2-Clause
|
|
@@ -1052,7 +1052,7 @@ Different aspects of memory_graph can be configured. The default configuration c
|
|
|
1052
1052
|
- Set dark mode to 'True' or 'False', or 'None' to toggle.
|
|
1053
1053
|
|
|
1054
1054
|
- **mg.transparent_background(b: bool = None)**
|
|
1055
|
-
- Set
|
|
1055
|
+
- Set transparent background to 'True' or 'False', or 'None' to toggle.
|
|
1056
1056
|
|
|
1057
1057
|
## Simplified Graph ##
|
|
1058
1058
|
Memory_graph simplifies the visualization (and the viewer's mental model) by **not** showing separate nodes for immutable types like `bool`, `int`, `float`, `complex`, and `str` by default. This simplification can sometimes be slightly misleading. As in the example below, after a shallow copy, lists `a` and `b` technically share their `int` values, but the graph makes it appear as though `a` and `b` each have their own copies. However, since `int` is immutable, this simplification will never lead to unexpected changes (changing `a`'s ints won’t affect `b`) so will never result in bugs.
|
|
@@ -1032,7 +1032,7 @@ Different aspects of memory_graph can be configured. The default configuration c
|
|
|
1032
1032
|
- Set dark mode to 'True' or 'False', or 'None' to toggle.
|
|
1033
1033
|
|
|
1034
1034
|
- **mg.transparent_background(b: bool = None)**
|
|
1035
|
-
- Set
|
|
1035
|
+
- Set transparent background to 'True' or 'False', or 'None' to toggle.
|
|
1036
1036
|
|
|
1037
1037
|
## Simplified Graph ##
|
|
1038
1038
|
Memory_graph simplifies the visualization (and the viewer's mental model) by **not** showing separate nodes for immutable types like `bool`, `int`, `float`, `complex`, and `str` by default. This simplification can sometimes be slightly misleading. As in the example below, after a shallow copy, lists `a` and `b` technically share their `int` values, but the graph makes it appear as though `a` and `b` each have their own copies. However, since `int` is immutable, this simplification will never lead to unexpected changes (changing `a`'s ints won’t affect `b`) so will never result in bugs.
|
|
@@ -86,12 +86,12 @@ def set_colors(dark=None, transparent=None):
|
|
|
86
86
|
config.foreground_color = foreground_color_dark
|
|
87
87
|
config.index_color = index_color_dark
|
|
88
88
|
config.background_color = background_color_dark
|
|
89
|
-
config.type_to_color = type_to_color_dark
|
|
89
|
+
config.type_to_color = type_to_color_dark.copy()
|
|
90
90
|
else:
|
|
91
91
|
config.foreground_color = foreground_color_light
|
|
92
92
|
config.index_color = index_color_light
|
|
93
93
|
config.background_color = background_color_light
|
|
94
|
-
config.type_to_color = type_to_color_light
|
|
94
|
+
config.type_to_color = type_to_color_light.copy()
|
|
95
95
|
if transparent:
|
|
96
96
|
config.background_color = "transparent"
|
|
97
97
|
|
|
@@ -48,11 +48,9 @@ def default_to_string(data):
|
|
|
48
48
|
s = data
|
|
49
49
|
else:
|
|
50
50
|
s = str(data)
|
|
51
|
-
return
|
|
52
51
|
except Exception as e:
|
|
53
52
|
s = 'no stringification, '+ type(e).__name__ +': '+ str(e)
|
|
54
|
-
|
|
55
|
-
return utils.prep_str(s)
|
|
53
|
+
return utils.prep_str(s)
|
|
56
54
|
|
|
57
55
|
def get_to_string(data, default=lambda d: default_to_string(d)):
|
|
58
56
|
return get_property(id(data),
|
|
@@ -61,7 +59,7 @@ def get_to_string(data, default=lambda d: default_to_string(d)):
|
|
|
61
59
|
config.type_to_string,
|
|
62
60
|
default )
|
|
63
61
|
|
|
64
|
-
def get_node_color(node, default=
|
|
62
|
+
def get_node_color(node, default=config.background_color):
|
|
65
63
|
return get_property(node.get_id(),
|
|
66
64
|
utils.get_all_types(node.get_data()),
|
|
67
65
|
type(node),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: memory_graph
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.82
|
|
4
4
|
Summary: Teaching tool and debugging aid in context of references, mutable data types, and shallow and deep copy.
|
|
5
5
|
Author-email: Bas Terwijn <bterwijn@gmail.com>
|
|
6
6
|
License-Expression: BSD-2-Clause
|
|
@@ -1052,7 +1052,7 @@ Different aspects of memory_graph can be configured. The default configuration c
|
|
|
1052
1052
|
- Set dark mode to 'True' or 'False', or 'None' to toggle.
|
|
1053
1053
|
|
|
1054
1054
|
- **mg.transparent_background(b: bool = None)**
|
|
1055
|
-
- Set
|
|
1055
|
+
- Set transparent background to 'True' or 'False', or 'None' to toggle.
|
|
1056
1056
|
|
|
1057
1057
|
## Simplified Graph ##
|
|
1058
1058
|
Memory_graph simplifies the visualization (and the viewer's mental model) by **not** showing separate nodes for immutable types like `bool`, `int`, `float`, `complex`, and `str` by default. This simplification can sometimes be slightly misleading. As in the example below, after a shallow copy, lists `a` and `b` technically share their `int` values, but the graph makes it appear as though `a` and `b` each have their own copies. However, since `int` is immutable, this simplification will never lead to unexpected changes (changing `a`'s ints won’t affect `b`) so will never result in bugs.
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "memory_graph"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.82"
|
|
8
8
|
description = "Teaching tool and debugging aid in context of references, mutable data types, and shallow and deep copy."
|
|
9
9
|
authors = [
|
|
10
10
|
{name = "Bas Terwijn", email = "bterwijn@gmail.com"}
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|