Graphinate 0.8.3__tar.gz → 0.8.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 (122) hide show
  1. {graphinate-0.8.3 → graphinate-0.8.4}/PKG-INFO +1 -1
  2. {graphinate-0.8.3 → graphinate-0.8.4}/examples/code/python_ast.py +1 -1
  3. {graphinate-0.8.3 → graphinate-0.8.4}/pyproject.toml +1 -1
  4. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/builders.py +6 -2
  5. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/renderers/graphql.py +1 -1
  6. {graphinate-0.8.3 → graphinate-0.8.4}/.coveragerc +0 -0
  7. {graphinate-0.8.3 → graphinate-0.8.4}/.github/dependabot.yml +0 -0
  8. {graphinate-0.8.3 → graphinate-0.8.4}/.github/workflows/codeql.yml +0 -0
  9. {graphinate-0.8.3 → graphinate-0.8.4}/.github/workflows/publish-docs.yaml +0 -0
  10. {graphinate-0.8.3 → graphinate-0.8.4}/.github/workflows/publish.yml +0 -0
  11. {graphinate-0.8.3 → graphinate-0.8.4}/.github/workflows/test-beta.yml +0 -0
  12. {graphinate-0.8.3 → graphinate-0.8.4}/.github/workflows/test.yml +0 -0
  13. {graphinate-0.8.3 → graphinate-0.8.4}/.gitignore +0 -0
  14. {graphinate-0.8.3 → graphinate-0.8.4}/.sonarcloud.properties +0 -0
  15. {graphinate-0.8.3 → graphinate-0.8.4}/LICENSE +0 -0
  16. {graphinate-0.8.3 → graphinate-0.8.4}/README.md +0 -0
  17. {graphinate-0.8.3 → graphinate-0.8.4}/docs/.dates_cache.json +0 -0
  18. {graphinate-0.8.3 → graphinate-0.8.4}/docs/acknowledge.md +0 -0
  19. {graphinate-0.8.3 → graphinate-0.8.4}/docs/assets/badge/v0.json +0 -0
  20. {graphinate-0.8.3 → graphinate-0.8.4}/docs/assets/images/logo-128.png +0 -0
  21. {graphinate-0.8.3 → graphinate-0.8.4}/docs/assets/images/network_graph.png +0 -0
  22. {graphinate-0.8.3 → graphinate-0.8.4}/docs/assets/stylesheets/extra.css +0 -0
  23. {graphinate-0.8.3 → graphinate-0.8.4}/docs/examples/code.md +0 -0
  24. {graphinate-0.8.3 → graphinate-0.8.4}/docs/examples/github.md +0 -0
  25. {graphinate-0.8.3 → graphinate-0.8.4}/docs/examples/math.md +0 -0
  26. {graphinate-0.8.3 → graphinate-0.8.4}/docs/examples/social.md +0 -0
  27. {graphinate-0.8.3 → graphinate-0.8.4}/docs/examples/system.md +0 -0
  28. {graphinate-0.8.3 → graphinate-0.8.4}/docs/examples/web.md +0 -0
  29. {graphinate-0.8.3 → graphinate-0.8.4}/docs/gen_ref_pages.py +0 -0
  30. {graphinate-0.8.3 → graphinate-0.8.4}/docs/index.md +0 -0
  31. {graphinate-0.8.3 → graphinate-0.8.4}/docs/intro.md +0 -0
  32. {graphinate-0.8.3 → graphinate-0.8.4}/docs/start.md +0 -0
  33. {graphinate-0.8.3 → graphinate-0.8.4}/docs/tutorial.md +0 -0
  34. {graphinate-0.8.3 → graphinate-0.8.4}/docs/usage/cli.md +0 -0
  35. {graphinate-0.8.3 → graphinate-0.8.4}/docs/usage/lib.md +0 -0
  36. {graphinate-0.8.3 → graphinate-0.8.4}/examples/code/git_commits.py +0 -0
  37. {graphinate-0.8.3 → graphinate-0.8.4}/examples/code/python_dependencies.py +0 -0
  38. {graphinate-0.8.3 → graphinate-0.8.4}/examples/code/requirements.txt +0 -0
  39. {graphinate-0.8.3 → graphinate-0.8.4}/examples/code/tokens.py +0 -0
  40. {graphinate-0.8.3 → graphinate-0.8.4}/examples/github/_client.py +0 -0
  41. {graphinate-0.8.3 → graphinate-0.8.4}/examples/github/commits_visibilty_graph.py +0 -0
  42. {graphinate-0.8.3 → graphinate-0.8.4}/examples/github/followers.graphql +0 -0
  43. {graphinate-0.8.3 → graphinate-0.8.4}/examples/github/followers.py +0 -0
  44. {graphinate-0.8.3 → graphinate-0.8.4}/examples/github/graphql.config.yml +0 -0
  45. {graphinate-0.8.3 → graphinate-0.8.4}/examples/github/repositories.graphql +0 -0
  46. {graphinate-0.8.3 → graphinate-0.8.4}/examples/github/repositories.py +0 -0
  47. {graphinate-0.8.3 → graphinate-0.8.4}/examples/github/requirements.txt +0 -0
  48. {graphinate-0.8.3 → graphinate-0.8.4}/examples/math/__init__.py +0 -0
  49. {graphinate-0.8.3 → graphinate-0.8.4}/examples/math/_test_materializers.py +0 -0
  50. {graphinate-0.8.3 → graphinate-0.8.4}/examples/math/graph_atlas.py +0 -0
  51. {graphinate-0.8.3 → graphinate-0.8.4}/examples/math/graphs.py +0 -0
  52. {graphinate-0.8.3 → graphinate-0.8.4}/examples/math/gui.py +0 -0
  53. {graphinate-0.8.3 → graphinate-0.8.4}/examples/math/materializers.py +0 -0
  54. {graphinate-0.8.3 → graphinate-0.8.4}/examples/math/polygonal_graph.py +0 -0
  55. {graphinate-0.8.3 → graphinate-0.8.4}/examples/math/requirements.txt +0 -0
  56. {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/13/dd/73ce25face7beb30b69b64feeb77.val +0 -0
  57. {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/21/9e/00846f323987ba16cfbe0127d8eb.val +0 -0
  58. {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/70/b6/2aefb0269adce7fedf877fa0d267.val +0 -0
  59. {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/87/f5/ec1739bc369e84c3fcb302bf532a.val +0 -0
  60. {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/ba/fe/3aca7b2c38abff60e7ce5eb486a8.val +0 -0
  61. {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/c7/9e/ce82b0288020b7152779df09bd73.val +0 -0
  62. {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/cache.db +0 -0
  63. {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/d2/53/3b88f2fc162561cfdbbe9abc352a.val +0 -0
  64. {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/e2/d5/5d079f200eabf9b625b0473f6fbe.val +0 -0
  65. {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/gui.py +0 -0
  66. {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/music_artists.py +0 -0
  67. {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/requirements.txt +0 -0
  68. {graphinate-0.8.3 → graphinate-0.8.4}/examples/system/.ignore +0 -0
  69. {graphinate-0.8.3 → graphinate-0.8.4}/examples/system/files.py +0 -0
  70. {graphinate-0.8.3 → graphinate-0.8.4}/examples/system/processes.py +0 -0
  71. {graphinate-0.8.3 → graphinate-0.8.4}/examples/system/requirements.txt +0 -0
  72. {graphinate-0.8.3 → graphinate-0.8.4}/examples/web/html_dom.py +0 -0
  73. {graphinate-0.8.3 → graphinate-0.8.4}/examples/web/page_links.py +0 -0
  74. {graphinate-0.8.3 → graphinate-0.8.4}/examples/web/requirements.txt +0 -0
  75. {graphinate-0.8.3 → graphinate-0.8.4}/mkdocs.yml +0 -0
  76. {graphinate-0.8.3 → graphinate-0.8.4}/playground/ethernet/traceroute.py +0 -0
  77. {graphinate-0.8.3 → graphinate-0.8.4}/playground/genric_graph.graphql +0 -0
  78. {graphinate-0.8.3 → graphinate-0.8.4}/playground/graphql.config.yml +0 -0
  79. {graphinate-0.8.3 → graphinate-0.8.4}/playground/house_of_graphs.py +0 -0
  80. {graphinate-0.8.3 → graphinate-0.8.4}/playground/science/caffeine.py +0 -0
  81. {graphinate-0.8.3 → graphinate-0.8.4}/playground/social/albums.json +0 -0
  82. {graphinate-0.8.3 → graphinate-0.8.4}/playground/social/musicisians.py +0 -0
  83. {graphinate-0.8.3 → graphinate-0.8.4}/playground/text/nlp_graph.py +0 -0
  84. {graphinate-0.8.3 → graphinate-0.8.4}/playground/text/requirements.txt +0 -0
  85. {graphinate-0.8.3 → graphinate-0.8.4}/playground/time_series/requirements.txt +0 -0
  86. {graphinate-0.8.3 → graphinate-0.8.4}/playground/time_series/visibility_graph.py +0 -0
  87. {graphinate-0.8.3 → graphinate-0.8.4}/sonar-project.properties +0 -0
  88. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/__init__.py +0 -0
  89. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/__main__.py +0 -0
  90. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/cli.py +0 -0
  91. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/color.py +0 -0
  92. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/constants.py +0 -0
  93. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/converters.py +0 -0
  94. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/modeling.py +0 -0
  95. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/renderers/__init__.py +0 -0
  96. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/renderers/matplotlib.py +0 -0
  97. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/__init__.py +0 -0
  98. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/starlette/__init__.py +0 -0
  99. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/starlette/views.py +0 -0
  100. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/__init__.py +0 -0
  101. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/elements/__init__.py +0 -0
  102. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/elements/index.html +0 -0
  103. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/graphiql/__init__.py +0 -0
  104. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/graphiql/index.html +0 -0
  105. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/rapidoc/__init__.py +0 -0
  106. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/rapidoc/index.html +0 -0
  107. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/static/images/logo-128.png +0 -0
  108. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/static/images/logo.svg +0 -0
  109. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/static/images/network_graph.png +0 -0
  110. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/viewer/__init__.py +0 -0
  111. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/viewer/index.html +0 -0
  112. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/voyager/__init__.py +0 -0
  113. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/voyager/index.html +0 -0
  114. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/tools.py +0 -0
  115. {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/typing.py +0 -0
  116. {graphinate-0.8.3 → graphinate-0.8.4}/tests/conftest.py +0 -0
  117. {graphinate-0.8.3 → graphinate-0.8.4}/tests/graphinate/test_builders.py +0 -0
  118. {graphinate-0.8.3 → graphinate-0.8.4}/tests/graphinate/test_cli.py +0 -0
  119. {graphinate-0.8.3 → graphinate-0.8.4}/tests/graphinate/test_color.py +0 -0
  120. {graphinate-0.8.3 → graphinate-0.8.4}/tests/graphinate/test_converters.py +0 -0
  121. {graphinate-0.8.3 → graphinate-0.8.4}/tests/graphinate/test_modeling.py +0 -0
  122. {graphinate-0.8.3 → graphinate-0.8.4}/tests/graphinate/test_server.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Graphinate
3
- Version: 0.8.3
3
+ Version: 0.8.4
4
4
  Summary: Graphinate. Data to Graphs.
5
5
  Project-URL: Homepage, https://erivlis.github.io/graphinate
6
6
  Project-URL: Documentation, https://erivlis.github.io/graphinate
@@ -126,7 +126,7 @@ if __name__ == '__main__':
126
126
  # schema = graphinate.builders.GraphQLBuilder(ast_model).build()
127
127
  # graphinate.graphql.server(schema)
128
128
 
129
- diagram = graphinate.builders.MermaidBuilder(ast_model).build()
129
+ diagram = graphinate.builders.MermaidBuilder(ast_model).build(with_edge_labels=False)
130
130
 
131
131
  html_diagram = graphinate.mermaid.html(diagram)
132
132
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "Graphinate"
3
- version = "0.8.3"
3
+ version = "0.8.4"
4
4
  description = "Graphinate. Data to Graphs."
5
5
  authors = [
6
6
  { name = "Eran Rivlis", email = "eran@rivlis.info" },
@@ -326,6 +326,7 @@ class MermaidBuilder(NetworkxBuilder):
326
326
  def build(self,
327
327
  orientation: nxm.DiagramOrientation = nxm.DiagramOrientation.LEFT_RIGHT,
328
328
  node_shape: nxm.DiagramNodeShape = nxm.DiagramNodeShape.DEFAULT,
329
+ with_edge_labels: bool = False,
329
330
  **kwargs) -> nxm.typing.MermaidDiagram:
330
331
  """
331
332
  Build a Mermaid Graph
@@ -335,6 +336,8 @@ class MermaidBuilder(NetworkxBuilder):
335
336
  The orientation of the graph, by default Orientation.LEFT_RIGHT.
336
337
  node_shape : NodeShape, optional
337
338
  The shape of the nodes, by default NodeShape.DEFAULT.
339
+ with_edge_labels:
340
+ Whether to include edge labels, by default False.
338
341
  **kwargs: additional inputs to the node and edge generator functions
339
342
 
340
343
  Returns:
@@ -342,7 +345,8 @@ class MermaidBuilder(NetworkxBuilder):
342
345
  """
343
346
  super().build(**kwargs)
344
347
  color.convert_colors_to_hex(self._graph)
345
- return nxm.DiagramBuilder(orientation=orientation, node_shape=node_shape).build(self._graph)
348
+ nxm_builder = nxm.DiagramBuilder(orientation=orientation, node_shape=node_shape)
349
+ return nxm_builder.build(self._graph, with_edge_labels=with_edge_labels)
346
350
 
347
351
 
348
352
  class GraphQLBuilder(NetworkxBuilder):
@@ -809,4 +813,4 @@ def build(builder_cls: type[Builder],
809
813
  return materialized_graph
810
814
 
811
815
 
812
- __all__ = ('D3Builder', 'GraphQLBuilder','GraphRepresentation', 'GraphType', 'NetworkxBuilder', 'build')
816
+ __all__ = ('D3Builder', 'GraphQLBuilder', 'GraphRepresentation', 'GraphType', 'NetworkxBuilder', 'build')
@@ -29,7 +29,7 @@ def _openapi_schema(request: Request) -> ASGIApp:
29
29
  """
30
30
  schema_data = {
31
31
  'openapi': '3.0.0',
32
- 'info': {'title': 'Graphinate API', 'version': '0.8.3'},
32
+ 'info': {'title': 'Graphinate API', 'version': '0.8.4'},
33
33
  'paths': {
34
34
  '/graphql': {'get': {'responses': {200: {'description': 'GraphQL'}}}},
35
35
  '/graphiql': {'get': {'responses': {200: {'description': 'GraphiQL UI.'}}}},
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