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

@@ -16,8 +16,8 @@ class ProcessingCaseItem(object):
16
16
  case_id: str
17
17
  digest: str
18
18
  status: ProcessingStatus
19
- document_type: ProcessingDocumentType
20
19
  document: InMemoryDocument
20
+ document_type: Optional[ProcessingDocumentType] = None
21
21
  uploaded_from: Optional[ProcessingSource] = None
22
22
  processed_csv: Optional[InMemoryDocument] = None
23
23
  processed_xlsx: Optional[InMemoryDocument] = None
@@ -107,7 +107,10 @@ class ProcessingCaseItem(object):
107
107
  'digest': self.digest,
108
108
  'status': str(self.status),
109
109
  'document': self.document.to_dict,
110
- 'document_type': str(self.document_type),
110
+ 'document_type': (
111
+ str(self.document_type)
112
+ if self.document_type else None
113
+ ),
111
114
  'uploaded_from': (
112
115
  str(self.uploaded_from)
113
116
  if self.uploaded_from else None
@@ -152,8 +155,8 @@ class ProcessingCaseItem(object):
152
155
  ):
153
156
  instance_properties = properties or [
154
157
  'status',
155
- 'document_type',
156
158
  'document',
159
+ 'document_type',
157
160
  'uploaded_from',
158
161
  'processed_csv',
159
162
  'processed_xlsx',
@@ -182,7 +185,10 @@ class ProcessingCaseItem(object):
182
185
  digest=data.get('digest'),
183
186
  status=ProcessingStatus.from_value(data.get('status')),
184
187
  document=InMemoryDocument.from_dict(data.get('document')),
185
- document_type=ProcessingDocumentType.from_value(data.get('document_type')),
188
+ document_type=(
189
+ ProcessingDocumentType.from_value(data.get('document_type'))
190
+ if data.get('document_type') else None
191
+ ),
186
192
  uploaded_from=(
187
193
  ProcessingSource.from_value(data.get('uploaded_from'))
188
194
  if data.get('uploaded_from') else None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: documente_shared
3
- Version: 0.1.78
3
+ Version: 0.1.79
4
4
  Summary: Shared utilities for Documente AI projects
5
5
  License: MIT
6
6
  Author: Tech
@@ -15,7 +15,7 @@ documente_shared/domain/entities/document_metadata.py,sha256=ygyFIC5qwxlm8DUM5kv
15
15
  documente_shared/domain/entities/in_memory_result.py,sha256=Q1E9vnLL5Hz5xunOqWtQmJOMjoK5KN42LZr18GlBAZo,1246
16
16
  documente_shared/domain/entities/processing_case.py,sha256=3bL6BgFwWe6F5keZ6A1K_lLsrwGpkcKg98roM_i6kEQ,5167
17
17
  documente_shared/domain/entities/processing_case_filters.py,sha256=FgyxB4mQb0nEGjIbUB9OiazkKL4yHRRC6bvmjD5NT8k,1915
18
- documente_shared/domain/entities/processing_case_item.py,sha256=hglyPhZBSjlMKVdEVccyHXU3aQRdZ8hfZlXDJnkf7wA,7996
18
+ documente_shared/domain/entities/processing_case_item.py,sha256=i3MpEBzsHbcDO3gHYI1Y-wfFGbaedt3RBXmJdZEtm74,8180
19
19
  documente_shared/domain/entities/processing_case_item_filters.py,sha256=-cAQTSWOepMMcGCBg2X3dd0W_8XHuBTlvOB1d-3sVVM,1971
20
20
  documente_shared/domain/entities/processing_event.py,sha256=m1O0gcNaE_SszeIhxM3uYPHSpyOUmize6mfRw1_bYZo,1723
21
21
  documente_shared/domain/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -37,6 +37,6 @@ documente_shared/infrastructure/repositories/http_processing_case.py,sha256=4PHN
37
37
  documente_shared/infrastructure/repositories/http_processing_case_item.py,sha256=FfKHLPir5uXsVu8WVqEbzcbsO9uzNLvbwDiw-Up1Ddo,2085
38
38
  documente_shared/infrastructure/s3_bucket.py,sha256=vT_yN42RFQXubtUn8ln-j13Os_-25UGClVtXg5Bkv6I,1932
39
39
  documente_shared/infrastructure/sqs_queue.py,sha256=KZWeHZ9zmXmrxoNpOQX7GEdDhZ1knbPXgwSwFwJblGg,1504
40
- documente_shared-0.1.78.dist-info/METADATA,sha256=sHypOM9x1ydabbuwQ5qUZE4zZwn3-_dsX-kutHVNPVI,881
41
- documente_shared-0.1.78.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
42
- documente_shared-0.1.78.dist-info/RECORD,,
40
+ documente_shared-0.1.79.dist-info/METADATA,sha256=E3rsWtAhGjm9t4-aCzAnZnEnQC6YXPP5dVjVGKuvXic,881
41
+ documente_shared-0.1.79.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
42
+ documente_shared-0.1.79.dist-info/RECORD,,