documente_shared 0.1.43__tar.gz → 0.1.44__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.43 → documente_shared-0.1.44}/PKG-INFO +3 -3
- {documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/domain/entities/document_process.py +28 -4
- {documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/domain/enums.py +4 -0
- {documente_shared-0.1.43 → documente_shared-0.1.44}/pyproject.toml +3 -3
- {documente_shared-0.1.43 → documente_shared-0.1.44}/README.md +0 -0
- {documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/__init__.py +0 -0
- {documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/application/__init__.py +0 -0
- {documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/application/digest.py +0 -0
- {documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/application/exceptions.py +0 -0
- {documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/application/time_utils.py +0 -0
- {documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/domain/__init__.py +0 -0
- {documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/domain/base_enum.py +0 -0
- {documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/domain/entities/__init__.py +0 -0
- {documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/domain/entities/document_process_metadata.py +0 -0
- {documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/domain/repositories.py +0 -0
- {documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/infrastructure/__init__.py +0 -0
- {documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/infrastructure/dynamo_repositories.py +0 -0
- {documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/infrastructure/dynamo_table.py +0 -0
- {documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/infrastructure/s3_bucket.py +0 -0
- {documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/infrastructure/sqs_queue.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: documente_shared
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.44
|
|
4
4
|
Summary: Shared utilities for Documente AI projects
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Tech
|
|
@@ -11,8 +11,8 @@ Classifier: Programming Language :: Python :: 3
|
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.10
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
-
Requires-Dist: boto3 (>=1.34.
|
|
15
|
-
Requires-Dist: botocore (>=1.34.
|
|
14
|
+
Requires-Dist: boto3 (>=1.34.80,<2.0.0)
|
|
15
|
+
Requires-Dist: botocore (>=1.34.80,<2.0.0)
|
|
16
16
|
Requires-Dist: sentry-sdk (>=2.19.2,<3.0.0)
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
|
|
@@ -28,6 +28,8 @@ 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_json_path: Optional[str] = None
|
|
32
|
+
processed_json_bytes: Optional[bytes] = None
|
|
31
33
|
processed_metadata_path: Optional[str] = None
|
|
32
34
|
processing_time: Optional[Decimal] = None
|
|
33
35
|
uploaded_at: Optional[datetime] = None
|
|
@@ -108,6 +110,10 @@ class DocumentProcess(object):
|
|
|
108
110
|
def processed_xlsx_key(self) -> str:
|
|
109
111
|
return remove_slash_from_path(self.processed_xlsx_path)
|
|
110
112
|
|
|
113
|
+
@property
|
|
114
|
+
def processed_json_key(self) -> str:
|
|
115
|
+
return remove_slash_from_path(self.processed_json_path)
|
|
116
|
+
|
|
111
117
|
@property
|
|
112
118
|
def processed_metadata_key(self) -> str:
|
|
113
119
|
return remove_slash_from_path(self.processed_metadata_path)
|
|
@@ -153,6 +159,7 @@ class DocumentProcess(object):
|
|
|
153
159
|
),
|
|
154
160
|
'processed_csv_path': self.processed_csv_path,
|
|
155
161
|
'processed_xlsx_path': self.processed_xlsx_path,
|
|
162
|
+
'processed_json_path': self.processed_json_path,
|
|
156
163
|
'processed_metadata_path': self.processed_metadata_path,
|
|
157
164
|
'processing_time': (
|
|
158
165
|
str(self.processing_time.quantize(Decimal('0.00001')))
|
|
@@ -179,10 +186,26 @@ class DocumentProcess(object):
|
|
|
179
186
|
properties: List[str] = None,
|
|
180
187
|
):
|
|
181
188
|
instance_properties = properties or [
|
|
182
|
-
'status',
|
|
183
|
-
'
|
|
184
|
-
'
|
|
185
|
-
'
|
|
189
|
+
'status',
|
|
190
|
+
'metadata',
|
|
191
|
+
'file_path',
|
|
192
|
+
'file_bytes',
|
|
193
|
+
'category',
|
|
194
|
+
'sub_category',
|
|
195
|
+
'processed_csv_path',
|
|
196
|
+
'processed_csv_bytes',
|
|
197
|
+
'processed_xlsx_path',
|
|
198
|
+
'processed_xlsx_bytes',
|
|
199
|
+
'processed_json_path',
|
|
200
|
+
'processed_json_bytes',
|
|
201
|
+
'processed_metadata_path',
|
|
202
|
+
'processing_time',
|
|
203
|
+
'uploaded_at',
|
|
204
|
+
'enqueued_at',
|
|
205
|
+
'started_at',
|
|
206
|
+
'failed_at',
|
|
207
|
+
'failed_reason',
|
|
208
|
+
'completed_at',
|
|
186
209
|
]
|
|
187
210
|
for _property in instance_properties:
|
|
188
211
|
property_value = getattr(new_instance, _property)
|
|
@@ -207,6 +230,7 @@ class DocumentProcess(object):
|
|
|
207
230
|
),
|
|
208
231
|
processed_csv_path=data.get('processed_csv_path'),
|
|
209
232
|
processed_xlsx_path=data.get('processed_xlsx_path'),
|
|
233
|
+
processed_json_path=data.get('processed_json_path'),
|
|
210
234
|
processed_metadata_path=data.get('processed_metadata_path'),
|
|
211
235
|
processing_time=(
|
|
212
236
|
Decimal(data.get('processing_time'))
|
|
@@ -13,6 +13,7 @@ class DocumentProcessStatus(BaseEnum):
|
|
|
13
13
|
|
|
14
14
|
class DocumentProcessCategory(BaseEnum):
|
|
15
15
|
CIRCULAR = 'CIRCULAR'
|
|
16
|
+
DESGRAVAMEN = 'DESGRAVAMEN'
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
class DocumentProcessSubCategory(BaseEnum):
|
|
@@ -22,3 +23,6 @@ class DocumentProcessSubCategory(BaseEnum):
|
|
|
22
23
|
CC_INFORMATIVA = 'CC_INFORMATIVA'
|
|
23
24
|
CC_RETENCION_SUSPENSION_REMISION = 'CC_RETENCION_SUSPENSION_REMISION'
|
|
24
25
|
|
|
26
|
+
# Desgravamenes
|
|
27
|
+
DS_CREDISEGUROS = 'DS_CREDISEGUROS'
|
|
28
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "documente_shared"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.44"
|
|
4
4
|
description = "Shared utilities for Documente AI projects"
|
|
5
5
|
authors = ["Tech <tech@llamitai.com>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -8,8 +8,8 @@ readme = "README.md"
|
|
|
8
8
|
|
|
9
9
|
[tool.poetry.dependencies]
|
|
10
10
|
python = ">=3.10,<3.13"
|
|
11
|
-
boto3 = "^1.34.
|
|
12
|
-
botocore = "^1.34.
|
|
11
|
+
boto3 = "^1.34.80"
|
|
12
|
+
botocore = "^1.34.80"
|
|
13
13
|
sentry-sdk = "^2.19.2"
|
|
14
14
|
|
|
15
15
|
[tool.poetry.dev-dependencies]
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/application/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/application/exceptions.py
RENAMED
|
File without changes
|
{documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/application/time_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/domain/entities/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/infrastructure/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/infrastructure/dynamo_table.py
RENAMED
|
File without changes
|
{documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/infrastructure/s3_bucket.py
RENAMED
|
File without changes
|
{documente_shared-0.1.43 → documente_shared-0.1.44}/documente_shared/infrastructure/sqs_queue.py
RENAMED
|
File without changes
|