documente_shared 0.1.103__tar.gz → 0.1.104__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.103 → documente_shared-0.1.104}/PKG-INFO +1 -1
- documente_shared-0.1.104/documente_shared/infrastructure/repositories/mem_processing_case_item.py +43 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/pyproject.toml +1 -1
- {documente_shared-0.1.103 → documente_shared-0.1.104}/README.md +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/__init__.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/application/__init__.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/application/dates.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/application/digest.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/application/exceptions.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/application/files.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/application/json.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/application/payloads.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/application/query_params.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/application/time_utils.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/application/timezone.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/__init__.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/base_enum.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/constants.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/entities/__init__.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/entities/document.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/entities/document_metadata.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/entities/in_memory_document.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/entities/processing_case.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/entities/processing_case_filters.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/entities/processing_case_item.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/entities/processing_case_item_filters.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/entities/processing_documents.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/entities/processing_event.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/entities/scaling.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/enums/__init__.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/enums/common.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/enums/document.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/enums/processing_case.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/exceptions.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/interfaces/__init__.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/interfaces/scaling.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/repositories/__init__.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/repositories/document.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/repositories/processing_case.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/repositories/processing_case_item.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/infrastructure/__init__.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/infrastructure/documente_client.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/infrastructure/dynamo_table.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/infrastructure/lambdas.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/infrastructure/repositories/__init__.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/infrastructure/repositories/dynamo_document.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/infrastructure/repositories/dynamo_processing_case.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/infrastructure/repositories/dynamo_processing_case_item.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/infrastructure/repositories/http_document_processing.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/infrastructure/repositories/http_processing_case.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/infrastructure/repositories/http_processing_case_item.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/infrastructure/repositories/mem_document.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/infrastructure/repositories/mem_processing_case.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/infrastructure/s3_bucket.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/infrastructure/services/__init__.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/infrastructure/services/http_scaling.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/infrastructure/sqs_queue.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/presentation/__init__.py +0 -0
- {documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/presentation/presenters.py +0 -0
documente_shared-0.1.104/documente_shared/infrastructure/repositories/mem_processing_case_item.py
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
from dataclasses import dataclass
|
|
2
|
+
from typing import List, Optional
|
|
3
|
+
|
|
4
|
+
from documente_shared.domain.entities.processing_case_item import ProcessingCaseItem
|
|
5
|
+
from documente_shared.domain.entities.processing_case_item_filters import ProcessingCaseItemFilters
|
|
6
|
+
|
|
7
|
+
from documente_shared.domain.repositories.processing_case_item import ProcessingCaseItemRepository
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@dataclass
|
|
11
|
+
class MemoryProcessingCaseItemRepository(ProcessingCaseItemRepository):
|
|
12
|
+
collection: dict[str, ProcessingCaseItem] = None
|
|
13
|
+
|
|
14
|
+
def __post_init__(self):
|
|
15
|
+
self.collection = self.collection or {}
|
|
16
|
+
|
|
17
|
+
def find(
|
|
18
|
+
self,
|
|
19
|
+
uuid: str,
|
|
20
|
+
include_items: bool = False,
|
|
21
|
+
) -> Optional[ProcessingCaseItem]:
|
|
22
|
+
if uuid in self.collection:
|
|
23
|
+
return self.collection[uuid]
|
|
24
|
+
return None
|
|
25
|
+
|
|
26
|
+
def find_by_digest(self, digest: str) -> Optional[ProcessingCaseItem]:
|
|
27
|
+
for item in self.collection.values():
|
|
28
|
+
if item.digest == digest:
|
|
29
|
+
return item
|
|
30
|
+
return None
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def persist(self, instance: ProcessingCaseItem) -> ProcessingCaseItem:
|
|
34
|
+
self.collection[instance.uuid] = instance
|
|
35
|
+
return instance
|
|
36
|
+
|
|
37
|
+
def remove(self, instance: ProcessingCaseItem):
|
|
38
|
+
if instance.uuid in self.collection:
|
|
39
|
+
del self.collection[instance.uuid]
|
|
40
|
+
return None
|
|
41
|
+
|
|
42
|
+
def filter(self, filters: ProcessingCaseItemFilters) -> List[ProcessingCaseItem]:
|
|
43
|
+
return []
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/application/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/application/digest.py
RENAMED
|
File without changes
|
{documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/application/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/application/payloads.py
RENAMED
|
File without changes
|
{documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/application/query_params.py
RENAMED
|
File without changes
|
{documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/application/time_utils.py
RENAMED
|
File without changes
|
{documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/application/timezone.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/entities/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.103 → documente_shared-0.1.104}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/entities/scaling.py
RENAMED
|
File without changes
|
{documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/enums/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/enums/common.py
RENAMED
|
File without changes
|
{documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/enums/document.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/interfaces/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/domain/interfaces/scaling.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/infrastructure/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.103 → documente_shared-0.1.104}/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
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/infrastructure/s3_bucket.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/infrastructure/sqs_queue.py
RENAMED
|
File without changes
|
{documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/presentation/__init__.py
RENAMED
|
File without changes
|
{documente_shared-0.1.103 → documente_shared-0.1.104}/documente_shared/presentation/presenters.py
RENAMED
|
File without changes
|