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.
- {graphinate-0.8.3 → graphinate-0.8.4}/PKG-INFO +1 -1
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/code/python_ast.py +1 -1
- {graphinate-0.8.3 → graphinate-0.8.4}/pyproject.toml +1 -1
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/builders.py +6 -2
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/renderers/graphql.py +1 -1
- {graphinate-0.8.3 → graphinate-0.8.4}/.coveragerc +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/.github/dependabot.yml +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/.github/workflows/codeql.yml +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/.github/workflows/publish-docs.yaml +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/.github/workflows/publish.yml +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/.github/workflows/test-beta.yml +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/.github/workflows/test.yml +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/.gitignore +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/.sonarcloud.properties +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/LICENSE +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/README.md +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/docs/.dates_cache.json +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/docs/acknowledge.md +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/docs/assets/badge/v0.json +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/docs/assets/images/logo-128.png +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/docs/assets/images/network_graph.png +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/docs/assets/stylesheets/extra.css +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/docs/examples/code.md +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/docs/examples/github.md +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/docs/examples/math.md +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/docs/examples/social.md +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/docs/examples/system.md +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/docs/examples/web.md +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/docs/gen_ref_pages.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/docs/index.md +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/docs/intro.md +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/docs/start.md +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/docs/tutorial.md +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/docs/usage/cli.md +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/docs/usage/lib.md +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/code/git_commits.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/code/python_dependencies.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/code/requirements.txt +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/code/tokens.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/github/_client.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/github/commits_visibilty_graph.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/github/followers.graphql +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/github/followers.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/github/graphql.config.yml +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/github/repositories.graphql +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/github/repositories.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/github/requirements.txt +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/math/__init__.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/math/_test_materializers.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/math/graph_atlas.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/math/graphs.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/math/gui.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/math/materializers.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/math/polygonal_graph.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/math/requirements.txt +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/13/dd/73ce25face7beb30b69b64feeb77.val +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/21/9e/00846f323987ba16cfbe0127d8eb.val +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/70/b6/2aefb0269adce7fedf877fa0d267.val +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/87/f5/ec1739bc369e84c3fcb302bf532a.val +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/ba/fe/3aca7b2c38abff60e7ce5eb486a8.val +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/c7/9e/ce82b0288020b7152779df09bd73.val +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/cache.db +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/d2/53/3b88f2fc162561cfdbbe9abc352a.val +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/e2/d5/5d079f200eabf9b625b0473f6fbe.val +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/gui.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/music_artists.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/social/requirements.txt +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/system/.ignore +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/system/files.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/system/processes.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/system/requirements.txt +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/web/html_dom.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/web/page_links.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/examples/web/requirements.txt +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/mkdocs.yml +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/playground/ethernet/traceroute.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/playground/genric_graph.graphql +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/playground/graphql.config.yml +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/playground/house_of_graphs.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/playground/science/caffeine.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/playground/social/albums.json +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/playground/social/musicisians.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/playground/text/nlp_graph.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/playground/text/requirements.txt +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/playground/time_series/requirements.txt +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/playground/time_series/visibility_graph.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/sonar-project.properties +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/__init__.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/__main__.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/cli.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/color.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/constants.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/converters.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/modeling.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/renderers/__init__.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/renderers/matplotlib.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/__init__.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/starlette/__init__.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/starlette/views.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/__init__.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/elements/__init__.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/elements/index.html +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/graphiql/__init__.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/graphiql/index.html +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/rapidoc/__init__.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/rapidoc/index.html +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/static/images/logo-128.png +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/static/images/logo.svg +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/static/images/network_graph.png +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/viewer/__init__.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/viewer/index.html +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/voyager/__init__.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/voyager/index.html +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/tools.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/typing.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/tests/conftest.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/tests/graphinate/test_builders.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/tests/graphinate/test_cli.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/tests/graphinate/test_color.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/tests/graphinate/test_converters.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/tests/graphinate/test_modeling.py +0 -0
- {graphinate-0.8.3 → graphinate-0.8.4}/tests/graphinate/test_server.py +0 -0
|
@@ -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
|
|
|
@@ -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
|
-
|
|
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.
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/13/dd/73ce25face7beb30b69b64feeb77.val
RENAMED
|
File without changes
|
{graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/21/9e/00846f323987ba16cfbe0127d8eb.val
RENAMED
|
File without changes
|
{graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/70/b6/2aefb0269adce7fedf877fa0d267.val
RENAMED
|
File without changes
|
{graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/87/f5/ec1739bc369e84c3fcb302bf532a.val
RENAMED
|
File without changes
|
{graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/ba/fe/3aca7b2c38abff60e7ce5eb486a8.val
RENAMED
|
File without changes
|
{graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/c7/9e/ce82b0288020b7152779df09bd73.val
RENAMED
|
File without changes
|
|
File without changes
|
{graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/d2/53/3b88f2fc162561cfdbbe9abc352a.val
RENAMED
|
File without changes
|
{graphinate-0.8.3 → graphinate-0.8.4}/examples/social/cache/e2/d5/5d079f200eabf9b625b0473f6fbe.val
RENAMED
|
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
|
|
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
|
{graphinate-0.8.3 → graphinate-0.8.4}/src/graphinate/server/web/static/images/network_graph.png
RENAMED
|
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
|