deltafi 2.0rc1720817063181__tar.gz → 2.0rc1722537094366__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.

Potentially problematic release.


This version of deltafi might be problematic. Click here for more details.

Files changed (23) hide show
  1. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/PKG-INFO +6 -6
  2. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/deltafi/action.py +4 -0
  3. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/deltafi/genericmodel.py +3 -1
  4. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/deltafi/logger.py +2 -2
  5. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/deltafi/plugin.py +3 -1
  6. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/pyproject.toml +7 -7
  7. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/README.md +0 -0
  8. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/deltafi/__init__.py +0 -0
  9. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/deltafi/actioneventqueue.py +0 -0
  10. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/deltafi/actiontype.py +0 -0
  11. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/deltafi/domain.py +0 -0
  12. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/deltafi/exception.py +0 -0
  13. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/deltafi/input.py +0 -0
  14. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/deltafi/metric.py +0 -0
  15. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/deltafi/result.py +0 -0
  16. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/deltafi/storage.py +0 -0
  17. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/deltafi/test_kit/__init__.py +0 -0
  18. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/deltafi/test_kit/assertions.py +0 -0
  19. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/deltafi/test_kit/compare_helpers.py +0 -0
  20. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/deltafi/test_kit/constants.py +0 -0
  21. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/deltafi/test_kit/egress.py +0 -0
  22. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/deltafi/test_kit/framework.py +0 -0
  23. {deltafi-2.0rc1720817063181 → deltafi-2.0rc1722537094366}/deltafi/test_kit/transform.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: deltafi
3
- Version: 2.0rc1720817063181
3
+ Version: 2.0rc1722537094366
4
4
  Summary: SDK for DeltaFi plugins and actions
5
5
  License: Apache License, Version 2.0
6
6
  Keywords: deltafi
@@ -20,11 +20,11 @@ Classifier: Programming Language :: Python :: 3.12
20
20
  Classifier: Topic :: Software Development
21
21
  Requires-Dist: deepdiff (>=6.7.1)
22
22
  Requires-Dist: json-logging (>=1.3.0)
23
- Requires-Dist: minio (>=7.2.5)
24
- Requires-Dist: pydantic (>=2.7.1)
25
- Requires-Dist: redis (>=5.0.4)
26
- Requires-Dist: requests (>=2.31.0)
27
- Requires-Dist: urllib3 (>=2.2.1)
23
+ Requires-Dist: minio (>=7.2.7)
24
+ Requires-Dist: pydantic (>=2.8.2)
25
+ Requires-Dist: redis (>=5.0.7)
26
+ Requires-Dist: requests (>=2.32.3)
27
+ Requires-Dist: urllib3 (>=2.2.2)
28
28
  Project-URL: Bug Reports, https://chat.deltafi.org/deltafi/channels/bug-reports
29
29
  Project-URL: Documentation, https://docs.deltafi.org/#/
30
30
  Project-URL: Source Code, https://gitlab.com/deltafi/deltafi
@@ -67,6 +67,10 @@ class Action(ABC):
67
67
  def param_class():
68
68
  """Factory method to create and return an empty GenericModel instance.
69
69
 
70
+ All action parameter classes must inherit pydantic.BaseModel.
71
+ Use of complex types in custom action parameter classes must specify
72
+ the internal types when defined. E.g., dict[str, str], or List[str]
73
+
70
74
  Returns
71
75
  -------
72
76
  GenericModel
@@ -22,7 +22,9 @@
22
22
 
23
23
  Provides an empty subclass of pydantic.BaseModel.
24
24
 
25
- Starting Pydantic v2, the BaseModel cannot be directly instantiated. This class provides for instantiation of GenericModel objects that inherit from BaseModel.
25
+ All action parameter classes must inherit pydantic.BaseModel.
26
+
27
+ Starting Pydantic v2, the BaseModel cannot be directly instantiated. This class provides for instantiation of GenericModel objects that inherit from BaseModel.
26
28
 
27
29
  This class does not define fields for validation or any other purpose.
28
30
  """
@@ -18,7 +18,7 @@
18
18
 
19
19
  import logging
20
20
  import sys
21
- from datetime import datetime
21
+ from datetime import datetime, UTC
22
22
 
23
23
  import json_logging
24
24
 
@@ -42,7 +42,7 @@ def _sanitize_log_msg(record):
42
42
  class JSONLogFormatter(json_logging.JSONLogFormatter):
43
43
 
44
44
  def _format_log_object(self, record, request_util):
45
- utcnow = datetime.utcnow()
45
+ utcnow = datetime.now(UTC)
46
46
 
47
47
  json_log_object = {
48
48
  'timestamp': json_logging.util.iso_time_format(utcnow),
@@ -216,7 +216,8 @@ class Plugin(object):
216
216
  for action in self.actions:
217
217
  threading.Thread(target=self._do_action, args=(action,)).start()
218
218
 
219
- threading.Thread(target=self._heartbeat).start()
219
+ hb_thread = threading.Thread(target=self._heartbeat)
220
+ hb_thread.start()
220
221
 
221
222
  self.logger.info("All threads running")
222
223
 
@@ -224,6 +225,7 @@ class Plugin(object):
224
225
  f.close()
225
226
 
226
227
  self.logger.info("Application initialization complete")
228
+ hb_thread.join()
227
229
 
228
230
  def _heartbeat(self):
229
231
  long_running_actions = set()
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "deltafi"
3
- version = "2.0rc1720817063181"
3
+ version = "2.0rc1722537094366"
4
4
  description = "SDK for DeltaFi plugins and actions"
5
5
  authors = ["DeltaFi <deltafi@systolic.com>"]
6
6
  license = "Apache License, Version 2.0"
@@ -23,17 +23,17 @@ classifiers = [
23
23
  python = "^3.9"
24
24
  deepdiff = ">=6.7.1"
25
25
  json-logging = ">=1.3.0"
26
- minio = ">=7.2.5"
27
- pydantic = ">=2.7.1"
28
- redis = ">=5.0.4"
29
- requests = ">=2.31.0"
30
- urllib3 = ">=2.2.1"
26
+ minio = ">=7.2.7"
27
+ pydantic = ">=2.8.2"
28
+ redis = ">=5.0.7"
29
+ requests = ">=2.32.3"
30
+ urllib3 = ">=2.2.2"
31
31
 
32
32
  [tool.poetry.group.test]
33
33
  optional = true
34
34
 
35
35
  [tool.poetry.group.test.dependencies]
36
- pytest = ">=8.1.1"
36
+ pytest = ">=8.3.2"
37
37
  pytest-mock = ">=3.14.0"
38
38
  mockito = ">=1.5.0"
39
39