pyquoks 2.3.2.1__py3-none-any.whl → 2.4.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/__init__.py +0 -2
- pyquoks/test.py +2 -0
- {pyquoks-2.3.2.1.dist-info → pyquoks-2.4.0.dist-info}/METADATA +5 -22
- pyquoks-2.4.0.dist-info/RECORD +8 -0
- pyquoks/localhost.py +0 -51
- pyquoks-2.3.2.1.dist-info/RECORD +0 -9
- {pyquoks-2.3.2.1.dist-info → pyquoks-2.4.0.dist-info}/WHEEL +0 -0
- {pyquoks-2.3.2.1.dist-info → pyquoks-2.4.0.dist-info}/licenses/LICENSE +0 -0
pyquoks/__init__.py
CHANGED
pyquoks/test.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyquoks
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.4.0
|
|
4
4
|
Summary: Пакет PyPI для часто используемых модулей в проектах diquoks
|
|
5
5
|
License: MIT
|
|
6
6
|
License-File: LICENSE
|
|
@@ -10,27 +10,10 @@ Requires-Python: >=3.14
|
|
|
10
10
|
Classifier: License :: OSI Approved :: MIT License
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.14
|
|
13
|
-
Requires-Dist:
|
|
14
|
-
Requires-Dist:
|
|
15
|
-
Requires-Dist:
|
|
16
|
-
Requires-Dist:
|
|
17
|
-
Requires-Dist: click (==8.3.1)
|
|
18
|
-
Requires-Dist: colorama (==0.4.6)
|
|
19
|
-
Requires-Dist: flask (==3.1.2)
|
|
20
|
-
Requires-Dist: idna (==3.11)
|
|
21
|
-
Requires-Dist: itsdangerous (==2.2.0)
|
|
22
|
-
Requires-Dist: jinja2 (==3.1.6)
|
|
23
|
-
Requires-Dist: markupsafe (==3.0.3)
|
|
24
|
-
Requires-Dist: pillow (==12.1.0)
|
|
25
|
-
Requires-Dist: psutil (==7.2.1)
|
|
26
|
-
Requires-Dist: pydantic (==2.12.5)
|
|
27
|
-
Requires-Dist: pydantic-core (==2.41.5)
|
|
28
|
-
Requires-Dist: requests (==2.32.5)
|
|
29
|
-
Requires-Dist: typing-extensions (==4.15.0)
|
|
30
|
-
Requires-Dist: typing-inspection (==0.4.2)
|
|
31
|
-
Requires-Dist: urllib3 (==2.6.2)
|
|
32
|
-
Requires-Dist: waitress (==3.0.2)
|
|
33
|
-
Requires-Dist: werkzeug (==3.1.4)
|
|
13
|
+
Requires-Dist: pillow (>=12.1.0)
|
|
14
|
+
Requires-Dist: psutil (>=7.2.1)
|
|
15
|
+
Requires-Dist: pydantic (>=2.12.5)
|
|
16
|
+
Requires-Dist: requests (>=2.32.5)
|
|
34
17
|
Description-Content-Type: text/markdown
|
|
35
18
|
|
|
36
19
|
# pyquoks
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
pyquoks/__init__.py,sha256=ptZEkhgvtkE_QkYALg8Ke70jSh02rI7piDHy-CDSZ50,119
|
|
2
|
+
pyquoks/data.py,sha256=bYS_iXOcH5bVqBdKi9xOdlKaUjerTolgrP2N2idhv-Y,19459
|
|
3
|
+
pyquoks/test.py,sha256=u0uyABZPw_Xdxy3nFRYkYGySqV6CuhzyPqbIWPi55xU,3450
|
|
4
|
+
pyquoks/utils.py,sha256=shCyMYgpg8pGSJLuHqO4nEWDeTOAc7b5BjlgDVhvZV4,1861
|
|
5
|
+
pyquoks-2.4.0.dist-info/licenses/LICENSE,sha256=WYK66zwaBlCe_GnOwRCLlJCQibJ8oyqvpZ1CCsrcg2k,1095
|
|
6
|
+
pyquoks-2.4.0.dist-info/METADATA,sha256=RjMwuA1Y5TfY4dHhoNOuV0c8Y8tfWgykf70p65aQ4d0,1251
|
|
7
|
+
pyquoks-2.4.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
8
|
+
pyquoks-2.4.0.dist-info/RECORD,,
|
pyquoks/localhost.py
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import typing
|
|
2
|
-
|
|
3
|
-
import flask
|
|
4
|
-
import waitress
|
|
5
|
-
|
|
6
|
-
from . import utils
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class LocalhostFlask(flask.Flask, utils._HasRequiredAttributes):
|
|
10
|
-
"""
|
|
11
|
-
Class for creating a simple localhost server
|
|
12
|
-
|
|
13
|
-
**Required attributes**::
|
|
14
|
-
|
|
15
|
-
_RULES = {"/": self.base_redirect}
|
|
16
|
-
|
|
17
|
-
Attributes:
|
|
18
|
-
_RULES: Dictionary with rules and functions
|
|
19
|
-
"""
|
|
20
|
-
|
|
21
|
-
_REQUIRED_ATTRIBUTES = {
|
|
22
|
-
"_RULES",
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
_RULES: dict[str, typing.Callable]
|
|
26
|
-
|
|
27
|
-
def __init__(self, import_name: str) -> None:
|
|
28
|
-
self._check_attributes()
|
|
29
|
-
|
|
30
|
-
super().__init__(
|
|
31
|
-
import_name=import_name,
|
|
32
|
-
)
|
|
33
|
-
|
|
34
|
-
for rule, view_func in self._RULES.items():
|
|
35
|
-
self.add_url_rule(
|
|
36
|
-
rule=rule,
|
|
37
|
-
view_func=view_func,
|
|
38
|
-
)
|
|
39
|
-
|
|
40
|
-
def serve(self, port: int) -> None:
|
|
41
|
-
"""
|
|
42
|
-
Starts this Flask application
|
|
43
|
-
|
|
44
|
-
:param port: Port number
|
|
45
|
-
"""
|
|
46
|
-
|
|
47
|
-
waitress.serve(
|
|
48
|
-
app=self,
|
|
49
|
-
host="127.0.0.1",
|
|
50
|
-
port=port,
|
|
51
|
-
)
|
pyquoks-2.3.2.1.dist-info/RECORD
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
pyquoks/__init__.py,sha256=hTEfFbalsc5BrQwTCb85Fq-eHRn3Oq3OnsVaQ8ZOuNY,162
|
|
2
|
-
pyquoks/data.py,sha256=bYS_iXOcH5bVqBdKi9xOdlKaUjerTolgrP2N2idhv-Y,19459
|
|
3
|
-
pyquoks/localhost.py,sha256=8exOFW_4uycDvlZTaVgtirWWD4mjuzrqPZvyFYsRD5g,1053
|
|
4
|
-
pyquoks/test.py,sha256=risnmQyfg4TYoXx5b6RNvH0bTZpYBAWbmRRzqqKDeSQ,3418
|
|
5
|
-
pyquoks/utils.py,sha256=shCyMYgpg8pGSJLuHqO4nEWDeTOAc7b5BjlgDVhvZV4,1861
|
|
6
|
-
pyquoks-2.3.2.1.dist-info/licenses/LICENSE,sha256=WYK66zwaBlCe_GnOwRCLlJCQibJ8oyqvpZ1CCsrcg2k,1095
|
|
7
|
-
pyquoks-2.3.2.1.dist-info/METADATA,sha256=terCfIrcr2GTmutoALMjf9Y9CtHvdxjk4dHwa3C85jg,1866
|
|
8
|
-
pyquoks-2.3.2.1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
9
|
-
pyquoks-2.3.2.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|