invocation-tree 0.0.2__tar.gz → 0.0.4__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 (155) hide show
  1. {invocation_tree-0.0.2/invocation_tree.egg-info → invocation_tree-0.0.4}/PKG-INFO +5 -5
  2. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/README.md +4 -4
  3. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/create_gif.sh +2 -2
  4. invocation_tree-0.0.4/images/factorial.gif +0 -0
  5. invocation_tree-0.0.4/images/factorial1.png +0 -0
  6. invocation_tree-0.0.4/images/factorial2.png +0 -0
  7. invocation_tree-0.0.4/images/factorial3.png +0 -0
  8. invocation_tree-0.0.4/images/factorial4.png +0 -0
  9. invocation_tree-0.0.4/images/factorial5.png +0 -0
  10. invocation_tree-0.0.4/images/factorial6.png +0 -0
  11. invocation_tree-0.0.4/images/factorial7.png +0 -0
  12. invocation_tree-0.0.4/images/permutations.gif +0 -0
  13. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/permutations.py +1 -1
  14. invocation_tree-0.0.4/images/permutations1.png +0 -0
  15. invocation_tree-0.0.4/images/permutations10.png +0 -0
  16. invocation_tree-0.0.4/images/permutations11.png +0 -0
  17. invocation_tree-0.0.4/images/permutations12.png +0 -0
  18. invocation_tree-0.0.4/images/permutations13.png +0 -0
  19. invocation_tree-0.0.4/images/permutations2.png +0 -0
  20. invocation_tree-0.0.4/images/permutations3.png +0 -0
  21. invocation_tree-0.0.4/images/permutations4.png +0 -0
  22. invocation_tree-0.0.4/images/permutations5.png +0 -0
  23. invocation_tree-0.0.4/images/permutations6.png +0 -0
  24. invocation_tree-0.0.4/images/permutations7.png +0 -0
  25. invocation_tree-0.0.4/images/permutations8.png +0 -0
  26. invocation_tree-0.0.4/images/permutations9.png +0 -0
  27. invocation_tree-0.0.4/images/students.gif +0 -0
  28. invocation_tree-0.0.4/images/students1.png +0 -0
  29. invocation_tree-0.0.4/images/students10.png +0 -0
  30. invocation_tree-0.0.4/images/students11.png +0 -0
  31. invocation_tree-0.0.4/images/students12.png +0 -0
  32. invocation_tree-0.0.4/images/students13.png +0 -0
  33. invocation_tree-0.0.4/images/students14.png +0 -0
  34. invocation_tree-0.0.4/images/students15.png +0 -0
  35. invocation_tree-0.0.4/images/students2.png +0 -0
  36. invocation_tree-0.0.4/images/students3.png +0 -0
  37. invocation_tree-0.0.4/images/students4.png +0 -0
  38. invocation_tree-0.0.4/images/students5.png +0 -0
  39. invocation_tree-0.0.4/images/students6.png +0 -0
  40. invocation_tree-0.0.4/images/students7.png +0 -0
  41. invocation_tree-0.0.4/images/students8.png +0 -0
  42. invocation_tree-0.0.4/images/students9.png +0 -0
  43. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/invocation_tree/__init__.py +2 -1
  44. {invocation_tree-0.0.2 → invocation_tree-0.0.4/invocation_tree.egg-info}/PKG-INFO +5 -5
  45. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/invocation_tree.egg-info/SOURCES.txt +0 -16
  46. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/setup.py +1 -1
  47. invocation_tree-0.0.2/images/factorial.gif +0 -0
  48. invocation_tree-0.0.2/images/factorial1.png +0 -0
  49. invocation_tree-0.0.2/images/factorial2.png +0 -0
  50. invocation_tree-0.0.2/images/factorial3.png +0 -0
  51. invocation_tree-0.0.2/images/factorial4.png +0 -0
  52. invocation_tree-0.0.2/images/factorial5.png +0 -0
  53. invocation_tree-0.0.2/images/factorial6.png +0 -0
  54. invocation_tree-0.0.2/images/factorial7.png +0 -0
  55. invocation_tree-0.0.2/images/permutations.gif +0 -0
  56. invocation_tree-0.0.2/images/permutations1.png +0 -0
  57. invocation_tree-0.0.2/images/permutations10.png +0 -0
  58. invocation_tree-0.0.2/images/permutations11.png +0 -0
  59. invocation_tree-0.0.2/images/permutations12.png +0 -0
  60. invocation_tree-0.0.2/images/permutations13.png +0 -0
  61. invocation_tree-0.0.2/images/permutations14.png +0 -0
  62. invocation_tree-0.0.2/images/permutations15.png +0 -0
  63. invocation_tree-0.0.2/images/permutations16.png +0 -0
  64. invocation_tree-0.0.2/images/permutations17.png +0 -0
  65. invocation_tree-0.0.2/images/permutations18.png +0 -0
  66. invocation_tree-0.0.2/images/permutations19.png +0 -0
  67. invocation_tree-0.0.2/images/permutations2.png +0 -0
  68. invocation_tree-0.0.2/images/permutations20.png +0 -0
  69. invocation_tree-0.0.2/images/permutations21.png +0 -0
  70. invocation_tree-0.0.2/images/permutations22.png +0 -0
  71. invocation_tree-0.0.2/images/permutations23.png +0 -0
  72. invocation_tree-0.0.2/images/permutations24.png +0 -0
  73. invocation_tree-0.0.2/images/permutations25.png +0 -0
  74. invocation_tree-0.0.2/images/permutations26.png +0 -0
  75. invocation_tree-0.0.2/images/permutations27.png +0 -0
  76. invocation_tree-0.0.2/images/permutations28.png +0 -0
  77. invocation_tree-0.0.2/images/permutations29.png +0 -0
  78. invocation_tree-0.0.2/images/permutations3.png +0 -0
  79. invocation_tree-0.0.2/images/permutations4.png +0 -0
  80. invocation_tree-0.0.2/images/permutations5.png +0 -0
  81. invocation_tree-0.0.2/images/permutations6.png +0 -0
  82. invocation_tree-0.0.2/images/permutations7.png +0 -0
  83. invocation_tree-0.0.2/images/permutations8.png +0 -0
  84. invocation_tree-0.0.2/images/permutations9.png +0 -0
  85. invocation_tree-0.0.2/images/students.gif +0 -0
  86. invocation_tree-0.0.2/images/students1.png +0 -0
  87. invocation_tree-0.0.2/images/students10.png +0 -0
  88. invocation_tree-0.0.2/images/students11.png +0 -0
  89. invocation_tree-0.0.2/images/students12.png +0 -0
  90. invocation_tree-0.0.2/images/students13.png +0 -0
  91. invocation_tree-0.0.2/images/students14.png +0 -0
  92. invocation_tree-0.0.2/images/students15.png +0 -0
  93. invocation_tree-0.0.2/images/students2.png +0 -0
  94. invocation_tree-0.0.2/images/students3.png +0 -0
  95. invocation_tree-0.0.2/images/students4.png +0 -0
  96. invocation_tree-0.0.2/images/students5.png +0 -0
  97. invocation_tree-0.0.2/images/students6.png +0 -0
  98. invocation_tree-0.0.2/images/students7.png +0 -0
  99. invocation_tree-0.0.2/images/students8.png +0 -0
  100. invocation_tree-0.0.2/images/students9.png +0 -0
  101. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/LICENSE.txt +0 -0
  102. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/MANIFEST.in +0 -0
  103. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/create_images.sh +0 -0
  104. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/create_images.sh~ +0 -0
  105. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/factorial.py +0 -0
  106. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/factorial.py~ +0 -0
  107. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/factorial8.gv +0 -0
  108. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/factorial9.gv +0 -0
  109. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/invocation_tree.pdf +0 -0
  110. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/invocation_tree0.pdf +0 -0
  111. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/permutations.py~ +0 -0
  112. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/permutations22.png~ +0 -0
  113. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/student.gif +0 -0
  114. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/students.py +0 -0
  115. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/students.py~ +0 -0
  116. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/students16.gv +0 -0
  117. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/students17.gv +0 -0
  118. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/students18.gv +0 -0
  119. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/students19.gv +0 -0
  120. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/students20.gv +0 -0
  121. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/students21.gv +0 -0
  122. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/students22.gv +0 -0
  123. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/students23.gv +0 -0
  124. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/students24.gv +0 -0
  125. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/students25.gv +0 -0
  126. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/students26.gv +0 -0
  127. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/students27.gv +0 -0
  128. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/students28.gv +0 -0
  129. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/students29.gv +0 -0
  130. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/students30.gv +0 -0
  131. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/test.py +0 -0
  132. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/tree0.gv +0 -0
  133. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/tree1.gv +0 -0
  134. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/tree10.gv +0 -0
  135. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/tree11.gv +0 -0
  136. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/tree12.gv +0 -0
  137. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/tree13.gv +0 -0
  138. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/tree14.gv +0 -0
  139. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/tree15.gv +0 -0
  140. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/tree16.gv +0 -0
  141. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/tree17.gv +0 -0
  142. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/tree2.gv +0 -0
  143. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/tree3.gv +0 -0
  144. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/tree4.gv +0 -0
  145. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/tree5.gv +0 -0
  146. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/tree6.gv +0 -0
  147. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/tree7.gv +0 -0
  148. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/tree8.gv +0 -0
  149. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/tree9.gv +0 -0
  150. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/images/vscode.png +0 -0
  151. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/install.txt +0 -0
  152. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/invocation_tree.egg-info/dependency_links.txt +0 -0
  153. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/invocation_tree.egg-info/requires.txt +0 -0
  154. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/invocation_tree.egg-info/top_level.txt +0 -0
  155. {invocation_tree-0.0.2 → invocation_tree-0.0.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: invocation_tree
3
- Version: 0.0.2
3
+ Version: 0.0.4
4
4
  Summary: Generate an invocation tree of functions calls.
5
5
  Home-page: https://github.com/bterwijn/invocation_tree
6
6
  Author: Bas Terwijn
@@ -67,7 +67,7 @@ Each node in the tree represents a function call, and node's color indicates its
67
67
 
68
68
  For every function, the package displays its **local variables** and **return value**. Changes to these values over time are highlighted using bold text and gray shading to make them easy to track.
69
69
 
70
- The [invocation_tree](https://pypi.org/project/invocation-tree/) package visualizes function calls at different moments in time. If you want a more detailed visualization of your data at a specific moment in time, check out the [memory_graph](https://pypi.org/project/memory-graph/) package.
70
+ The [invocation_tree](https://pypi.org/project/invocation-tree/) package visualizes function calls at different moments in time. If you want a more detailed visualization of your data at the current time, check out the [memory_graph](https://pypi.org/project/memory-graph/) package.
71
71
 
72
72
  ## Blocking ##
73
73
  The program blocks execution at every function call and return statement, printing the current location in the source code. Press the <Enter> key to continue execution. To block at every line of the program (like in a debugger tool) where a change of value occured, use instead:
@@ -98,7 +98,7 @@ def factorial(n):
98
98
  return n * factorial(n - 1)
99
99
 
100
100
  tree = invo_tree.blocking()
101
- tree(factorial, 4) # calls factorial(4)
101
+ tree(factorial, 4) # show invocation tree of calling factorial(4)
102
102
  ```
103
103
  ![factorial](https://raw.githubusercontent.com/bterwijn/invocation_tree/main/images/factorial.gif)
104
104
 
@@ -116,8 +116,8 @@ def permutations(elements, perm, n):
116
116
  return all_perms
117
117
 
118
118
  tree = invo_tree.blocking()
119
- result = tree(permutations, ['L','R'], '', 3)
120
- print(result) # all permutations of going Left and Right of length 3
119
+ result = tree(permutations, ['L','R'], '', 2)
120
+ print(result) # all permutations of going Left and Right of length 2
121
121
  ```
122
122
  ![permutations](https://raw.githubusercontent.com/bterwijn/invocation_tree/main/images/permutations.gif)
123
123
 
@@ -48,7 +48,7 @@ Each node in the tree represents a function call, and node's color indicates its
48
48
 
49
49
  For every function, the package displays its **local variables** and **return value**. Changes to these values over time are highlighted using bold text and gray shading to make them easy to track.
50
50
 
51
- The [invocation_tree](https://pypi.org/project/invocation-tree/) package visualizes function calls at different moments in time. If you want a more detailed visualization of your data at a specific moment in time, check out the [memory_graph](https://pypi.org/project/memory-graph/) package.
51
+ The [invocation_tree](https://pypi.org/project/invocation-tree/) package visualizes function calls at different moments in time. If you want a more detailed visualization of your data at the current time, check out the [memory_graph](https://pypi.org/project/memory-graph/) package.
52
52
 
53
53
  ## Blocking ##
54
54
  The program blocks execution at every function call and return statement, printing the current location in the source code. Press the <Enter> key to continue execution. To block at every line of the program (like in a debugger tool) where a change of value occured, use instead:
@@ -79,7 +79,7 @@ def factorial(n):
79
79
  return n * factorial(n - 1)
80
80
 
81
81
  tree = invo_tree.blocking()
82
- tree(factorial, 4) # calls factorial(4)
82
+ tree(factorial, 4) # show invocation tree of calling factorial(4)
83
83
  ```
84
84
  ![factorial](https://raw.githubusercontent.com/bterwijn/invocation_tree/main/images/factorial.gif)
85
85
 
@@ -97,8 +97,8 @@ def permutations(elements, perm, n):
97
97
  return all_perms
98
98
 
99
99
  tree = invo_tree.blocking()
100
- result = tree(permutations, ['L','R'], '', 3)
101
- print(result) # all permutations of going Left and Right of length 3
100
+ result = tree(permutations, ['L','R'], '', 2)
101
+ print(result) # all permutations of going Left and Right of length 2
102
102
  ```
103
103
  ![permutations](https://raw.githubusercontent.com/bterwijn/invocation_tree/main/images/permutations.gif)
104
104
 
@@ -9,11 +9,11 @@ files=$(ls -v $name*.png)
9
9
  echo "creating gif with:"
10
10
  echo "$files"
11
11
 
12
- largest_size=$(identify -format "%Wx%H %f\n" $name*.png | sort -nr | head -n1)
12
+ largest_size=$(identify -format "%H %Wx%H %f\n" $name*.png | sort -nr | head -n1| awk '{print $2}')
13
13
  echo "largest_size: $largest_size"
14
14
 
15
15
  echo "resizing images"
16
- mogrify -resize $largest_size -background white -gravity center -extent $largest_size $files
16
+ mogrify -resize $largest_size -background white -gravity North -extent $largest_size $files
17
17
  echo "creating file: $name.gif"
18
18
  convert -delay 150 -loop 0 $files $name.gif
19
19
  echo "done"
@@ -9,5 +9,5 @@ def permutations(elements, perm, n):
9
9
  return all_perms
10
10
 
11
11
  tree = invo_tree.gif('permutations.png')
12
- result = tree(permutations, ['L','R'], '', 3)
12
+ result = tree(permutations, ['L','R'], '', 2)
13
13
  print(result)
@@ -7,7 +7,7 @@ import html
7
7
  import sys
8
8
  import difflib
9
9
 
10
- __version__ = "0.0.2"
10
+ __version__ = "0.0.4"
11
11
  __author__ = 'Bas Terwijn'
12
12
 
13
13
  def highlight_diff(str1, str2):
@@ -112,6 +112,7 @@ class Invocation_Tree:
112
112
  result = fun(*args, **kwargs)
113
113
  finally:
114
114
  sys.settrace(None)
115
+ return result
115
116
 
116
117
  def value_to_string(self, key, value, use_repr=False):
117
118
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: invocation_tree
3
- Version: 0.0.2
3
+ Version: 0.0.4
4
4
  Summary: Generate an invocation tree of functions calls.
5
5
  Home-page: https://github.com/bterwijn/invocation_tree
6
6
  Author: Bas Terwijn
@@ -67,7 +67,7 @@ Each node in the tree represents a function call, and node's color indicates its
67
67
 
68
68
  For every function, the package displays its **local variables** and **return value**. Changes to these values over time are highlighted using bold text and gray shading to make them easy to track.
69
69
 
70
- The [invocation_tree](https://pypi.org/project/invocation-tree/) package visualizes function calls at different moments in time. If you want a more detailed visualization of your data at a specific moment in time, check out the [memory_graph](https://pypi.org/project/memory-graph/) package.
70
+ The [invocation_tree](https://pypi.org/project/invocation-tree/) package visualizes function calls at different moments in time. If you want a more detailed visualization of your data at the current time, check out the [memory_graph](https://pypi.org/project/memory-graph/) package.
71
71
 
72
72
  ## Blocking ##
73
73
  The program blocks execution at every function call and return statement, printing the current location in the source code. Press the <Enter> key to continue execution. To block at every line of the program (like in a debugger tool) where a change of value occured, use instead:
@@ -98,7 +98,7 @@ def factorial(n):
98
98
  return n * factorial(n - 1)
99
99
 
100
100
  tree = invo_tree.blocking()
101
- tree(factorial, 4) # calls factorial(4)
101
+ tree(factorial, 4) # show invocation tree of calling factorial(4)
102
102
  ```
103
103
  ![factorial](https://raw.githubusercontent.com/bterwijn/invocation_tree/main/images/factorial.gif)
104
104
 
@@ -116,8 +116,8 @@ def permutations(elements, perm, n):
116
116
  return all_perms
117
117
 
118
118
  tree = invo_tree.blocking()
119
- result = tree(permutations, ['L','R'], '', 3)
120
- print(result) # all permutations of going Left and Right of length 3
119
+ result = tree(permutations, ['L','R'], '', 2)
120
+ print(result) # all permutations of going Left and Right of length 2
121
121
  ```
122
122
  ![permutations](https://raw.githubusercontent.com/bterwijn/invocation_tree/main/images/permutations.gif)
123
123
 
@@ -28,24 +28,8 @@ images/permutations10.png
28
28
  images/permutations11.png
29
29
  images/permutations12.png
30
30
  images/permutations13.png
31
- images/permutations14.png
32
- images/permutations15.png
33
- images/permutations16.png
34
- images/permutations17.png
35
- images/permutations18.png
36
- images/permutations19.png
37
31
  images/permutations2.png
38
- images/permutations20.png
39
- images/permutations21.png
40
- images/permutations22.png
41
32
  images/permutations22.png~
42
- images/permutations23.png
43
- images/permutations24.png
44
- images/permutations25.png
45
- images/permutations26.png
46
- images/permutations27.png
47
- images/permutations28.png
48
- images/permutations29.png
49
33
  images/permutations3.png
50
34
  images/permutations4.png
51
35
  images/permutations5.png
@@ -11,7 +11,7 @@ long_description_from_readme = (this_directory / "README.md").read_text()
11
11
 
12
12
  setup(
13
13
  name = 'invocation_tree',
14
- version = '0.0.2',
14
+ version = '0.0.4',
15
15
  description = 'Generate an invocation tree of functions calls.',
16
16
  long_description = long_description_from_readme,
17
17
  long_description_content_type = 'text/markdown',
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file