panther 4.0.0__py3-none-any.whl → 4.0.1__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/base_websocket.py +3 -4
- panther/main.py +2 -1
- {panther-4.0.0.dist-info → panther-4.0.1.dist-info}/METADATA +1 -1
- {panther-4.0.0.dist-info → panther-4.0.1.dist-info}/RECORD +9 -9
- {panther-4.0.0.dist-info → panther-4.0.1.dist-info}/LICENSE +0 -0
- {panther-4.0.0.dist-info → panther-4.0.1.dist-info}/WHEEL +0 -0
- {panther-4.0.0.dist-info → panther-4.0.1.dist-info}/entry_points.txt +0 -0
- {panther-4.0.0.dist-info → panther-4.0.1.dist-info}/top_level.txt +0 -0
panther/__init__.py
CHANGED
panther/base_websocket.py
CHANGED
@@ -182,10 +182,9 @@ class WebsocketConnections(Singleton):
|
|
182
182
|
but they have same Manager()
|
183
183
|
"""
|
184
184
|
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
asyncio.create_task(self())
|
185
|
+
# Schedule the async function to run in the background,
|
186
|
+
# We don't need to await for this task
|
187
|
+
asyncio.create_task(self())
|
189
188
|
|
190
189
|
@classmethod
|
191
190
|
async def handle_authentication(cls, connection: Websocket):
|
panther/main.py
CHANGED
@@ -70,7 +70,8 @@ class Panther:
|
|
70
70
|
if scope['type'] == 'lifespan':
|
71
71
|
message = await receive()
|
72
72
|
if message["type"] == 'lifespan.startup':
|
73
|
-
|
73
|
+
if config.HAS_WS:
|
74
|
+
await config.WEBSOCKET_CONNECTIONS.start()
|
74
75
|
await Event.run_startups()
|
75
76
|
elif message["type"] == 'lifespan.shutdown':
|
76
77
|
# It's not happening :\, so handle the shutdowns in __del__ ...
|
@@ -1,11 +1,11 @@
|
|
1
|
-
panther/__init__.py,sha256=
|
1
|
+
panther/__init__.py,sha256=5Kdy8QK5KIDYGPfC-2xwNeQosFAlIMtIBeSSQbwt_u8,110
|
2
2
|
panther/_load_configs.py,sha256=AVkoixkUFkBQiTmrLrwCmg0eiPW2U_Uw2EGNEGQRfnI,9281
|
3
3
|
panther/_utils.py,sha256=xeVR0yHvczhXv2XXrpoa6SHpGTDTFxNxiemXTdbsqjM,4279
|
4
4
|
panther/app.py,sha256=X4vmpj5QuEt10iSVso89hGfyw75vemWtHPtdrXX4nD4,7276
|
5
5
|
panther/authentications.py,sha256=gf7BVyQ8vXKhiumJAtD0aAK7uIHWx_snbOKYAKrYuVw,5677
|
6
6
|
panther/background_tasks.py,sha256=HBYubDIiO_673cl_5fqCUP9zzimzRgRkDSkag9Msnbs,7656
|
7
7
|
panther/base_request.py,sha256=w48-1gQzJi5m9AUZzspdugffUS73lZ8Lw0N9AND_XDM,4064
|
8
|
-
panther/base_websocket.py,sha256=
|
8
|
+
panther/base_websocket.py,sha256=hJN_ItUGLpk0QMWrExlDHQahiu7hYgc_jVvHWxqqpq4,10547
|
9
9
|
panther/caching.py,sha256=ltuJYdjNiAaKIs3jpO5EBpL8Y6CF1vAIQqh8J_Np10g,4098
|
10
10
|
panther/configs.py,sha256=EaLApT6nYcguBoNXBG_8n6DU6HTNxsulI2943j8UAkE,3174
|
11
11
|
panther/events.py,sha256=bxDqrfiNNBlvD03vEk2LDK4xbMzTMFVcgAjx2ein7mI,1158
|
@@ -13,7 +13,7 @@ panther/exceptions.py,sha256=7rHdJIES2__kqOStIqbHl3Uxask2lzKgLQlkZvvDwFA,1591
|
|
13
13
|
panther/file_handler.py,sha256=XnomEigCUYOaXjkH4kD1kzpUbL2i9lLnR5kerruF6BA,846
|
14
14
|
panther/generics.py,sha256=eR97UgsH2WdqWTR5aw94niIJwIAlhgAz2wNVz_N3vIk,6311
|
15
15
|
panther/logging.py,sha256=t0nQXsSIwIxShqFnjRGp6lhO4Ybf1SnwJraDSTqMHFM,2211
|
16
|
-
panther/main.py,sha256=
|
16
|
+
panther/main.py,sha256=UbIxwaojvY_vH9nYfBpkulRBqVEj4Lbl81Er4XW_KCY,9334
|
17
17
|
panther/monitoring.py,sha256=y1F3c8FJlnmooM-m1nSyOTa9eWq0v1nHnmw9zz-4Kls,1314
|
18
18
|
panther/pagination.py,sha256=efpsWMgLBaTWXhnhMAf6fyIrGTmVOFbmHpX03GgEJh0,1574
|
19
19
|
panther/permissions.py,sha256=9-J5vzvEKa_PITwEVQbZZv8PG2FOu05YBlD5yMrKcfc,348
|
@@ -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.0.
|
53
|
-
panther-4.0.
|
54
|
-
panther-4.0.
|
55
|
-
panther-4.0.
|
56
|
-
panther-4.0.
|
57
|
-
panther-4.0.
|
52
|
+
panther-4.0.1.dist-info/LICENSE,sha256=2aF1hL2aC0zRPjzUkSxJUzZbn2_uLoOkn7DHjzZni-I,1524
|
53
|
+
panther-4.0.1.dist-info/METADATA,sha256=FX3DcJ0oTxuuJFxZNcl2y6XGPJe_nTSFHfn8_Dty64Q,6968
|
54
|
+
panther-4.0.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
55
|
+
panther-4.0.1.dist-info/entry_points.txt,sha256=6GPxYFGuzVfNB4YpHFJvYex6iWah5_tLnirAHwj2Qsg,51
|
56
|
+
panther-4.0.1.dist-info/top_level.txt,sha256=VbBs02JGXTIoHMzsX-eLOk2MCbBZzQbLhWiYpI7xI2g,8
|
57
|
+
panther-4.0.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|