panther 4.3.2__py3-none-any.whl → 4.3.3__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.
- panther/__init__.py +1 -1
- panther/response.py +2 -1
- {panther-4.3.2.dist-info → panther-4.3.3.dist-info}/METADATA +5 -2
- {panther-4.3.2.dist-info → panther-4.3.3.dist-info}/RECORD +8 -8
- {panther-4.3.2.dist-info → panther-4.3.3.dist-info}/WHEEL +1 -1
- {panther-4.3.2.dist-info → panther-4.3.3.dist-info}/LICENSE +0 -0
- {panther-4.3.2.dist-info → panther-4.3.3.dist-info}/entry_points.txt +0 -0
- {panther-4.3.2.dist-info → panther-4.3.3.dist-info}/top_level.txt +0 -0
panther/__init__.py
CHANGED
panther/response.py
CHANGED
@@ -249,6 +249,7 @@ class TemplateResponse(HTMLResponse):
|
|
249
249
|
:param pagination: instance of Pagination or None
|
250
250
|
Its template() method will be used
|
251
251
|
"""
|
252
|
-
|
252
|
+
if not context:
|
253
|
+
context = {}
|
253
254
|
template = self.environment.get_template(path) if path is not None else self.environment.from_string(source)
|
254
255
|
super().__init__(template.render(context), headers, status_code, pagination=pagination)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: panther
|
3
|
-
Version: 4.3.
|
3
|
+
Version: 4.3.3
|
4
4
|
Summary: Fast & Friendly, Web Framework For Building Async APIs
|
5
5
|
Home-page: https://github.com/alirn76/panther
|
6
6
|
Author: Ali RajabNezhad
|
@@ -21,12 +21,15 @@ Requires-Dist: uvicorn~=0.27.1
|
|
21
21
|
Requires-Dist: pytz~=2024.1
|
22
22
|
Requires-Dist: Jinja2~=3.1
|
23
23
|
Requires-Dist: httptools~=0.6.1
|
24
|
+
Provides-Extra: dev
|
25
|
+
Requires-Dist: ruff~=0.1.9; extra == "dev"
|
26
|
+
Requires-Dist: pytest~=8.3.3; extra == "dev"
|
24
27
|
Provides-Extra: full
|
25
28
|
Requires-Dist: redis==5.0.1; extra == "full"
|
26
29
|
Requires-Dist: motor~=3.5.0; extra == "full"
|
27
30
|
Requires-Dist: bpython~=0.24; extra == "full"
|
28
|
-
Requires-Dist: ruff~=0.1.9; extra == "full"
|
29
31
|
Requires-Dist: python-jose~=3.3.0; extra == "full"
|
32
|
+
Requires-Dist: ruff~=0.1.9; extra == "full"
|
30
33
|
Requires-Dist: websockets~=12.0; extra == "full"
|
31
34
|
Requires-Dist: cryptography~=42.0.8; extra == "full"
|
32
35
|
Requires-Dist: watchfiles~=0.21.0; extra == "full"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
panther/__init__.py,sha256=
|
1
|
+
panther/__init__.py,sha256=dHSHKCuH-PIVagzBpiGQuX4E_rciYT3fi8UlfzKEUNM,110
|
2
2
|
panther/_load_configs.py,sha256=NZEwp3s7Mq_gU6w5FFN-3JfJImjZtf4_q-qengDQ6Y0,9875
|
3
3
|
panther/_utils.py,sha256=R1tsUde1zA5iJtk-ZvWe8hp6JaNhKgNoH2rxpdiQDMc,4449
|
4
4
|
panther/app.py,sha256=e2eb4sXIaBje5vpcm4pbvvEO_sj83pLfBHCIZJFFX38,8222
|
@@ -18,7 +18,7 @@ panther/monitoring.py,sha256=y1F3c8FJlnmooM-m1nSyOTa9eWq0v1nHnmw9zz-4Kls,1314
|
|
18
18
|
panther/pagination.py,sha256=ANJrEF0q1nVAfD33I4nZfUUxFcETzJb01gIhbZX3HEw,1639
|
19
19
|
panther/permissions.py,sha256=9-J5vzvEKa_PITwEVQbZZv8PG2FOu05YBlD5yMrKcfc,348
|
20
20
|
panther/request.py,sha256=F9ZiAWSse7_6moAzqdoFInUN4zTKlzijh9AdU9w3Jfw,1673
|
21
|
-
panther/response.py,sha256=
|
21
|
+
panther/response.py,sha256=ZjmYfbaZyF8DnLtBCdnxZCIBvnEG_BTkGy_9Uwwnuvw,8899
|
22
22
|
panther/routings.py,sha256=1eqbjubLnUUEQRlz8mIF464ImvCMjyasiekHBtxEQoQ,6218
|
23
23
|
panther/serializer.py,sha256=5O5dypP9ys0qTKrjwaXONmOqCfDHoXY1q5ajsirFjM8,9083
|
24
24
|
panther/status.py,sha256=Gc_PnYrHfInTsZpGbqiCfDB-py1C7Rh8KMdb6Lq9Exs,3346
|
@@ -49,9 +49,9 @@ panther/panel/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
49
49
|
panther/panel/apis.py,sha256=COsbwKZyTgyHvHYbpDfusifAH9ojMS3z1KhZCt9M-Ms,2428
|
50
50
|
panther/panel/urls.py,sha256=JiV-H4dWE-m_bfaTTVxzOxTvJmOWhyLOvcbM7xU3Bn4,240
|
51
51
|
panther/panel/utils.py,sha256=0Rv79oR5IEqalqwpRKQHMn1p5duVY5mxMqDKiA5mWx4,437
|
52
|
-
panther-4.3.
|
53
|
-
panther-4.3.
|
54
|
-
panther-4.3.
|
55
|
-
panther-4.3.
|
56
|
-
panther-4.3.
|
57
|
-
panther-4.3.
|
52
|
+
panther-4.3.3.dist-info/LICENSE,sha256=2aF1hL2aC0zRPjzUkSxJUzZbn2_uLoOkn7DHjzZni-I,1524
|
53
|
+
panther-4.3.3.dist-info/METADATA,sha256=h6jZdw3vY-nVfpeAkl53zjn7V4WMeuyapMxc7gqgiPU,6695
|
54
|
+
panther-4.3.3.dist-info/WHEEL,sha256=a7TGlA-5DaHMRrarXjVbQagU3Man_dCnGIWMJr5kRWo,91
|
55
|
+
panther-4.3.3.dist-info/entry_points.txt,sha256=6GPxYFGuzVfNB4YpHFJvYex6iWah5_tLnirAHwj2Qsg,51
|
56
|
+
panther-4.3.3.dist-info/top_level.txt,sha256=VbBs02JGXTIoHMzsX-eLOk2MCbBZzQbLhWiYpI7xI2g,8
|
57
|
+
panther-4.3.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|