documente_shared 0.1.31__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.
- documente_shared/domain/entities/document_process.py +8 -1
- {documente_shared-0.1.31.dist-info → documente_shared-0.1.32.dist-info}/METADATA +1 -1
- {documente_shared-0.1.31.dist-info → documente_shared-0.1.32.dist-info}/RECORD +4 -4
- {documente_shared-0.1.31.dist-info → documente_shared-0.1.32.dist-info}/WHEEL +0 -0
|
@@ -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
|
|
@@ -5,7 +5,7 @@ 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=
|
|
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
|
|
@@ -14,6 +14,6 @@ documente_shared/infrastructure/dynamo_repositories.py,sha256=WVyubQO8pUwm_y6VYU
|
|
|
14
14
|
documente_shared/infrastructure/dynamo_table.py,sha256=Lod8vwUCGX65SNH_8hvlpG6rRUYb4jfZqoFHD1YloAA,2096
|
|
15
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.
|
|
18
|
-
documente_shared-0.1.
|
|
19
|
-
documente_shared-0.1.
|
|
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,,
|
|
File without changes
|