pyquoks 1.0.2__py3-none-any.whl → 1.1.0__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.
pyquoks/data.py CHANGED
@@ -12,7 +12,7 @@ class IDataProvider:
12
12
  def __init__(self) -> None:
13
13
  for k, v in self._DATA_VALUES.items():
14
14
  try:
15
- with open(self._PATH.format(k), "rb") as file:
15
+ with open(self._PATH.format(k), "rb", encoding="utf-8") as file:
16
16
  setattr(self, k, v(json_data=json.loads(file.read())))
17
17
  except:
18
18
  setattr(self, k, None)
@@ -36,7 +36,7 @@ class IConfigProvider:
36
36
  setattr(self, k, self._config.get(self._SECTION, k))
37
37
  except:
38
38
  self._config.set(self._SECTION, k, v.__name__)
39
- with open(utils.get_path("config.ini"), "w") as file:
39
+ with open(utils.get_path("config.ini"), "w", encoding="utf-8") as file:
40
40
  self._config.write(fp=file)
41
41
  for k, v in self._CONFIG_VALUES.items():
42
42
  try:
@@ -96,7 +96,7 @@ class IAssetsProvider:
96
96
 
97
97
  @staticmethod
98
98
  def file_image(path: str) -> PIL.Image.Image:
99
- with open(path, "rb") as file:
99
+ with open(path, "rb", encoding="utf-8") as file:
100
100
  return PIL.Image.open(io.BytesIO(file.read()))
101
101
 
102
102
  @staticmethod
@@ -120,6 +120,9 @@ class IAssetsProvider:
120
120
 
121
121
 
122
122
  class IStringsProvider:
123
+ class IStrings:
124
+ pass
125
+
123
126
  _STRINGS_OBJECTS: dict[str, type]
124
127
 
125
128
  def __init__(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyquoks
3
- Version: 1.0.2
3
+ Version: 1.1.0
4
4
  Summary: Пакет PyPI для часто используемых модулей в проектах diquoks
5
5
  Home-page: https://diquoks.ru
6
6
  Author: Denis Titovets
@@ -0,0 +1,9 @@
1
+ pyquoks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ pyquoks/data.py,sha256=fDY_KekQYg_KaRSFQo_dF3eiRlryvv745Yik_vWmRf4,7756
3
+ pyquoks/models.py,sha256=IRn-bUoCuFqiYLR420pL-S6tAC2nYGjnVJR_6UzbYtk,2155
4
+ pyquoks/utils.py,sha256=uQd1GoMOBHzab6xfAVovgG89MoXKKDqhD3ep8bs1lc4,362
5
+ pyquoks-1.1.0.dist-info/licenses/LICENSE,sha256=eEd8UIYxvKUY7vqrV1XTFo70_FQdiW6o1fznseCXRJs,1095
6
+ pyquoks-1.1.0.dist-info/METADATA,sha256=1RoO5B2bK5l_sfTUePC7Xfs3keA8Fm9g3dx_t5K6Xvk,1417
7
+ pyquoks-1.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
+ pyquoks-1.1.0.dist-info/top_level.txt,sha256=4Eqn44TCCp-D8V6To92e8-KKr49ZGf0dCcsdRQmPkhc,8
9
+ pyquoks-1.1.0.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- pyquoks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- pyquoks/data.py,sha256=Ub9VykwcMaNEDKUSCtejSJLcDO_q501GEBRiQfciliw,7665
3
- pyquoks/models.py,sha256=IRn-bUoCuFqiYLR420pL-S6tAC2nYGjnVJR_6UzbYtk,2155
4
- pyquoks/utils.py,sha256=uQd1GoMOBHzab6xfAVovgG89MoXKKDqhD3ep8bs1lc4,362
5
- pyquoks-1.0.2.dist-info/licenses/LICENSE,sha256=eEd8UIYxvKUY7vqrV1XTFo70_FQdiW6o1fznseCXRJs,1095
6
- pyquoks-1.0.2.dist-info/METADATA,sha256=P5t9pDsMVo8nsKBO8NzQ7-HZ-1SZ6-ZFmFTXC83951Q,1417
7
- pyquoks-1.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
- pyquoks-1.0.2.dist-info/top_level.txt,sha256=4Eqn44TCCp-D8V6To92e8-KKr49ZGf0dCcsdRQmPkhc,8
9
- pyquoks-1.0.2.dist-info/RECORD,,