documente_shared 0.1.30__tar.gz → 0.1.32__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.30 → documente_shared-0.1.32}/PKG-INFO +1 -1
- {documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/domain/entities/document_process.py +8 -1
- {documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/infrastructure/s3_bucket.py +1 -1
- {documente_shared-0.1.30 → documente_shared-0.1.32}/pyproject.toml +1 -1
- {documente_shared-0.1.30 → documente_shared-0.1.32}/README.md +0 -0
- {documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/__init__.py +0 -0
- {documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/application/__init__.py +0 -0
- {documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/application/digest.py +0 -0
- {documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/application/time_utils.py +0 -0
- {documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/domain/__init__.py +0 -0
- {documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/domain/base_enum.py +0 -0
- {documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/domain/entities/__init__.py +0 -0
- {documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/domain/entities/document_process_metadata.py +0 -0
- {documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/domain/enums.py +0 -0
- {documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/domain/repositories.py +0 -0
- {documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/infrastructure/__init__.py +0 -0
- {documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/infrastructure/dynamo_repositories.py +0 -0
- {documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/infrastructure/dynamo_table.py +0 -0
- {documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/infrastructure/sqs_queue.py +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
|
{documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/infrastructure/s3_bucket.py
RENAMED
|
@@ -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
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/application/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/application/time_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/domain/entities/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/infrastructure/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/infrastructure/dynamo_table.py
RENAMED
|
File without changes
|
{documente_shared-0.1.30 → documente_shared-0.1.32}/documente_shared/infrastructure/sqs_queue.py
RENAMED
|
File without changes
|