documente_shared 0.1.21__tar.gz → 0.1.23__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.

Files changed (17) hide show
  1. {documente_shared-0.1.21 → documente_shared-0.1.23}/PKG-INFO +1 -1
  2. {documente_shared-0.1.21 → documente_shared-0.1.23}/documente_shared/domain/entities.py +6 -2
  3. {documente_shared-0.1.21 → documente_shared-0.1.23}/pyproject.toml +1 -1
  4. {documente_shared-0.1.21 → documente_shared-0.1.23}/README.md +0 -0
  5. {documente_shared-0.1.21 → documente_shared-0.1.23}/documente_shared/__init__.py +0 -0
  6. {documente_shared-0.1.21 → documente_shared-0.1.23}/documente_shared/application/__init__.py +0 -0
  7. {documente_shared-0.1.21 → documente_shared-0.1.23}/documente_shared/application/digest.py +0 -0
  8. {documente_shared-0.1.21 → documente_shared-0.1.23}/documente_shared/application/time_utils.py +0 -0
  9. {documente_shared-0.1.21 → documente_shared-0.1.23}/documente_shared/domain/__init__.py +0 -0
  10. {documente_shared-0.1.21 → documente_shared-0.1.23}/documente_shared/domain/base_enum.py +0 -0
  11. {documente_shared-0.1.21 → documente_shared-0.1.23}/documente_shared/domain/enums.py +0 -0
  12. {documente_shared-0.1.21 → documente_shared-0.1.23}/documente_shared/domain/repositories.py +0 -0
  13. {documente_shared-0.1.21 → documente_shared-0.1.23}/documente_shared/infrastructure/__init__.py +0 -0
  14. {documente_shared-0.1.21 → documente_shared-0.1.23}/documente_shared/infrastructure/dynamo_repositories.py +0 -0
  15. {documente_shared-0.1.21 → documente_shared-0.1.23}/documente_shared/infrastructure/dynamo_table.py +0 -0
  16. {documente_shared-0.1.21 → documente_shared-0.1.23}/documente_shared/infrastructure/s3_bucket.py +0 -0
  17. {documente_shared-0.1.21 → documente_shared-0.1.23}/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.21
3
+ Version: 0.1.23
4
4
  Summary: Shared utilities for Documente AI projects
5
5
  License: MIT
6
6
  Author: Tech
@@ -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
  [tool.poetry]
2
2
  name = "documente_shared"
3
- version = "0.1.21"
3
+ version = "0.1.23"
4
4
  description = "Shared utilities for Documente AI projects"
5
5
  authors = ["Tech <tech@llamitai.com>"]
6
6
  license = "MIT"