zenx 0.8.5__tar.gz → 0.8.7__tar.gz

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.
Files changed (31) hide show
  1. {zenx-0.8.5 → zenx-0.8.7}/PKG-INFO +1 -1
  2. {zenx-0.8.5 → zenx-0.8.7}/pyproject.toml +1 -1
  3. {zenx-0.8.5 → zenx-0.8.7}/zenx/pipelines/websocket.py +4 -5
  4. {zenx-0.8.5 → zenx-0.8.7}/zenx.egg-info/PKG-INFO +1 -1
  5. {zenx-0.8.5 → zenx-0.8.7}/setup.cfg +0 -0
  6. {zenx-0.8.5 → zenx-0.8.7}/zenx/cli.py +0 -0
  7. {zenx-0.8.5 → zenx-0.8.7}/zenx/clients/__init__.py +0 -0
  8. {zenx-0.8.5 → zenx-0.8.7}/zenx/clients/database.py +0 -0
  9. {zenx-0.8.5 → zenx-0.8.7}/zenx/clients/http.py +0 -0
  10. {zenx-0.8.5 → zenx-0.8.7}/zenx/debug_runner.py +0 -0
  11. {zenx-0.8.5 → zenx-0.8.7}/zenx/discovery.py +0 -0
  12. {zenx-0.8.5 → zenx-0.8.7}/zenx/engine.py +0 -0
  13. {zenx-0.8.5 → zenx-0.8.7}/zenx/exceptions.py +0 -0
  14. {zenx-0.8.5 → zenx-0.8.7}/zenx/logger.py +0 -0
  15. {zenx-0.8.5 → zenx-0.8.7}/zenx/pipelines/__init__.py +0 -0
  16. {zenx-0.8.5 → zenx-0.8.7}/zenx/pipelines/base.py +0 -0
  17. {zenx-0.8.5 → zenx-0.8.7}/zenx/pipelines/google_rpc.py +0 -0
  18. {zenx-0.8.5 → zenx-0.8.7}/zenx/pipelines/manager.py +0 -0
  19. {zenx-0.8.5 → zenx-0.8.7}/zenx/pipelines/preprocess.py +0 -0
  20. {zenx-0.8.5 → zenx-0.8.7}/zenx/resources/proto/__init__.py +0 -0
  21. {zenx-0.8.5 → zenx-0.8.7}/zenx/resources/proto/feed_pb2.py +0 -0
  22. {zenx-0.8.5 → zenx-0.8.7}/zenx/resources/proto/feed_pb2_grpc.py +0 -0
  23. {zenx-0.8.5 → zenx-0.8.7}/zenx/settings.py +0 -0
  24. {zenx-0.8.5 → zenx-0.8.7}/zenx/spiders/__init__.py +0 -0
  25. {zenx-0.8.5 → zenx-0.8.7}/zenx/spiders/base.py +0 -0
  26. {zenx-0.8.5 → zenx-0.8.7}/zenx/utils.py +0 -0
  27. {zenx-0.8.5 → zenx-0.8.7}/zenx.egg-info/SOURCES.txt +0 -0
  28. {zenx-0.8.5 → zenx-0.8.7}/zenx.egg-info/dependency_links.txt +0 -0
  29. {zenx-0.8.5 → zenx-0.8.7}/zenx.egg-info/entry_points.txt +0 -0
  30. {zenx-0.8.5 → zenx-0.8.7}/zenx.egg-info/requires.txt +0 -0
  31. {zenx-0.8.5 → zenx-0.8.7}/zenx.egg-info/top_level.txt +0 -0
@@ -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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "zenx"
3
- version = "0.8.5"
3
+ version = "0.8.7"
4
4
  description = "mini-framework"
5
5
  requires-python = ">=3.12"
6
6
  dependencies = [
@@ -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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes