documente_shared 0.1.63__tar.gz → 0.1.65__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.63 → documente_shared-0.1.65}/PKG-INFO +1 -1
- {documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/domain/entities/document.py +9 -0
- {documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/domain/entities/document_metadata.py +0 -1
- {documente_shared-0.1.63 → documente_shared-0.1.65}/pyproject.toml +1 -1
- {documente_shared-0.1.63 → documente_shared-0.1.65}/README.md +0 -0
- {documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/__init__.py +0 -0
- {documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/application/__init__.py +0 -0
- {documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/application/digest.py +0 -0
- {documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/application/exceptions.py +0 -0
- {documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/application/time_utils.py +0 -0
- {documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/application/timezone.py +0 -0
- {documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/domain/__init__.py +0 -0
- {documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/domain/base_enum.py +0 -0
- {documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/domain/constants.py +0 -0
- {documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/domain/entities/__init__.py +0 -0
- {documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/domain/enums.py +0 -0
- {documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/domain/repositories.py +0 -0
- {documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/infrastructure/__init__.py +0 -0
- {documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/infrastructure/dynamo_repositories.py +0 -0
- {documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/infrastructure/dynamo_table.py +0 -0
- {documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/infrastructure/s3_bucket.py +0 -0
- {documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/infrastructure/sqs_queue.py +0 -0
{documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/domain/entities/document.py
RENAMED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import json
|
|
1
2
|
from dataclasses import dataclass
|
|
2
3
|
from datetime import datetime, tzinfo
|
|
3
4
|
from decimal import Decimal
|
|
@@ -123,6 +124,14 @@ class DocumentProcessing(object):
|
|
|
123
124
|
filename_with_extension = self.extended_filename
|
|
124
125
|
return filename_with_extension.split('.')[0]
|
|
125
126
|
|
|
127
|
+
@property
|
|
128
|
+
def metadata_items_bytes(self) -> bytes:
|
|
129
|
+
metadata_items = [
|
|
130
|
+
metadata_item.to_dict
|
|
131
|
+
for metadata_item in self.metadata_items
|
|
132
|
+
]
|
|
133
|
+
return json.dumps(metadata_items).encode('utf-8')
|
|
134
|
+
|
|
126
135
|
@property
|
|
127
136
|
def has_original_file(self) -> bool:
|
|
128
137
|
return bool(self.file_path) and self.file_bytes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/application/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/application/exceptions.py
RENAMED
|
File without changes
|
{documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/application/time_utils.py
RENAMED
|
File without changes
|
{documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/application/timezone.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/domain/entities/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/infrastructure/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/infrastructure/dynamo_table.py
RENAMED
|
File without changes
|
{documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/infrastructure/s3_bucket.py
RENAMED
|
File without changes
|
{documente_shared-0.1.63 → documente_shared-0.1.65}/documente_shared/infrastructure/sqs_queue.py
RENAMED
|
File without changes
|