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

@@ -39,14 +39,10 @@ class InMemoryDocument(object):
39
39
 
40
40
  @property
41
41
  def to_dict(self) -> dict:
42
- data = dict()
43
- if self.file_path:
44
- data['file_path'] = remove_slash_from_path(self.file_path)
45
- if self.file_bytes:
46
- data['file_bytes'] = self.file_bytes.decode('utf-8')
47
- if self.file_base64:
48
- data['file_base64'] = self.file_base64
49
- return data
42
+ return {
43
+ "file_path": self.file_path,
44
+ "file_base64": self.file_base64,
45
+ }
50
46
 
51
47
  @classmethod
52
48
  def from_dict(cls, data: dict):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: documente_shared
3
- Version: 0.1.98
3
+ Version: 0.1.99
4
4
  Summary: Shared utilities for Documente AI projects
5
5
  License: MIT
6
6
  Author: Tech
@@ -14,7 +14,7 @@ documente_shared/domain/constants.py,sha256=NG5BGaXBr_FnzudjTRPxpDpyiSDdaB_PLCdl
14
14
  documente_shared/domain/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  documente_shared/domain/entities/document.py,sha256=xGZdrqqBkbvDbgoxUvIck6FplXjwLcZzFkcEsuh80u8,12819
16
16
  documente_shared/domain/entities/document_metadata.py,sha256=ygyFIC5qwxlm8DUM5kvVFny9zJfPQS8vNLM2br5XsQ8,2353
17
- documente_shared/domain/entities/in_memory_document.py,sha256=mOhylBu1k1Ke7G2NO0UHH7kCVp-H2PTa_4QZCNgUaAA,2161
17
+ documente_shared/domain/entities/in_memory_document.py,sha256=kNszkMfWtmPQHRrARkAqMOUgre-oAPq-bcW-Z-GYoA8,1961
18
18
  documente_shared/domain/entities/processing_case.py,sha256=2wD256_ra5szb8LVmGsauTsFTbkAqT1srOv5zuZQXgA,5640
19
19
  documente_shared/domain/entities/processing_case_filters.py,sha256=harKyu7QEuL1bI_Z8_UxkVCMo5r9vHeNHyi_Ja07vjs,1953
20
20
  documente_shared/domain/entities/processing_case_item.py,sha256=VbVOqAUHtcCHfAF5VpG47IWkM8t6eSX4VuDifJe7ZzA,10108
@@ -51,6 +51,6 @@ documente_shared/infrastructure/services/http_scaling.py,sha256=cIo-61nfIwbtO86E
51
51
  documente_shared/infrastructure/sqs_queue.py,sha256=KZWeHZ9zmXmrxoNpOQX7GEdDhZ1knbPXgwSwFwJblGg,1504
52
52
  documente_shared/presentation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
53
  documente_shared/presentation/presenters.py,sha256=GGAEwefmjCIVepsUA2oZOVLxXbhhiISPM0Jgt6dT6O0,423
54
- documente_shared-0.1.98.dist-info/METADATA,sha256=KSDKIiBBkgAI5X4O7h0kad0DhXm9CgLqxCzP3-EVRN0,920
55
- documente_shared-0.1.98.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
56
- documente_shared-0.1.98.dist-info/RECORD,,
54
+ documente_shared-0.1.99.dist-info/METADATA,sha256=09wpHFc5YW6xO2679vIMvj-UU-VWNjoewbz7YOcgYo4,920
55
+ documente_shared-0.1.99.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
56
+ documente_shared-0.1.99.dist-info/RECORD,,