pytreeconfig 0.1.0__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.
@@ -0,0 +1,5 @@
1
+ Metadata-Version: 2.4
2
+ Name: pytreeconfig
3
+ Version: 0.1.0
4
+ Summary: Add your description here
5
+ Requires-Python: >=3.13
@@ -0,0 +1,6 @@
1
+ [project]
2
+ name = "pytreeconfig"
3
+ version = "0.1.0"
4
+ description = "Add your description here"
5
+ requires-python = ">=3.13"
6
+ dependencies = []
File without changes
@@ -0,0 +1,31 @@
1
+ from typing import Union
2
+ from copy import copy
3
+
4
+
5
+ class Node:
6
+ def __init__(self, node_id: str):
7
+ self._parent: Node | None = None
8
+ self._id = node_id
9
+
10
+ @property
11
+ def parent(self) -> Union['Node', None]:
12
+ return self._parent
13
+
14
+ @parent.setter
15
+ def parent(self, parent: Union['Node', None]) -> None:
16
+ self._parent = parent
17
+
18
+ @property
19
+ def id(self) -> str:
20
+ return self._id
21
+
22
+
23
+
24
+ class ContainerNode(Node):
25
+ def __init__(self, node_id: str):
26
+ super().__init__(node_id=node_id)
27
+ self._subnodes: dict[str, Node] = {}
28
+
29
+ @property
30
+ def subnodes(self) -> dict[str, Node]:
31
+ return copy(self._subnodes)
@@ -0,0 +1,5 @@
1
+ Metadata-Version: 2.4
2
+ Name: pytreeconfig
3
+ Version: 0.1.0
4
+ Summary: Add your description here
5
+ Requires-Python: >=3.13
@@ -0,0 +1,7 @@
1
+ pyproject.toml
2
+ pytreeconfig/__init__.py
3
+ pytreeconfig/base.py
4
+ pytreeconfig.egg-info/PKG-INFO
5
+ pytreeconfig.egg-info/SOURCES.txt
6
+ pytreeconfig.egg-info/dependency_links.txt
7
+ pytreeconfig.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ pytreeconfig
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+