zenx 0.7.1__tar.gz → 0.7.2__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.7.1 → zenx-0.7.2}/PKG-INFO +1 -1
  2. {zenx-0.7.1 → zenx-0.7.2}/pyproject.toml +1 -1
  3. {zenx-0.7.1 → zenx-0.7.2}/zenx/utils.py +3 -2
  4. {zenx-0.7.1 → zenx-0.7.2}/zenx.egg-info/PKG-INFO +1 -1
  5. {zenx-0.7.1 → zenx-0.7.2}/setup.cfg +0 -0
  6. {zenx-0.7.1 → zenx-0.7.2}/zenx/cli.py +0 -0
  7. {zenx-0.7.1 → zenx-0.7.2}/zenx/clients/__init__.py +0 -0
  8. {zenx-0.7.1 → zenx-0.7.2}/zenx/clients/database.py +0 -0
  9. {zenx-0.7.1 → zenx-0.7.2}/zenx/clients/http.py +0 -0
  10. {zenx-0.7.1 → zenx-0.7.2}/zenx/debug_runner.py +0 -0
  11. {zenx-0.7.1 → zenx-0.7.2}/zenx/discovery.py +0 -0
  12. {zenx-0.7.1 → zenx-0.7.2}/zenx/engine.py +0 -0
  13. {zenx-0.7.1 → zenx-0.7.2}/zenx/exceptions.py +0 -0
  14. {zenx-0.7.1 → zenx-0.7.2}/zenx/logger.py +0 -0
  15. {zenx-0.7.1 → zenx-0.7.2}/zenx/pipelines/__init__.py +0 -0
  16. {zenx-0.7.1 → zenx-0.7.2}/zenx/pipelines/base.py +0 -0
  17. {zenx-0.7.1 → zenx-0.7.2}/zenx/pipelines/google_rpc.py +0 -0
  18. {zenx-0.7.1 → zenx-0.7.2}/zenx/pipelines/manager.py +0 -0
  19. {zenx-0.7.1 → zenx-0.7.2}/zenx/pipelines/preprocess.py +0 -0
  20. {zenx-0.7.1 → zenx-0.7.2}/zenx/pipelines/websocket.py +0 -0
  21. {zenx-0.7.1 → zenx-0.7.2}/zenx/resources/proto/__init__.py +0 -0
  22. {zenx-0.7.1 → zenx-0.7.2}/zenx/resources/proto/feed_pb2.py +0 -0
  23. {zenx-0.7.1 → zenx-0.7.2}/zenx/resources/proto/feed_pb2_grpc.py +0 -0
  24. {zenx-0.7.1 → zenx-0.7.2}/zenx/settings.py +0 -0
  25. {zenx-0.7.1 → zenx-0.7.2}/zenx/spiders/__init__.py +0 -0
  26. {zenx-0.7.1 → zenx-0.7.2}/zenx/spiders/base.py +0 -0
  27. {zenx-0.7.1 → zenx-0.7.2}/zenx.egg-info/SOURCES.txt +0 -0
  28. {zenx-0.7.1 → zenx-0.7.2}/zenx.egg-info/dependency_links.txt +0 -0
  29. {zenx-0.7.1 → zenx-0.7.2}/zenx.egg-info/entry_points.txt +0 -0
  30. {zenx-0.7.1 → zenx-0.7.2}/zenx.egg-info/requires.txt +0 -0
  31. {zenx-0.7.1 → zenx-0.7.2}/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.7.1
3
+ Version: 0.7.2
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.7.1"
3
+ version = "0.7.2"
4
4
  description = "mini-framework"
5
5
  requires-python = ">=3.12"
6
6
  dependencies = [
@@ -13,8 +13,9 @@ def log_processing_time(func):
13
13
  async def wrapper(self, item: Dict, spider: str, *args, **kwargs) -> Dict:
14
14
  start_time = get_time()
15
15
  result = await func(self, item, spider, *args, **kwargs)
16
- processed_time = get_time() - start_time
17
- self.logger.info("processed", id=item['_id'], time_ms=processed_time, pipeline=self.name)
16
+ end_time = get_time()
17
+ processed_time = end_time - start_time
18
+ self.logger.info("processed", id=item['_id'], time_ms=processed_time, pipeline=self.name, started_at=start_time, finished_at=end_time)
18
19
  return result
19
20
  return wrapper
20
21
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zenx
3
- Version: 0.7.1
3
+ Version: 0.7.2
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