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

@@ -28,6 +28,7 @@ class DocumentProcess(object):
28
28
  processed_csv_bytes: Optional[bytes] = None
29
29
  processed_xlsx_path: Optional[str] = None
30
30
  processed_xlsx_bytes: Optional[bytes] = None
31
+ processed_metadata_path: Optional[str] = None
31
32
  processing_time: Optional[Decimal] = None
32
33
  uploaded_at: Optional[datetime] = None
33
34
  enqueued_at: Optional[datetime] = None
@@ -98,6 +99,10 @@ class DocumentProcess(object):
98
99
  def processed_xlsx_key(self) -> str:
99
100
  return remove_slash_from_path(self.processed_xlsx_path)
100
101
 
102
+ @property
103
+ def processed_metadata_key(self) -> str:
104
+ return remove_slash_from_path(self.processed_metadata_path)
105
+
101
106
  @property
102
107
  def extended_filename(self) -> str:
103
108
  return self.file_path.split('/')[-1]
@@ -123,6 +128,7 @@ class DocumentProcess(object):
123
128
  ),
124
129
  'processed_csv_path': self.processed_csv_path,
125
130
  'processed_xlsx_path': self.processed_xlsx_path,
131
+ 'processed_metadata_path': self.processed_metadata_path,
126
132
  'processing_time': (
127
133
  str(self.processing_time)
128
134
  if self.processing_time else None
@@ -148,7 +154,7 @@ class DocumentProcess(object):
148
154
  ):
149
155
  instance_properties = properties or [
150
156
  'status', 'metadata', 'file_path', 'file_bytes', 'category', 'sub_category',
151
- 'processed_csv_path', 'processed_csv_bytes', 'processed_xlsx_path',
157
+ 'processed_csv_path', 'processed_csv_bytes', 'processed_xlsx_path', 'processed_metadata_path',
152
158
  'processed_xlsx_bytes', 'processing_time', 'uploaded_at',
153
159
  'enqueued_at', 'started_at', 'failed_at', 'completed_at',
154
160
  ]
@@ -175,6 +181,7 @@ class DocumentProcess(object):
175
181
  ),
176
182
  processed_csv_path=data.get('processed_csv_path'),
177
183
  processed_xlsx_path=data.get('processed_xlsx_path'),
184
+ processed_metadata_path=data.get('processed_metadata_path'),
178
185
  processing_time=(
179
186
  Decimal(data.get('processing_time'))
180
187
  if data.get('processing_time') else None
@@ -3,7 +3,7 @@ import boto3
3
3
  from dataclasses import dataclass
4
4
  from typing import Optional
5
5
 
6
- from documente_shared.domain.entities import remove_slash_from_path
6
+ from documente_shared.domain.entities.document_process import remove_slash_from_path
7
7
 
8
8
 
9
9
  def remove_none_values(data: dict) -> dict: # noqa: WPS110
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: documente_shared
3
- Version: 0.1.30
3
+ Version: 0.1.32
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=w70O4zYic_QWiVMPPRlQH_1WcM69q_PSIHwjYybK0f8,6901
8
+ documente_shared/domain/entities/document_process.py,sha256=l74WKwUZXuu5JbVV2HUGVdxLtbsZ4KQ2XsY3px7pBL4,7248
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=KEYbJKsfrRkJBCIjXQA3S5jdNqE5lUcQuvHiZig4B6M,526
12
12
  documente_shared/infrastructure/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  documente_shared/infrastructure/dynamo_repositories.py,sha256=WVyubQO8pUwm_y6VYU2n3fN4eofBXLBRzY1oehotp80,784
14
14
  documente_shared/infrastructure/dynamo_table.py,sha256=Lod8vwUCGX65SNH_8hvlpG6rRUYb4jfZqoFHD1YloAA,2096
15
- documente_shared/infrastructure/s3_bucket.py,sha256=RwcEyYPUUXQ0fFR-Zr1KfkFGGpO6qAIfZ70CWHu1V8M,1923
15
+ documente_shared/infrastructure/s3_bucket.py,sha256=Nf4bHSC3TJeaKvOQSVtV1hG8dWqEZZnA-JWU0PNTw24,1940
16
16
  documente_shared/infrastructure/sqs_queue.py,sha256=PSiTAnjXvQ-W-9mzLpH2UjbQJTvYkMiaxNaMecF-cR4,1505
17
- documente_shared-0.1.30.dist-info/METADATA,sha256=vd7pqVol05syRZVsUCF0iaJE6gLaEIh2GhbJBR210Lc,640
18
- documente_shared-0.1.30.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
19
- documente_shared-0.1.30.dist-info/RECORD,,
17
+ documente_shared-0.1.32.dist-info/METADATA,sha256=RLpTiAMGDfRxI5Z95GZDdS9k-2HE1nbtFvdVYdnuKIM,640
18
+ documente_shared-0.1.32.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
19
+ documente_shared-0.1.32.dist-info/RECORD,,