documente_shared 0.1.21__py3-none-any.whl → 0.1.23__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.

@@ -77,16 +77,20 @@ class DocumentProcess(object):
77
77
  def deleted(self):
78
78
  self.status = DocumentProcessStatus.DELETED
79
79
 
80
+ @property
81
+ def extended_filename(self) -> str:
82
+ return self.file_path.split('/')[-1]
83
+
80
84
  @property
81
85
  def filename(self) -> str:
82
- filename_with_extension = self.file_path.split('/')[-1]
86
+ filename_with_extension = self.extended_filename
83
87
  return filename_with_extension.split('.')[0]
84
88
 
85
89
  @property
86
90
  def to_dict(self) -> dict:
87
91
  return {
88
92
  'digest': self.digest,
89
- 'status': self.status.value,
93
+ 'status': str(self.status),
90
94
  'file_path': self.file_path,
91
95
  'category': (
92
96
  str(self.category)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: documente_shared
3
- Version: 0.1.21
3
+ Version: 0.1.23
4
4
  Summary: Shared utilities for Documente AI projects
5
5
  License: MIT
6
6
  Author: Tech
@@ -4,7 +4,7 @@ documente_shared/application/digest.py,sha256=Um6E8WfFri2_lly4RFWydJyvSfPZGFcOX-
4
4
  documente_shared/application/time_utils.py,sha256=XDH27cKgoTFO8ad1JgrxKaeT7sZ1fduuJqLkvHUjy-Q,309
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
- documente_shared/domain/entities.py,sha256=dTVyhBKbQP7rRuL4UlHBeJ4eRdFiCuw7yADzs1KfC30,5651
7
+ documente_shared/domain/entities.py,sha256=zNYFjxxel5uEGAOqLk5Rs8OwHQlLMhgL2SmUnwqnKpI,5743
8
8
  documente_shared/domain/enums.py,sha256=wrMpM-1KgXFkd-He-3onNcqR3Zf53Q-_axjXGjx7MIY,435
9
9
  documente_shared/domain/repositories.py,sha256=EekvB2BE4AnT5myEhU3DfwHfF9MkNJZRbqRVGFxCEWM,509
10
10
  documente_shared/infrastructure/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -12,6 +12,6 @@ documente_shared/infrastructure/dynamo_repositories.py,sha256=A26S6ghyAsjKk8ySXI
12
12
  documente_shared/infrastructure/dynamo_table.py,sha256=5yF5EVQkHTZe4tLYZsfEDS8tp_iorMlMjNu-qn3Oj9E,2095
13
13
  documente_shared/infrastructure/s3_bucket.py,sha256=s4VWcl0HK6uhjjZmKefOYW5A3Dx74R9KCuMmXQKUXnQ,1582
14
14
  documente_shared/infrastructure/sqs_queue.py,sha256=PSiTAnjXvQ-W-9mzLpH2UjbQJTvYkMiaxNaMecF-cR4,1505
15
- documente_shared-0.1.21.dist-info/METADATA,sha256=zeqy0ZUtTWGq60hih58n4yGbRgax5kn-8tEnpjGuE8Q,640
16
- documente_shared-0.1.21.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
17
- documente_shared-0.1.21.dist-info/RECORD,,
15
+ documente_shared-0.1.23.dist-info/METADATA,sha256=3IgMXZmsknUIO5xkfAXwGltpUj5XhnG3NxTz_Js-IpE,640
16
+ documente_shared-0.1.23.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
17
+ documente_shared-0.1.23.dist-info/RECORD,,