difonlib 0.2.4__tar.gz → 0.2.9__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: difonlib
3
- Version: 0.2.4
3
+ Version: 0.2.9
4
4
  Summary: python libraries
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "difonlib"
3
- version = "0.2.4"
3
+ version = "0.2.9"
4
4
  description = "python libraries"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -182,9 +182,9 @@ def print_ctype_fields(
182
182
 
183
183
 
184
184
  class YamlConfig:
185
- def __init__(self, cfg_path: str):
185
+ def __init__(self, cfg_path: str, **init_vals: Any):
186
186
  self.config_path = Path(cfg_path)
187
- self.config: dict = {}
187
+ self.config: dict = init_vals
188
188
  self.load()
189
189
 
190
190
  def clear(self) -> None:
@@ -209,4 +209,9 @@ class YamlConfig:
209
209
 
210
210
  if __name__ == "__main__":
211
211
  logdbg("Hello 0123456789 ABCDEF")
212
- cfg = YamlConfig("./___CONFIG.yaml")
212
+ cfg = YamlConfig("./___CONFIG.yaml", infrared_devs={}, remctrl_types={}, remctrl_devs=set())
213
+ cfg.config["remctrl_devs"].add("11:22:33:44:AA:55")
214
+ cfg.config["remctrl_devs"].add("AA:BB:CC:44:AA:55")
215
+ cfgrdevs: set = cfg.config["remctrl_devs"]
216
+ print(f"cfgrdevs: {cfgrdevs}")
217
+ cfg.save()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: difonlib
3
- Version: 0.2.4
3
+ Version: 0.2.9
4
4
  Summary: python libraries
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
File without changes
File without changes
File without changes
File without changes