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

@@ -0,0 +1,7 @@
1
+ from datetime import datetime, timezone
2
+
3
+
4
+ def ensure_timezone(dt: datetime, tz=timezone.utc) -> datetime:
5
+ if dt.tzinfo is None:
6
+ return dt.replace(tzinfo=tz)
7
+ return dt
@@ -15,6 +15,14 @@ class DocumentProcessCategory(BaseEnum):
15
15
  CIRCULAR = 'CIRCULAR'
16
16
  DESGRAVAMEN = 'DESGRAVAMEN'
17
17
 
18
+ @property
19
+ def is_circular(self):
20
+ return self == DocumentProcessCategory.CIRCULAR
21
+
22
+ @property
23
+ def is_desgravamen(self):
24
+ return self == DocumentProcessCategory.DESGRAVAMEN
25
+
18
26
 
19
27
  class DocumentProcessSubCategory(BaseEnum):
20
28
  # Circulares
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: documente_shared
3
- Version: 0.1.45
3
+ Version: 0.1.47
4
4
  Summary: Shared utilities for Documente AI projects
5
5
  License: MIT
6
6
  Author: Tech
@@ -3,18 +3,19 @@ documente_shared/application/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
3
3
  documente_shared/application/digest.py,sha256=Um6E8WfFri2_lly4RFWydJyvSfPZGFcOX-opEOzDCWc,172
4
4
  documente_shared/application/exceptions.py,sha256=lQM8m7wmI9OTLGva0gd7s7YT7ldaTk_Ln4t32PpzNf8,654
5
5
  documente_shared/application/time_utils.py,sha256=XDH27cKgoTFO8ad1JgrxKaeT7sZ1fduuJqLkvHUjy-Q,309
6
+ documente_shared/application/timezone.py,sha256=NHpzTzOPD_fWQiJ4BrRqt_TIDs5XyB5ZMR7x8vUk8gQ,183
6
7
  documente_shared/domain/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
8
  documente_shared/domain/base_enum.py,sha256=DojAfn-zQdtjtImeHUpBzE6TBTm07XrbMOdW3h8RVd8,1449
8
9
  documente_shared/domain/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
10
  documente_shared/domain/entities/document_process.py,sha256=6UMKMAr2GLfsJiW9MXC2KtwC4lhbFs9L4DKoZJOHznQ,9089
10
11
  documente_shared/domain/entities/document_process_metadata.py,sha256=rBHkDkoKwrxReKtXIScU1vrCO_6bg2LwWhrtXMcQ8TA,2351
11
- documente_shared/domain/enums.py,sha256=C93aAAesVBC2GS4gI_LBaEu3K-0DxyuaKrh6v3ogf1E,684
12
+ documente_shared/domain/enums.py,sha256=pow_LWNQjdyADiVtpPRxBRtcgC2ZabLEHwSXD9u0PdE,886
12
13
  documente_shared/domain/repositories.py,sha256=o9_ty3NPxCjb4hHIZbk71ECLqTjoKQI5MKWQje1KEyk,738
13
14
  documente_shared/infrastructure/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
15
  documente_shared/infrastructure/dynamo_repositories.py,sha256=w_AW3IACVxRU7A3mNma2Elpbx7naRV4wY5mChW1WmZQ,1394
15
16
  documente_shared/infrastructure/dynamo_table.py,sha256=dK05KgFvIYCmOdMpq9-OV_OBrP6cCngiUikCJrxlwt4,2112
16
17
  documente_shared/infrastructure/s3_bucket.py,sha256=Nf4bHSC3TJeaKvOQSVtV1hG8dWqEZZnA-JWU0PNTw24,1940
17
18
  documente_shared/infrastructure/sqs_queue.py,sha256=PSiTAnjXvQ-W-9mzLpH2UjbQJTvYkMiaxNaMecF-cR4,1505
18
- documente_shared-0.1.45.dist-info/METADATA,sha256=VrLgxUDNEmyRreoAlCbaRUfkQ6XM_tjshhI6SiS_CJ8,682
19
- documente_shared-0.1.45.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
20
- documente_shared-0.1.45.dist-info/RECORD,,
19
+ documente_shared-0.1.47.dist-info/METADATA,sha256=dPvLCXXGrXnf_RoGieaEnAI6iQFKRvnnN8U0M1Sn5TA,682
20
+ documente_shared-0.1.47.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
21
+ documente_shared-0.1.47.dist-info/RECORD,,