documente_shared 0.1.91__tar.gz → 0.1.93__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 documente_shared might be problematic. Click here for more details.
- {documente_shared-0.1.91 → documente_shared-0.1.93}/PKG-INFO +1 -1
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/entities/processing_case.py +14 -9
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/entities/processing_event.py +8 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/pyproject.toml +1 -1
- {documente_shared-0.1.91 → documente_shared-0.1.93}/README.md +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/__init__.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/application/__init__.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/application/dates.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/application/digest.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/application/exceptions.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/application/files.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/application/payloads.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/application/query_params.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/application/time_utils.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/application/timezone.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/__init__.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/base_enum.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/constants.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/entities/__init__.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/entities/document.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/entities/document_metadata.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/entities/in_memory_result.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/entities/processing_case_filters.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/entities/processing_case_item.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/entities/processing_case_item_filters.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/entities/scaling.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/enums/__init__.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/enums/common.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/enums/document.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/enums/processing_case.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/interfaces/__init__.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/interfaces/scaling.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/repositories/__init__.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/repositories/document.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/repositories/processing_case.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/repositories/processing_case_item.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/infrastructure/__init__.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/infrastructure/documente_client.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/infrastructure/dynamo_table.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/infrastructure/lambdas.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/infrastructure/repositories/__init__.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/infrastructure/repositories/dynamo_document.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/infrastructure/repositories/dynamo_processing_case.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/infrastructure/repositories/dynamo_processing_case_item.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/infrastructure/repositories/http_document_processing.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/infrastructure/repositories/http_processing_case.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/infrastructure/repositories/http_processing_case_item.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/infrastructure/s3_bucket.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/infrastructure/services/__init__.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/infrastructure/services/http_scaling.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/infrastructure/sqs_queue.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/presentation/__init__.py +0 -0
- {documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/presentation/presenters.py +0 -0
|
@@ -58,15 +58,6 @@ class ProcessingCase(object):
|
|
|
58
58
|
def deleted(self):
|
|
59
59
|
self.status = ProcessingStatus.DELETED
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
def procesable_items(self) -> List[ProcessingCaseItem]:
|
|
63
|
-
return [
|
|
64
|
-
item for item in self.items
|
|
65
|
-
if item.status in [
|
|
66
|
-
ProcessingStatus.PENDING,
|
|
67
|
-
ProcessingStatus.ENQUEUED,
|
|
68
|
-
]
|
|
69
|
-
]
|
|
70
61
|
|
|
71
62
|
def __eq__(self, other: 'ProcessingCase') -> bool:
|
|
72
63
|
if not other:
|
|
@@ -112,6 +103,20 @@ class ProcessingCase(object):
|
|
|
112
103
|
]
|
|
113
104
|
return persist_data
|
|
114
105
|
|
|
106
|
+
@property
|
|
107
|
+
def procesable_items(self) -> List[ProcessingCaseItem]:
|
|
108
|
+
return [
|
|
109
|
+
item for item in self.items
|
|
110
|
+
if item.status in [
|
|
111
|
+
ProcessingStatus.PENDING,
|
|
112
|
+
ProcessingStatus.ENQUEUED,
|
|
113
|
+
]
|
|
114
|
+
]
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def has_procesable_items(self) -> bool:
|
|
118
|
+
return len(self.procesable_items) > 0
|
|
119
|
+
|
|
115
120
|
@classmethod
|
|
116
121
|
def from_dict(cls, data: dict) -> 'ProcessingCase':
|
|
117
122
|
return cls(
|
|
@@ -31,6 +31,14 @@ class ProcessingEvent(object):
|
|
|
31
31
|
def is_document(self) -> bool:
|
|
32
32
|
return self.processing_type == ProcessingType.DOCUMENT
|
|
33
33
|
|
|
34
|
+
@property
|
|
35
|
+
def uuid(self) -> Optional[str]:
|
|
36
|
+
if self.is_document:
|
|
37
|
+
return self.instance.digest
|
|
38
|
+
elif self.is_processing_case:
|
|
39
|
+
return self.instance.uuid
|
|
40
|
+
return None
|
|
41
|
+
|
|
34
42
|
@property
|
|
35
43
|
def to_dict(self) -> dict:
|
|
36
44
|
return {
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/application/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/application/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/application/payloads.py
RENAMED
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/application/query_params.py
RENAMED
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/application/time_utils.py
RENAMED
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/application/timezone.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/entities/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/entities/document.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/entities/scaling.py
RENAMED
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/enums/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/enums/document.py
RENAMED
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/enums/processing_case.py
RENAMED
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/interfaces/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/interfaces/scaling.py
RENAMED
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/repositories/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/domain/repositories/document.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/infrastructure/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/infrastructure/dynamo_table.py
RENAMED
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/infrastructure/lambdas.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/infrastructure/s3_bucket.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/infrastructure/sqs_queue.py
RENAMED
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/presentation/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.91 → documente_shared-0.1.93}/documente_shared/presentation/presenters.py
RENAMED
|
File without changes
|