memory-graph 0.2.4__tar.gz → 0.2.5__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.2.4 → memory_graph-0.2.5}/PKG-INFO +1 -1
- {memory_graph-0.2.4 → memory_graph-0.2.5}/memory_graph/__init__.py +9 -6
- {memory_graph-0.2.4 → memory_graph-0.2.5}/memory_graph/config_default.py +6 -6
- {memory_graph-0.2.4 → memory_graph-0.2.5}/memory_graph/config_helpers.py +1 -1
- {memory_graph-0.2.4 → memory_graph-0.2.5}/memory_graph/extension_numpy.py +2 -2
- {memory_graph-0.2.4 → memory_graph-0.2.5}/memory_graph/extension_pandas.py +2 -2
- memory_graph-0.2.4/memory_graph/HTML_Table.py → memory_graph-0.2.5/memory_graph/html_table.py +1 -1
- memory_graph-0.2.4/memory_graph/Memory_Graph.py → memory_graph-0.2.5/memory_graph/memory_graph.py +1 -1
- memory_graph-0.2.4/memory_graph/Memory_Visitor.py → memory_graph-0.2.5/memory_graph/memory_visitor.py +3 -3
- memory_graph-0.2.4/memory_graph/Node.py → memory_graph-0.2.5/memory_graph/node.py +1 -1
- memory_graph-0.2.4/memory_graph/Node_Hidden.py → memory_graph-0.2.5/memory_graph/node_hidden.py +1 -1
- memory_graph-0.2.4/memory_graph/Node_Key_Value.py → memory_graph-0.2.5/memory_graph/node_key_value.py +3 -3
- memory_graph-0.2.4/memory_graph/Node_Linear.py → memory_graph-0.2.5/memory_graph/node_linear.py +2 -2
- memory_graph-0.2.4/memory_graph/Node_Table.py → memory_graph-0.2.5/memory_graph/node_table.py +2 -2
- memory_graph-0.2.4/memory_graph/Sliced.py → memory_graph-0.2.5/memory_graph/sliced.py +1 -1
- memory_graph-0.2.4/memory_graph/Slicer.py → memory_graph-0.2.5/memory_graph/slicer.py +1 -1
- {memory_graph-0.2.4 → memory_graph-0.2.5}/memory_graph/test.py +2 -2
- {memory_graph-0.2.4 → memory_graph-0.2.5}/memory_graph/test_memory_graph.py +1 -1
- {memory_graph-0.2.4 → memory_graph-0.2.5}/memory_graph/test_memory_visitor.py +1 -1
- {memory_graph-0.2.4 → memory_graph-0.2.5}/memory_graph.egg-info/PKG-INFO +1 -1
- {memory_graph-0.2.4 → memory_graph-0.2.5}/memory_graph.egg-info/SOURCES.txt +10 -11
- {memory_graph-0.2.4 → memory_graph-0.2.5}/setup.py +1 -1
- memory_graph-0.2.4/memory_graph/special_types.py +0 -4
- {memory_graph-0.2.4 → memory_graph-0.2.5}/LICENSE.txt +0 -0
- {memory_graph-0.2.4 → memory_graph-0.2.5}/MANIFEST.in +0 -0
- {memory_graph-0.2.4 → memory_graph-0.2.5}/README.md +0 -0
- {memory_graph-0.2.4 → memory_graph-0.2.5}/memory_graph/config.py +0 -0
- {memory_graph-0.2.4 → memory_graph-0.2.5}/memory_graph/utils.py +0 -0
- {memory_graph-0.2.4 → memory_graph-0.2.5}/memory_graph.egg-info/dependency_links.txt +0 -0
- {memory_graph-0.2.4 → memory_graph-0.2.5}/memory_graph.egg-info/requires.txt +0 -0
- {memory_graph-0.2.4 → memory_graph-0.2.5}/memory_graph.egg-info/top_level.txt +0 -0
- {memory_graph-0.2.4 → memory_graph-0.2.5}/setup.cfg +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from memory_graph.
|
|
1
|
+
from memory_graph.memory_graph import Memory_Graph
|
|
2
2
|
|
|
3
3
|
import memory_graph.config_default as config_default
|
|
4
4
|
import memory_graph.utils as utils
|
|
@@ -6,7 +6,7 @@ import memory_graph.utils as utils
|
|
|
6
6
|
import inspect
|
|
7
7
|
import sys
|
|
8
8
|
|
|
9
|
-
__version__ = "0.2.
|
|
9
|
+
__version__ = "0.2.05"
|
|
10
10
|
__author__ = 'Bas Terwijn'
|
|
11
11
|
|
|
12
12
|
log_file=sys.stdout
|
|
@@ -33,24 +33,27 @@ def create_graph(data,
|
|
|
33
33
|
memory_graph = Memory_Graph(data, colors, vertical_orientations, slicers)
|
|
34
34
|
return memory_graph.get_graph()
|
|
35
35
|
|
|
36
|
-
def show(data,block=False,
|
|
36
|
+
def show(data=None ,block=False, stack_index=2,
|
|
37
37
|
colors = None,
|
|
38
38
|
vertical_orientations = None,
|
|
39
39
|
slicers = None):
|
|
40
40
|
""" Shows the graph of 'data' and optionally blocks. """
|
|
41
|
+
if data is None:
|
|
42
|
+
data=get_locals_from_calling_frame(stack_index)
|
|
41
43
|
graph = create_graph(data, colors, vertical_orientations, slicers)
|
|
42
|
-
#print('graph:',graph)
|
|
43
44
|
graph.view()
|
|
44
45
|
if block:
|
|
45
46
|
input(f"showing '{graph.filename}', {get_source_location(2)}, {press_enter_text}")
|
|
46
47
|
|
|
47
|
-
def render(data, output_filename=None, block=False,
|
|
48
|
+
def render(data=None, output_filename=None, block=False, stack_index=2,
|
|
48
49
|
colors = None,
|
|
49
50
|
vertical_orientations = None,
|
|
50
51
|
slicers = None):
|
|
51
52
|
""" Renders the graph of 'data' to 'output_filename' and optionally blocks. """
|
|
53
|
+
if data is None:
|
|
54
|
+
data=get_locals_from_calling_frame(stack_index)
|
|
52
55
|
graph = create_graph(data, colors, vertical_orientations, slicers)
|
|
53
|
-
filename = output_filename if output_filename else graph.filename
|
|
56
|
+
filename = output_filename if output_filename else graph.filename+".pdf"
|
|
54
57
|
graph.render(outfile=filename)
|
|
55
58
|
if block:
|
|
56
59
|
input(f"rendering '{filename}', {get_source_location(2)}, {press_enter_text}")
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
""" Sets the default configuration values for the memory graph. """
|
|
2
|
-
from memory_graph.
|
|
3
|
-
from memory_graph.
|
|
4
|
-
from memory_graph.
|
|
5
|
-
from memory_graph.
|
|
6
|
-
from memory_graph.
|
|
7
|
-
from memory_graph.
|
|
2
|
+
from memory_graph.node import Node
|
|
3
|
+
from memory_graph.node_linear import Node_Linear
|
|
4
|
+
from memory_graph.node_key_value import Node_Key_Value
|
|
5
|
+
from memory_graph.node_hidden import Node_Hidden
|
|
6
|
+
from memory_graph.node_table import Node_Table
|
|
7
|
+
from memory_graph.slicer import Slicer
|
|
8
8
|
|
|
9
9
|
import memory_graph.config as config
|
|
10
10
|
import memory_graph.utils as utils
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
""" Extension to add the memory graph configuration for Numpy types. """
|
|
2
|
-
from memory_graph.
|
|
3
|
-
from memory_graph.
|
|
2
|
+
from memory_graph.node_linear import Node_Linear
|
|
3
|
+
from memory_graph.node_table import Node_Table
|
|
4
4
|
|
|
5
5
|
import memory_graph.config as config
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
""" Extension to add the memory graph configuration for Pandas type. """
|
|
2
|
-
from memory_graph.
|
|
3
|
-
from memory_graph.
|
|
2
|
+
from memory_graph.node_linear import Node_Linear
|
|
3
|
+
from memory_graph.node_table import Node_Table
|
|
4
4
|
|
|
5
5
|
import memory_graph.config as config
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
from memory_graph.
|
|
2
|
-
from memory_graph.
|
|
3
|
-
from memory_graph.
|
|
1
|
+
from memory_graph.node import Node
|
|
2
|
+
from memory_graph.node_linear import Node_Linear
|
|
3
|
+
from memory_graph.node_key_value import Node_Key_Value
|
|
4
4
|
|
|
5
5
|
import memory_graph.utils as utils
|
|
6
6
|
import memory_graph.config as config
|
|
@@ -75,7 +75,7 @@ class Node:
|
|
|
75
75
|
"""
|
|
76
76
|
Return the HTML_Table object that determines how the node is visualized in the graph.
|
|
77
77
|
"""
|
|
78
|
-
from memory_graph.
|
|
78
|
+
from memory_graph.html_table import HTML_Table
|
|
79
79
|
html_table = HTML_Table()
|
|
80
80
|
if self.children is None:
|
|
81
81
|
html_table.add_string(f'{self.data}')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
from memory_graph.
|
|
2
|
-
from memory_graph.
|
|
3
|
-
from memory_graph.
|
|
1
|
+
from memory_graph.node import Node
|
|
2
|
+
from memory_graph.node_hidden import Node_Hidden
|
|
3
|
+
from memory_graph.slicer import Slicer
|
|
4
4
|
|
|
5
5
|
import memory_graph.config_helpers as config_helpers
|
|
6
6
|
import memory_graph.utils as utils
|
|
@@ -7,8 +7,8 @@ import pandas as pd
|
|
|
7
7
|
import memory_graph.extension_numpy
|
|
8
8
|
import memory_graph.extension_pandas
|
|
9
9
|
|
|
10
|
-
from memory_graph.
|
|
11
|
-
from memory_graph.
|
|
10
|
+
from memory_graph.node_table import Node_Table
|
|
11
|
+
from memory_graph.memory_graph import Memory_Graph
|
|
12
12
|
|
|
13
13
|
def test_singular(fun):
|
|
14
14
|
data = 100
|
|
@@ -2,23 +2,22 @@ LICENSE.txt
|
|
|
2
2
|
MANIFEST.in
|
|
3
3
|
README.md
|
|
4
4
|
setup.py
|
|
5
|
-
memory_graph/HTML_Table.py
|
|
6
|
-
memory_graph/Memory_Graph.py
|
|
7
|
-
memory_graph/Memory_Visitor.py
|
|
8
|
-
memory_graph/Node.py
|
|
9
|
-
memory_graph/Node_Hidden.py
|
|
10
|
-
memory_graph/Node_Key_Value.py
|
|
11
|
-
memory_graph/Node_Linear.py
|
|
12
|
-
memory_graph/Node_Table.py
|
|
13
|
-
memory_graph/Sliced.py
|
|
14
|
-
memory_graph/Slicer.py
|
|
15
5
|
memory_graph/__init__.py
|
|
16
6
|
memory_graph/config.py
|
|
17
7
|
memory_graph/config_default.py
|
|
18
8
|
memory_graph/config_helpers.py
|
|
19
9
|
memory_graph/extension_numpy.py
|
|
20
10
|
memory_graph/extension_pandas.py
|
|
21
|
-
memory_graph/
|
|
11
|
+
memory_graph/html_table.py
|
|
12
|
+
memory_graph/memory_graph.py
|
|
13
|
+
memory_graph/memory_visitor.py
|
|
14
|
+
memory_graph/node.py
|
|
15
|
+
memory_graph/node_hidden.py
|
|
16
|
+
memory_graph/node_key_value.py
|
|
17
|
+
memory_graph/node_linear.py
|
|
18
|
+
memory_graph/node_table.py
|
|
19
|
+
memory_graph/sliced.py
|
|
20
|
+
memory_graph/slicer.py
|
|
22
21
|
memory_graph/test.py
|
|
23
22
|
memory_graph/test_memory_graph.py
|
|
24
23
|
memory_graph/test_memory_visitor.py
|
|
@@ -7,7 +7,7 @@ long_description_from_readme = (this_directory / "README.md").read_text()
|
|
|
7
7
|
|
|
8
8
|
setup(
|
|
9
9
|
name = 'memory_graph',
|
|
10
|
-
version = '0.2.
|
|
10
|
+
version = '0.2.05',
|
|
11
11
|
description = 'Draws a graph of your data to analyze its structure.',
|
|
12
12
|
long_description = long_description_from_readme,
|
|
13
13
|
long_description_content_type = 'text/markdown',
|
|
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
|