documente_shared 0.1.118__py3-none-any.whl → 0.1.119__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.

Potentially problematic release.


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

@@ -32,16 +32,16 @@ class ProcessingCase(object):
32
32
  return False
33
33
 
34
34
  return (
35
- self.uuid == other.uuid
36
- and self.name == other.name
37
- and self.status == other.status
38
- and self.case_type == other.case_type
39
- and self.enqueued_at == other.enqueued_at
40
- and self.started_at == other.started_at
41
- and self.failed_at == other.failed_at
42
- and self.feedback == other.feedback
43
- and self.completed_at == other.completed_at
44
- and self.metadata == other.metadata
35
+ self.uuid == other.uuid
36
+ and self.name == other.name
37
+ and self.status == other.status
38
+ and self.case_type == other.case_type
39
+ and self.enqueued_at == other.enqueued_at
40
+ and self.started_at == other.started_at
41
+ and self.failed_at == other.failed_at
42
+ and self.feedback == other.feedback
43
+ and self.completed_at == other.completed_at
44
+ and self.metadata == other.metadata
45
45
  )
46
46
 
47
47
  @property
@@ -80,6 +80,14 @@ class ProcessingCase(object):
80
80
  'items': [item.to_dict for item in self.items],
81
81
  }
82
82
 
83
+ @property
84
+ def to_queue_dict(self) -> dict:
85
+ data = self.to_dict
86
+ data["items"] = [
87
+ item.to_queue_dict for item in self.items
88
+ ]
89
+ return data
90
+
83
91
  @property
84
92
  def to_persist_dict(self) -> dict:
85
93
  persist_data = self.to_dict
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: documente_shared
3
- Version: 0.1.118
3
+ Version: 0.1.119
4
4
  Summary: Shared utilities for Documente AI projects
5
5
  License: MIT
6
6
  Author: Tech
@@ -17,7 +17,7 @@ documente_shared/domain/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
17
17
  documente_shared/domain/entities/document.py,sha256=JL-EmqHx3PtPIcVbnhM1lTVjqTTPTALinuScFy4I_ZY,13125
18
18
  documente_shared/domain/entities/document_metadata.py,sha256=ygyFIC5qwxlm8DUM5kvVFny9zJfPQS8vNLM2br5XsQ8,2353
19
19
  documente_shared/domain/entities/in_memory_document.py,sha256=8JfVxbgqxkU3QvsuWzjpSp-end6JfffYDUSvMvrQsps,2284
20
- documente_shared/domain/entities/processing_case.py,sha256=6_1J50jyb8XcOiXvGKDJxyLZ6we-RDOmdimalc3h7oM,6451
20
+ documente_shared/domain/entities/processing_case.py,sha256=1xD5VtHpk6oomRtLyorh7sQMwh5hoywHpPE9xPfkQE4,6601
21
21
  documente_shared/domain/entities/processing_case_filters.py,sha256=harKyu7QEuL1bI_Z8_UxkVCMo5r9vHeNHyi_Ja07vjs,1953
22
22
  documente_shared/domain/entities/processing_case_item.py,sha256=Kqozxf91C0SxOUl1ZbEU6_63Lz16mX4RfDqZ5Kf8mm4,10921
23
23
  documente_shared/domain/entities/processing_case_item_filters.py,sha256=R_AvDCB496Lww1qn2OwtltqULKE3IpcJB0ejnmRkg7Q,2009
@@ -55,6 +55,6 @@ documente_shared/infrastructure/services/http_scaling.py,sha256=cIo-61nfIwbtO86E
55
55
  documente_shared/infrastructure/sqs_queue.py,sha256=KZWeHZ9zmXmrxoNpOQX7GEdDhZ1knbPXgwSwFwJblGg,1504
56
56
  documente_shared/presentation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
57
57
  documente_shared/presentation/presenters.py,sha256=GGAEwefmjCIVepsUA2oZOVLxXbhhiISPM0Jgt6dT6O0,423
58
- documente_shared-0.1.118.dist-info/METADATA,sha256=o8D95EUnCaQf6Xd0yiCI2V7nxlAoXjoSXEaMMmKZL7M,963
59
- documente_shared-0.1.118.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
60
- documente_shared-0.1.118.dist-info/RECORD,,
58
+ documente_shared-0.1.119.dist-info/METADATA,sha256=EWHmFafPxLxtTsxJGmaFv0MQJbVYVyx0NhROPPmO8VM,963
59
+ documente_shared-0.1.119.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
60
+ documente_shared-0.1.119.dist-info/RECORD,,