aboutsummaryrefslogtreecommitdiffstats
path: root/bsie/utils/node.py
diff options
context:
space:
mode:
authorMatthias Baumgartner <dev@igsor.net>2022-10-31 12:21:22 +0100
committerMatthias Baumgartner <dev@igsor.net>2022-10-31 12:21:22 +0100
commitd2b4a528465dc01e8db92b61293c458c7911a333 (patch)
tree68b1eaba6c2b702dc51e15a6e273b845ef251c89 /bsie/utils/node.py
parentcb49e4567a18de6851286ff672e54f9a91865fe9 (diff)
downloadbsie-d2b4a528465dc01e8db92b61293c458c7911a333.tar.gz
bsie-d2b4a528465dc01e8db92b61293c458c7911a333.tar.bz2
bsie-d2b4a528465dc01e8db92b61293c458c7911a333.zip
essential interfaces (reader, extractor, errors)
Diffstat (limited to 'bsie/utils/node.py')
-rw-r--r--bsie/utils/node.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/bsie/utils/node.py b/bsie/utils/node.py
new file mode 100644
index 0000000..60863a4
--- /dev/null
+++ b/bsie/utils/node.py
@@ -0,0 +1,39 @@
+"""Lighweight Node to bridge to BSFS.
+
+Part of the bsie module.
+A copy of the license is provided with the project.
+Author: Matthias Baumgartner, 2022
+"""
+# imports
+import typing
+
+# inner-module imports
+from bsie.utils.bsfs import URI
+
+# exports
+__all__: typing.Sequence[str] = (
+ 'Node'
+ )
+
+
+## code ##
+
+class Node():
+ """Lightweight Node, disconnected from any bsfs structures."""
+
+ # node type.
+ node_type: URI
+
+ # node URI.
+ uri: URI
+
+ def __init__(
+ self,
+ node_type: URI,
+ uri: URI,
+ ):
+ # assign members
+ self.node_type = URI(node_type)
+ self.uri = URI(uri)
+
+## EOF ##