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

@@ -6,7 +6,7 @@ from requests import Response
6
6
 
7
7
  from documente_shared.application.payloads import camel_to_snake
8
8
  from documente_shared.domain.entities.document import DocumentProcessing
9
- from documente_shared.domain.enums.document import DocumentProcessingStatus, DocumentProcessingCategory
9
+ from documente_shared.domain.enums.document import DocumentProcessingStatus
10
10
  from documente_shared.domain.repositories.document import DocumentProcessingRepository
11
11
  from documente_shared.infrastructure.documente_client import DocumenteClientMixin
12
12
 
@@ -17,7 +17,7 @@ class HttpDocumentProcessingRepository(
17
17
  DocumentProcessingRepository,
18
18
  ):
19
19
  def find(self, digest: str) -> Optional[DocumentProcessing]:
20
- response = self.session.get(f"{self.api_url}/documents/{digest}/")
20
+ response = self.session.get(f"{self.api_url}/v1/documents/{digest}/")
21
21
  if response.status_code == 200:
22
22
  return self._build_document_processing(response)
23
23
  return None
@@ -25,7 +25,7 @@ class HttpDocumentProcessingRepository(
25
25
  def persist(self, instance: DocumentProcessing) -> DocumentProcessing:
26
26
  logger.info(f"PERSISTING_DOCUMENT: data={instance.to_simple_dict}")
27
27
  response = self.session.put(
28
- url=f"{self.api_url}/documents/{instance.digest}/",
28
+ url=f"{self.api_url}/v1/documents/{instance.digest}/",
29
29
  json=instance.to_simple_dict,
30
30
  )
31
31
  if response.status_code in [200, 201]:
@@ -33,10 +33,10 @@ class HttpDocumentProcessingRepository(
33
33
  return self._build_document_processing(response)
34
34
 
35
35
  def remove(self, instance: DocumentProcessing):
36
- self.session.delete(f"{self.api_url}/documents/{instance.digest}/")
36
+ self.session.delete(f"{self.api_url}/v1/documents/{instance.digest}/")
37
37
 
38
38
  def filter(self, statuses: List[DocumentProcessingStatus]) -> List[DocumentProcessing]:
39
- response = self.session.get(f"{self.api_url}/documents/?statuses={statuses}")
39
+ response = self.session.get(f"{self.api_url}/v1/documents/?statuses={statuses}")
40
40
  if response.status_code == 200:
41
41
  raw_response = response.json()
42
42
  return [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: documente_shared
3
- Version: 0.1.108
3
+ Version: 0.1.109
4
4
  Summary: Shared utilities for Documente AI projects
5
5
  License: MIT
6
6
  Author: Tech
@@ -43,7 +43,7 @@ documente_shared/infrastructure/repositories/__init__.py,sha256=47DEQpj8HBSa-_TI
43
43
  documente_shared/infrastructure/repositories/dynamo_document.py,sha256=_Yp4gtA-n-hJ2w2wAM5BMCs2Mf46Q2Kq3eHqlxudkL4,1443
44
44
  documente_shared/infrastructure/repositories/dynamo_processing_case.py,sha256=jkTVHThKHshLI53OV7ivK-WchFoAZTnaXlgh_1OX52k,1446
45
45
  documente_shared/infrastructure/repositories/dynamo_processing_case_item.py,sha256=B2ElsASpXNRkwwjdCqXyvDU-LBrLNdwPfHLMvvG9c-Y,1729
46
- documente_shared/infrastructure/repositories/http_document_processing.py,sha256=cMAaDO15_j2bq2J0UHqLk-OuhN76WJPqb4ExRqTxZBw,2294
46
+ documente_shared/infrastructure/repositories/http_document.py,sha256=b-Awkvx9IYmGCUU-oO33OL2HY9lzx6WpBjrh61MHKqk,2278
47
47
  documente_shared/infrastructure/repositories/http_processing_case.py,sha256=zBHscJSlsqTLT-NrUT3spfLgS8ZB5Tv9IokCB2Iyvpo,2350
48
48
  documente_shared/infrastructure/repositories/http_processing_case_item.py,sha256=0L8JMkia1-kyIIXydaLtkrAPbW8GgzzPWE3iZ-y51KU,3085
49
49
  documente_shared/infrastructure/repositories/mem_document.py,sha256=jg4rIjgSZijymjY9o7Q1lLcaiW9h-O8j6XljO1bJI7c,1299
@@ -55,6 +55,6 @@ documente_shared/infrastructure/services/http_scaling.py,sha256=cIo-61nfIwbtO86E
55
55
  documente_shared/infrastructure/sqs_queue.py,sha256=KZWeHZ9zmXmrxoNpOQX7GEdDhZ1knbPXgwSwFwJblGg,1504
56
56
  documente_shared/presentation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
57
57
  documente_shared/presentation/presenters.py,sha256=GGAEwefmjCIVepsUA2oZOVLxXbhhiISPM0Jgt6dT6O0,423
58
- documente_shared-0.1.108.dist-info/METADATA,sha256=zQzQnLTguvzfldOwccU0YWyG2icaIJMffJWCyMFfsQ4,963
59
- documente_shared-0.1.108.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
60
- documente_shared-0.1.108.dist-info/RECORD,,
58
+ documente_shared-0.1.109.dist-info/METADATA,sha256=2RU98UYTpeOmv-SPjhkxmAaqqRORgeiKJ991EBwwpJk,963
59
+ documente_shared-0.1.109.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
60
+ documente_shared-0.1.109.dist-info/RECORD,,