wizlib 3.3.4__py3-none-any.whl → 3.3.5__py3-none-any.whl

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.

Potentially problematic release.


This version of wizlib might be problematic. Click here for more details.

wizlib/config_handler.py CHANGED
@@ -27,14 +27,21 @@ class ConfigHandler(Handler):
27
27
 
28
28
  name = 'config'
29
29
 
30
- def __init__(self, file=None):
30
+ def __init__(self, file=None, yaml=None):
31
31
  self.file = file
32
+ self.yaml_dict = yaml
32
33
  self.cache = {}
33
34
 
34
35
  @property
35
36
  def yaml(self):
36
37
  if hasattr(self, '_yaml'):
37
38
  return self._yaml
39
+
40
+ # If yaml_dict was provided, use it directly
41
+ if self.yaml_dict is not None:
42
+ self._yaml = self.yaml_dict
43
+ return self._yaml
44
+
38
45
  path = None
39
46
  if self.file:
40
47
  path = Path(self.file)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: wizlib
3
- Version: 3.3.4
3
+ Version: 3.3.5
4
4
  Summary: Framework for flexible and powerful command-line applications
5
5
  License: MIT
6
6
  Author: Steampunk Wizard
@@ -2,7 +2,7 @@ wizlib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  wizlib/app.py,sha256=ke0NbaYC6ArmdtLTySl6VIGIGicxTsIuzW9wag6b7rU,4180
3
3
  wizlib/class_family.py,sha256=tORSVAaPeWTQMcz2DX-MQClj1GQR3vCmkALPXxHa_pk,4506
4
4
  wizlib/command.py,sha256=NO1558EYuXxfkpSmX6ljjzae8n8g4w6yytZKTJtigvo,1708
5
- wizlib/config_handler.py,sha256=dS-23bAJlg26WKPfY_SaRVc7IZ45BaeEVPkre5otJD4,3113
5
+ wizlib/config_handler.py,sha256=h6dy7ziCn_aIQrl9cSNCYBsVLfHm8LyvPFSqHv7gi10,3318
6
6
  wizlib/error.py,sha256=ypwdMOYhtgKWd48ccfOX8idmCXmm-Skwx3gkPwqJB3c,46
7
7
  wizlib/handler.py,sha256=Oz80aPhDyeY9tdppZ1dvtN-19JU5ydEDVW6jtppVoD4,446
8
8
  wizlib/io.py,sha256=tkRRcjvpm6Uq1KRSK_sboi_hr3Qs-8XyE59O2QQGLrk,716
@@ -15,6 +15,6 @@ wizlib/ui/shell/__init__.py,sha256=VFtxcvTh5Mhyx6JHbR1C8yIDHlOsrNjdqSVfH5ZPAtQ,1
15
15
  wizlib/ui/shell/line_editor.py,sha256=OXOgHBhp7EfheZK1mdOykYqB_aXDn2bHA12dvHN9kFg,8087
16
16
  wizlib/ui/shell_ui.py,sha256=jre7E_5vP_SceNH7GYenfXZpFf4h9Sbh9cWZZycTYk8,1911
17
17
  wizlib/ui_handler.py,sha256=JoZadtw9DKAtGvHKP3_BJF2NaYqmcQYNdsY4PeRnOjg,634
18
- wizlib-3.3.4.dist-info/METADATA,sha256=nKgNrD5w_jhxRDfc0wwho_hXYYovCUcNg55UKhOQKeo,1028
19
- wizlib-3.3.4.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
20
- wizlib-3.3.4.dist-info/RECORD,,
18
+ wizlib-3.3.5.dist-info/METADATA,sha256=agvqTvQGKN-eAEfMDuHLlBFtfVmWc7PiBAXZLQUkuik,1028
19
+ wizlib-3.3.5.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
20
+ wizlib-3.3.5.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.2
2
+ Generator: poetry-core 2.1.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any