documente_shared 0.1.131b0__py3-none-any.whl → 0.1.131b2__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.

@@ -109,7 +109,6 @@ class DocumentProcessing(object):
109
109
  DocumentProcessingStatus.COMPLETED,
110
110
  DocumentProcessingStatus.FAILED,
111
111
  ]
112
-
113
112
  @property
114
113
  def file_key(self) -> str:
115
114
  return remove_slash_from_path(self.file_path)
@@ -221,6 +220,12 @@ class DocumentProcessing(object):
221
220
 
222
221
  def in_review(self):
223
222
  self.status = DocumentProcessingStatus.IN_REVIEW
223
+
224
+ def is_size_gt(self, size: Decimal = Decimal(10)):
225
+ return self.document_size and self.document_size >= size
226
+
227
+ def is_size_lt(self, size: Decimal = Decimal(10)):
228
+ return self.document_size and self.document_size <= size
224
229
 
225
230
  def __eq__(self, other: 'DocumentProcessing') -> bool:
226
231
  if not other:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: documente_shared
3
- Version: 0.1.131b0
3
+ Version: 0.1.131b2
4
4
  Summary: Shared utilities for Documente AI projects
5
5
  License: MIT
6
6
  Author: Tech
@@ -14,7 +14,7 @@ documente_shared/domain/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
14
14
  documente_shared/domain/base_enum.py,sha256=DojAfn-zQdtjtImeHUpBzE6TBTm07XrbMOdW3h8RVd8,1449
15
15
  documente_shared/domain/constants.py,sha256=NG5BGaXBr_FnzudjTRPxpDpyiSDdaB_PLCdlYlFUQeU,187
16
16
  documente_shared/domain/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
- documente_shared/domain/entities/document.py,sha256=iSXUjq7JZXZy16XkS6x4winmsds1rKtuLDshQ8cpOy8,13639
17
+ documente_shared/domain/entities/document.py,sha256=Os901LfH8FPuFxOHj_RtTmqysi3huUYyvdeM-4VKNeA,13888
18
18
  documente_shared/domain/entities/document_metadata.py,sha256=ygyFIC5qwxlm8DUM5kvVFny9zJfPQS8vNLM2br5XsQ8,2353
19
19
  documente_shared/domain/entities/in_memory_document.py,sha256=6LlUtF9YbFPNxP-ytrWkFYQzvdJJJ9iC8X4_U125hEE,2113
20
20
  documente_shared/domain/entities/processing_case.py,sha256=D57zP704mBtt563Pbmd41PFQSna4chVWsWTR_2ZAtTU,6602
@@ -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.131b0.dist-info/METADATA,sha256=Kkbe3-Zno-bRxBr53A4ce3f1oFFlQIULOsInpEcyNfs,965
59
- documente_shared-0.1.131b0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
60
- documente_shared-0.1.131b0.dist-info/RECORD,,
58
+ documente_shared-0.1.131b2.dist-info/METADATA,sha256=d3cksEy0mID1ZIAE7VrOVINYuKPoMjNnHvSqfHjOvpU,965
59
+ documente_shared-0.1.131b2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
60
+ documente_shared-0.1.131b2.dist-info/RECORD,,