-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed naming convention with Schema__*_Config
added tests for Mermaid Schema files
- Loading branch information
Showing
32 changed files
with
458 additions
and
264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
from typing import Dict, Type | ||
from mgraph_ai.mgraph.schemas.Schema__MGraph__Attribute import Schema__MGraph__Attribute | ||
from mgraph_ai.mgraph.schemas.Schema__MGraph__Edge_Config import Schema__MGraph__Edge_Config | ||
from mgraph_ai.mgraph.schemas.Schema__MGraph__Edge__Config import Schema__MGraph__Edge__Config | ||
from osbot_utils.type_safe.Type_Safe import Type_Safe | ||
from osbot_utils.helpers.Random_Guid import Random_Guid | ||
|
||
class Schema__MGraph__Edge(Type_Safe): | ||
attributes : Dict[Random_Guid, Schema__MGraph__Attribute] | ||
edge_config : Schema__MGraph__Edge_Config | ||
edge_config : Schema__MGraph__Edge__Config | ||
edge_type : Type['Schema__MGraph__Edge'] | ||
from_node_id : Random_Guid | ||
to_node_id : Random_Guid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
from typing import Dict, Type | ||
from mgraph_ai.mgraph.schemas.Schema__MGraph__Edge import Schema__MGraph__Edge | ||
from mgraph_ai.mgraph.schemas.Schema__MGraph__Graph_Config import Schema__MGraph__Graph_Config | ||
from mgraph_ai.mgraph.schemas.Schema__MGraph__Graph__Config import Schema__MGraph__Graph__Config | ||
from mgraph_ai.mgraph.schemas.Schema__MGraph__Node import Schema__MGraph__Node | ||
from osbot_utils.type_safe.Type_Safe import Type_Safe | ||
from osbot_utils.helpers.Random_Guid import Random_Guid | ||
|
||
class Schema__MGraph__Graph(Type_Safe): | ||
edges : Dict[Random_Guid, Schema__MGraph__Edge] | ||
graph_config: Schema__MGraph__Graph_Config | ||
graph_config: Schema__MGraph__Graph__Config | ||
graph_type : Type['Schema__MGraph__Graph'] | ||
nodes : Dict[Random_Guid, Schema__MGraph__Node] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
from typing import Dict, Any, Type | ||
from mgraph_ai.mgraph.schemas.Schema__MGraph__Attribute import Schema__MGraph__Attribute | ||
from mgraph_ai.mgraph.schemas.Schema__MGraph__Node_Config import Schema__MGraph__Node_Config | ||
from osbot_utils.helpers.Random_Guid import Random_Guid | ||
from osbot_utils.type_safe.Type_Safe import Type_Safe | ||
from typing import Dict, Any, Type | ||
from mgraph_ai.mgraph.schemas.Schema__MGraph__Attribute import Schema__MGraph__Attribute | ||
from mgraph_ai.mgraph.schemas.Schema__MGraph__Node__Config import Schema__MGraph__Node__Config | ||
from osbot_utils.helpers.Random_Guid import Random_Guid | ||
from osbot_utils.type_safe.Type_Safe import Type_Safe | ||
|
||
class Schema__MGraph__Node(Type_Safe): | ||
attributes : Dict[Random_Guid, Schema__MGraph__Attribute] | ||
node_config: Schema__MGraph__Node_Config | ||
node_config: Schema__MGraph__Node__Config | ||
node_type : Type['Schema__MGraph__Node'] | ||
value : Any |
2 changes: 1 addition & 1 deletion
2
...ph/schemas/Schema__MGraph__Node_Config.py → ...h/schemas/Schema__MGraph__Node__Config.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from osbot_utils.helpers.Random_Guid import Random_Guid | ||
from osbot_utils.type_safe.Type_Safe import Type_Safe | ||
|
||
class Schema__MGraph__Node_Config(Type_Safe): | ||
class Schema__MGraph__Node__Config(Type_Safe): | ||
node_id : Random_Guid | ||
value_type: type |
4 changes: 2 additions & 2 deletions
4
mgraph_ai/providers/mermaid/schemas/Schema__Mermaid__Edge__Config.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
from typing import Type | ||
from mgraph_ai.mgraph.schemas.Schema__MGraph__Edge_Config import Schema__MGraph__Edge_Config | ||
from mgraph_ai.mgraph.schemas.Schema__MGraph__Edge__Config import Schema__MGraph__Edge__Config | ||
from mgraph_ai.providers.mermaid.schemas.Schema__Mermaid__Node import Schema__Mermaid__Node | ||
|
||
|
||
class Schema__Mermaid__Edge__Config(Schema__MGraph__Edge_Config): | ||
class Schema__Mermaid__Edge__Config(Schema__MGraph__Edge__Config): | ||
from_node_type: Type[Schema__Mermaid__Node] | ||
to_node_type : Type[Schema__Mermaid__Node] |
4 changes: 2 additions & 2 deletions
4
mgraph_ai/providers/mermaid/schemas/Schema__Mermaid__Graph__Config.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
mgraph_ai/providers/mermaid/schemas/Schema__Mermaid__Node__Config.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule OSBot-Utils
updated
3 files
+1 −1 | README.md | |
+1 −1 | osbot_utils/version | |
+1 −1 | pyproject.toml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.