documente_shared 0.1.44__tar.gz → 0.1.45__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.44 → documente_shared-0.1.45}/PKG-INFO +1 -1
- {documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/domain/entities/document_process.py +5 -0
- {documente_shared-0.1.44 → documente_shared-0.1.45}/pyproject.toml +1 -1
- {documente_shared-0.1.44 → documente_shared-0.1.45}/README.md +0 -0
- {documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/__init__.py +0 -0
- {documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/application/__init__.py +0 -0
- {documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/application/digest.py +0 -0
- {documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/application/exceptions.py +0 -0
- {documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/application/time_utils.py +0 -0
- {documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/domain/__init__.py +0 -0
- {documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/domain/base_enum.py +0 -0
- {documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/domain/entities/__init__.py +0 -0
- {documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/domain/entities/document_process_metadata.py +0 -0
- {documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/domain/enums.py +0 -0
- {documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/domain/repositories.py +0 -0
- {documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/infrastructure/__init__.py +0 -0
- {documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/infrastructure/dynamo_repositories.py +0 -0
- {documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/infrastructure/dynamo_table.py +0 -0
- {documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/infrastructure/s3_bucket.py +0 -0
- {documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/infrastructure/sqs_queue.py +0 -0
|
@@ -32,6 +32,7 @@ class DocumentProcess(object):
|
|
|
32
32
|
processed_json_bytes: Optional[bytes] = None
|
|
33
33
|
processed_metadata_path: Optional[str] = None
|
|
34
34
|
processing_time: Optional[Decimal] = None
|
|
35
|
+
issued_at: Optional[datetime] = None
|
|
35
36
|
uploaded_at: Optional[datetime] = None
|
|
36
37
|
enqueued_at: Optional[datetime] = None
|
|
37
38
|
started_at: Optional[datetime] = None
|
|
@@ -135,6 +136,7 @@ class DocumentProcess(object):
|
|
|
135
136
|
self.digest == other.digest
|
|
136
137
|
and self.status == other.status
|
|
137
138
|
and self.file_path == other.file_path
|
|
139
|
+
and self.issued_at == other.issued_at
|
|
138
140
|
and self.uploaded_at == other.uploaded_at
|
|
139
141
|
and self.enqueued_at == other.enqueued_at
|
|
140
142
|
and self.started_at == other.started_at
|
|
@@ -165,6 +167,7 @@ class DocumentProcess(object):
|
|
|
165
167
|
str(self.processing_time.quantize(Decimal('0.00001')))
|
|
166
168
|
if self.processing_time else None
|
|
167
169
|
),
|
|
170
|
+
'issued_at': self.issued_at.isoformat() if self.issued_at else None,
|
|
168
171
|
'uploaded_at': self.uploaded_at.isoformat() if self.uploaded_at else None,
|
|
169
172
|
'enqueued_at': self.enqueued_at.isoformat() if self.enqueued_at else None,
|
|
170
173
|
'started_at': self.started_at.isoformat() if self.started_at else None,
|
|
@@ -200,6 +203,7 @@ class DocumentProcess(object):
|
|
|
200
203
|
'processed_json_bytes',
|
|
201
204
|
'processed_metadata_path',
|
|
202
205
|
'processing_time',
|
|
206
|
+
'issued_at',
|
|
203
207
|
'uploaded_at',
|
|
204
208
|
'enqueued_at',
|
|
205
209
|
'started_at',
|
|
@@ -236,6 +240,7 @@ class DocumentProcess(object):
|
|
|
236
240
|
Decimal(data.get('processing_time'))
|
|
237
241
|
if data.get('processing_time') else None
|
|
238
242
|
),
|
|
243
|
+
issued_at=get_datetime_from_data(input_datetime=data.get('issued_at')),
|
|
239
244
|
uploaded_at=get_datetime_from_data(input_datetime=data.get('uploaded_at')),
|
|
240
245
|
enqueued_at=get_datetime_from_data(input_datetime=data.get('enqueued_at')),
|
|
241
246
|
started_at=get_datetime_from_data(input_datetime=data.get('started_at')),
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/application/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/application/exceptions.py
RENAMED
|
File without changes
|
{documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/application/time_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/domain/entities/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/infrastructure/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/infrastructure/dynamo_table.py
RENAMED
|
File without changes
|
{documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/infrastructure/s3_bucket.py
RENAMED
|
File without changes
|
{documente_shared-0.1.44 → documente_shared-0.1.45}/documente_shared/infrastructure/sqs_queue.py
RENAMED
|
File without changes
|