pyquoks 1.1.0__py3-none-any.whl → 1.1.2__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 +2 -2
- pyquoks/localhost.py +15 -0
- {pyquoks-1.1.0.dist-info → pyquoks-1.1.2.dist-info}/METADATA +10 -1
- pyquoks-1.1.2.dist-info/RECORD +10 -0
- pyquoks-1.1.0.dist-info/RECORD +0 -9
- {pyquoks-1.1.0.dist-info → pyquoks-1.1.2.dist-info}/WHEEL +0 -0
- {pyquoks-1.1.0.dist-info → pyquoks-1.1.2.dist-info}/licenses/LICENSE +0 -0
- {pyquoks-1.1.0.dist-info → pyquoks-1.1.2.dist-info}/top_level.txt +0 -0
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"
|
|
15
|
+
with open(self._PATH.format(k), "rb") as file:
|
|
16
16
|
setattr(self, k, v(json_data=json.loads(file.read())))
|
|
17
17
|
except:
|
|
18
18
|
setattr(self, k, None)
|
|
@@ -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"
|
|
99
|
+
with open(path, "rb") as file:
|
|
100
100
|
return PIL.Image.open(io.BytesIO(file.read()))
|
|
101
101
|
|
|
102
102
|
@staticmethod
|
pyquoks/localhost.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
import waitress, flask
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class ILocalhostFlask(flask.Flask):
|
|
6
|
+
_RULES: dict[str, function]
|
|
7
|
+
|
|
8
|
+
def __init__(self):
|
|
9
|
+
super().__init__(import_name="osu!parser")
|
|
10
|
+
|
|
11
|
+
for k, v in self._RULES.items():
|
|
12
|
+
self.add_url_rule(rule=k, view_func=v)
|
|
13
|
+
|
|
14
|
+
def serve(self):
|
|
15
|
+
waitress.serve(app=self, host="127.0.0.1", port=727)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyquoks
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.2
|
|
4
4
|
Summary: Пакет PyPI для часто используемых модулей в проектах diquoks
|
|
5
5
|
Home-page: https://diquoks.ru
|
|
6
6
|
Author: Denis Titovets
|
|
@@ -11,12 +11,21 @@ Classifier: Programming Language :: Python :: 3
|
|
|
11
11
|
Requires-Python: >=3.10
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
License-File: LICENSE
|
|
14
|
+
Requires-Dist: blinker==1.9.0
|
|
14
15
|
Requires-Dist: certifi==2025.8.3
|
|
15
16
|
Requires-Dist: charset-normalizer==3.4.3
|
|
17
|
+
Requires-Dist: click==8.3.0
|
|
18
|
+
Requires-Dist: colorama==0.4.6
|
|
19
|
+
Requires-Dist: Flask==3.1.2
|
|
16
20
|
Requires-Dist: idna==3.10
|
|
21
|
+
Requires-Dist: itsdangerous==2.2.0
|
|
22
|
+
Requires-Dist: Jinja2==3.1.6
|
|
23
|
+
Requires-Dist: MarkupSafe==3.0.2
|
|
17
24
|
Requires-Dist: pillow==11.3.0
|
|
18
25
|
Requires-Dist: requests==2.32.5
|
|
19
26
|
Requires-Dist: urllib3==2.5.0
|
|
27
|
+
Requires-Dist: waitress==3.0.2
|
|
28
|
+
Requires-Dist: Werkzeug==3.1.3
|
|
20
29
|
Dynamic: license-file
|
|
21
30
|
|
|
22
31
|
# pyquoks
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
pyquoks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
pyquoks/data.py,sha256=WxP826FgMAWHQ91GPnxADx3nKIVzj10BqTTarHRN7i4,7720
|
|
3
|
+
pyquoks/localhost.py,sha256=xbiXmHI1as8eatvl4uG_e0eFijw8W_09tVfJtaB3oDw,395
|
|
4
|
+
pyquoks/models.py,sha256=IRn-bUoCuFqiYLR420pL-S6tAC2nYGjnVJR_6UzbYtk,2155
|
|
5
|
+
pyquoks/utils.py,sha256=uQd1GoMOBHzab6xfAVovgG89MoXKKDqhD3ep8bs1lc4,362
|
|
6
|
+
pyquoks-1.1.2.dist-info/licenses/LICENSE,sha256=eEd8UIYxvKUY7vqrV1XTFo70_FQdiW6o1fznseCXRJs,1095
|
|
7
|
+
pyquoks-1.1.2.dist-info/METADATA,sha256=yIsbXd0Mt7SxUPI0IAAk9X55GSj8X3oPLGPQSvPrAsU,1702
|
|
8
|
+
pyquoks-1.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
+
pyquoks-1.1.2.dist-info/top_level.txt,sha256=4Eqn44TCCp-D8V6To92e8-KKr49ZGf0dCcsdRQmPkhc,8
|
|
10
|
+
pyquoks-1.1.2.dist-info/RECORD,,
|
pyquoks-1.1.0.dist-info/RECORD
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|