documente_shared 0.1.28__tar.gz → 0.1.29__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.

Files changed (19) hide show
  1. {documente_shared-0.1.28 → documente_shared-0.1.29}/PKG-INFO +1 -1
  2. {documente_shared-0.1.28 → documente_shared-0.1.29}/documente_shared/domain/entities/document_process.py +8 -1
  3. {documente_shared-0.1.28 → documente_shared-0.1.29}/documente_shared/infrastructure/dynamo_repositories.py +2 -2
  4. {documente_shared-0.1.28 → documente_shared-0.1.29}/pyproject.toml +1 -1
  5. {documente_shared-0.1.28 → documente_shared-0.1.29}/README.md +0 -0
  6. {documente_shared-0.1.28 → documente_shared-0.1.29}/documente_shared/__init__.py +0 -0
  7. {documente_shared-0.1.28 → documente_shared-0.1.29}/documente_shared/application/__init__.py +0 -0
  8. {documente_shared-0.1.28 → documente_shared-0.1.29}/documente_shared/application/digest.py +0 -0
  9. {documente_shared-0.1.28 → documente_shared-0.1.29}/documente_shared/application/time_utils.py +0 -0
  10. {documente_shared-0.1.28 → documente_shared-0.1.29}/documente_shared/domain/__init__.py +0 -0
  11. {documente_shared-0.1.28 → documente_shared-0.1.29}/documente_shared/domain/base_enum.py +0 -0
  12. {documente_shared-0.1.28 → documente_shared-0.1.29}/documente_shared/domain/entities/__init__.py +0 -0
  13. {documente_shared-0.1.28 → documente_shared-0.1.29}/documente_shared/domain/entities/document_process_metadata.py +0 -0
  14. {documente_shared-0.1.28 → documente_shared-0.1.29}/documente_shared/domain/enums.py +0 -0
  15. {documente_shared-0.1.28 → documente_shared-0.1.29}/documente_shared/domain/repositories.py +0 -0
  16. {documente_shared-0.1.28 → documente_shared-0.1.29}/documente_shared/infrastructure/__init__.py +0 -0
  17. {documente_shared-0.1.28 → documente_shared-0.1.29}/documente_shared/infrastructure/dynamo_table.py +0 -0
  18. {documente_shared-0.1.28 → documente_shared-0.1.29}/documente_shared/infrastructure/s3_bucket.py +0 -0
  19. {documente_shared-0.1.28 → documente_shared-0.1.29}/documente_shared/infrastructure/sqs_queue.py +0 -0
@@ -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
@@ -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
  [tool.poetry]
2
2
  name = "documente_shared"
3
- version = "0.1.28"
3
+ version = "0.1.29"
4
4
  description = "Shared utilities for Documente AI projects"
5
5
  authors = ["Tech <tech@llamitai.com>"]
6
6
  license = "MIT"