zenx 0.8.5__py3-none-any.whl → 0.8.7__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.
@@ -2,16 +2,16 @@ import asyncio
2
2
  import json
3
3
  from typing import Dict, Optional
4
4
  from structlog import BoundLogger
5
- from websockets import ConnectionClosed
6
5
 
7
6
  from zenx.clients.database import DBClient
8
7
  from zenx.settings import Settings
9
8
  from zenx.pipelines.base import Pipeline
10
- from zenx.utils import get_time, log_processing_time
9
+ from zenx.utils import log_processing_time
11
10
 
12
11
 
13
12
  try:
14
13
  import websockets
14
+ from websockets import ConnectionClosed
15
15
 
16
16
  class SynopticWebSocketPipeline(Pipeline): # type: ignore[reportRedeclaration]
17
17
  name = "synoptic_websocket"
@@ -55,9 +55,8 @@ try:
55
55
  await self._connected.wait()
56
56
  self.logger.debug("listening", pipeline=self.name)
57
57
  async for msg in self._ws_client:
58
- self.logger.debug("response", msg=msg.decode(), pipeline=self.name)
59
- except Exception as e:
60
- self.logger.error("listening", exception=str(e), pipeline=self.name)
58
+ self.logger.debug("response", msg=msg, pipeline=self.name)
59
+ except Exception:
61
60
  await asyncio.sleep(1)
62
61
 
63
62
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zenx
3
- Version: 0.8.5
3
+ Version: 0.8.7
4
4
  Summary: mini-framework
5
5
  Requires-Python: >=3.12
6
6
  Requires-Dist: curl-cffi>=0.12.0
@@ -14,14 +14,14 @@ zenx/pipelines/base.py,sha256=N_388z5DFMeaU6wMwcClZAbQFWKh4kpAF7eUJhpQevs,1863
14
14
  zenx/pipelines/google_rpc.py,sha256=nR7hNCqAcg1YGWYm3xoj8G8vOTs74lAeYc0dYk842n8,4490
15
15
  zenx/pipelines/manager.py,sha256=lm2A_4h8NNdurFfwrrLwx5Z1tqJ9yZp2qgYvwGWd1lc,2017
16
16
  zenx/pipelines/preprocess.py,sha256=zXuhaLdH5KfBi_Bf-K5BgzFEujdmPWWpwYKkpOifT5U,816
17
- zenx/pipelines/websocket.py,sha256=ZOkmx5lB-gg0vkqHyi3MYU7JOlobMkerxlD_fYV34oA,4970
17
+ zenx/pipelines/websocket.py,sha256=X4hwHAwFUXqmZ4aR6Aox0GHSxCUVjd1_7ZZeUQ2j-Lk,4865
18
18
  zenx/resources/proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  zenx/resources/proto/feed_pb2.py,sha256=ZyICOLnyuXekkvV4bAHZ1nE1-wwzcYYRRrmRJCMrSoo,2810
20
20
  zenx/resources/proto/feed_pb2_grpc.py,sha256=Mim6FfBgIMj0PmTqHk036nVUMJH3A6I3ts6r1j3bQF8,7441
21
21
  zenx/spiders/__init__.py,sha256=rs5LuqdM2MQlUYiTGJrzkYhzN8_SSLTrR7wGjSRrrSo,25
22
22
  zenx/spiders/base.py,sha256=BGxOvNnjaz6gmZm7NIgYc0RddWDmpIp53ukxprUUd-Y,1932
23
- zenx-0.8.5.dist-info/METADATA,sha256=4oPConQFdLIed6ar3I4NibNlVWyPJIQ8YOwAJEPomT0,1273
24
- zenx-0.8.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
25
- zenx-0.8.5.dist-info/entry_points.txt,sha256=8JXob2f1VtvzGFris-e9Usqywg7oca-cChDlH9moOZU,38
26
- zenx-0.8.5.dist-info/top_level.txt,sha256=JeXwvK86d7sB-2x-avugFnZIZa33zaHWKI8RHWJR6KY,5
27
- zenx-0.8.5.dist-info/RECORD,,
23
+ zenx-0.8.7.dist-info/METADATA,sha256=1aQ5UB7ycMJcZZjSLuws6KJZG9VDWy0_efKN1gVe6Uc,1273
24
+ zenx-0.8.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
25
+ zenx-0.8.7.dist-info/entry_points.txt,sha256=8JXob2f1VtvzGFris-e9Usqywg7oca-cChDlH9moOZU,38
26
+ zenx-0.8.7.dist-info/top_level.txt,sha256=JeXwvK86d7sB-2x-avugFnZIZa33zaHWKI8RHWJR6KY,5
27
+ zenx-0.8.7.dist-info/RECORD,,
File without changes