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

@@ -135,6 +135,12 @@ class DocumentProcess(object):
135
135
  'metadata_items': [metadata.to_dict for metadata in self.metadata_items],
136
136
  }
137
137
 
138
+ @property
139
+ def to_simple_dict(self) -> dict:
140
+ simple_dict = self.to_dict.copy()
141
+ simple_dict.pop('metadata_items')
142
+ return simple_dict
143
+
138
144
  def overload(
139
145
  self,
140
146
  new_instance: 'DocumentProcess',
@@ -182,4 +188,5 @@ class DocumentProcess(object):
182
188
  DocumentProcessMetadata.from_dict(metadata)
183
189
  for metadata in data.get('metadata_items', [])
184
190
  ],
185
- )
191
+ )
192
+
@@ -1,6 +1,6 @@
1
1
  from typing import Optional
2
2
 
3
- from documente_shared.domain.entities import DocumentProcess
3
+ from documente_shared.domain.entities.document_process import DocumentProcess
4
4
  from documente_shared.domain.repositories import DocumentProcessRepository
5
5
  from documente_shared.infrastructure.dynamo_table import DynamoDBTable
6
6
 
@@ -17,7 +17,7 @@ class DynamoDocumentProcessRepository(
17
17
  return None
18
18
 
19
19
  def persist(self, instance: DocumentProcess) -> DocumentProcess:
20
- self.put(instance.to_dict)
20
+ self.put(instance.to_simple_dict)
21
21
  return instance
22
22
 
23
23
  def remove(self, instance: DocumentProcess):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: documente_shared
3
- Version: 0.1.28
3
+ Version: 0.1.29
4
4
  Summary: Shared utilities for Documente AI projects
5
5
  License: MIT
6
6
  Author: Tech
@@ -5,15 +5,15 @@ documente_shared/application/time_utils.py,sha256=XDH27cKgoTFO8ad1JgrxKaeT7sZ1fd
5
5
  documente_shared/domain/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  documente_shared/domain/base_enum.py,sha256=DojAfn-zQdtjtImeHUpBzE6TBTm07XrbMOdW3h8RVd8,1449
7
7
  documente_shared/domain/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- documente_shared/domain/entities/document_process.py,sha256=ioWAyXvz-ORgkaZZzPsBibSOM6Kpo_ScIhQInNjHf7M,6735
8
+ documente_shared/domain/entities/document_process.py,sha256=w70O4zYic_QWiVMPPRlQH_1WcM69q_PSIHwjYybK0f8,6901
9
9
  documente_shared/domain/entities/document_process_metadata.py,sha256=rBHkDkoKwrxReKtXIScU1vrCO_6bg2LwWhrtXMcQ8TA,2351
10
10
  documente_shared/domain/enums.py,sha256=s3bFDkpplWvJWNpUwPOkC9a3OYUYsx8uTusN_FrzNQk,463
11
11
  documente_shared/domain/repositories.py,sha256=EekvB2BE4AnT5myEhU3DfwHfF9MkNJZRbqRVGFxCEWM,509
12
12
  documente_shared/infrastructure/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
- documente_shared/infrastructure/dynamo_repositories.py,sha256=WULK8_N7PjA397vXTZd6QB7_Kw6dEXHaVMcd9nEvSvs,760
13
+ documente_shared/infrastructure/dynamo_repositories.py,sha256=WVyubQO8pUwm_y6VYU2n3fN4eofBXLBRzY1oehotp80,784
14
14
  documente_shared/infrastructure/dynamo_table.py,sha256=Lod8vwUCGX65SNH_8hvlpG6rRUYb4jfZqoFHD1YloAA,2096
15
15
  documente_shared/infrastructure/s3_bucket.py,sha256=RwcEyYPUUXQ0fFR-Zr1KfkFGGpO6qAIfZ70CWHu1V8M,1923
16
16
  documente_shared/infrastructure/sqs_queue.py,sha256=PSiTAnjXvQ-W-9mzLpH2UjbQJTvYkMiaxNaMecF-cR4,1505
17
- documente_shared-0.1.28.dist-info/METADATA,sha256=2Q2xK6OmOJzCJjFWg-sJ_Cyoz0a_ZcLoq0RKptXQ4q8,640
18
- documente_shared-0.1.28.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
19
- documente_shared-0.1.28.dist-info/RECORD,,
17
+ documente_shared-0.1.29.dist-info/METADATA,sha256=tBvUSPcn9i7tVGnxQXl1Pqo-LAsVQlnzcNfF0TdBfy8,640
18
+ documente_shared-0.1.29.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
19
+ documente_shared-0.1.29.dist-info/RECORD,,