maleo-foundation 0.0.37__py3-none-any.whl → 0.0.39__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.
@@ -1,7 +1,7 @@
1
1
  import re
2
2
  from uuid import UUID
3
- from maleo_foundation.models.enums import BaseEnums
4
- from maleo_foundation.models.types import BaseTypes
3
+ from maleo_foundation.enums import BaseEnums
4
+ from maleo_foundation.types import BaseTypes
5
5
 
6
6
  EMAIL_REGEX:str = r"^[^\s@]+@[^\s@]+\.[^\s@]+$"
7
7
  TOKEN_COOKIE_KEY_NAME="token"
@@ -24,7 +24,7 @@ STATUS_UPDATE_CRITERIAS:dict[
24
24
  BaseEnums.StatusType.ACTIVE,
25
25
  ]
26
26
  }
27
- IDENTIFIER_TYPE_VALUE_PAIR_MAP:dict[
27
+ IDENTIFIER_TYPE_VALUE_TYPE_MAP:dict[
28
28
  BaseEnums.IdentifierTypes,
29
29
  object
30
30
  ] = {
@@ -1,10 +1,10 @@
1
1
  from fastapi import status
2
2
  from typing import Type, Any
3
- from maleo_foundation.models.enums import BaseEnums
3
+ from maleo_foundation.enums import BaseEnums
4
4
  from maleo_foundation.models.responses import BaseResponses
5
5
  from maleo_foundation.models.transfers.results.service.controllers.rest import BaseServiceRESTControllerResults
6
6
  from maleo_foundation.models.transfers.parameters.service import BaseServiceParametersTransfers
7
- from maleo_foundation.models.expanded_types.service import ExpandedServiceTypes
7
+ from maleo_foundation.expanded_types.service import ExpandedServiceTypes
8
8
 
9
9
  class BaseController:
10
10
  @staticmethod
@@ -1,7 +1,7 @@
1
1
  from sqlalchemy import Engine, MetaData, Column, Integer, UUID, TIMESTAMP, Enum, func
2
2
  from sqlalchemy.orm import declarative_base, declared_attr
3
3
  from uuid import uuid4
4
- from maleo_foundation.models.enums import BaseEnums
4
+ from maleo_foundation.enums import BaseEnums
5
5
  from maleo_foundation.utils.formatter.case import CaseFormatter
6
6
 
7
7
  Base = declarative_base() #* Correct way to define a declarative base
@@ -1,17 +1,9 @@
1
1
  from __future__ import annotations
2
- from .enums import BaseEnums
3
2
  from .schemas import BaseSchemas
4
3
  from .transfers import BaseTransfers
5
4
  from .responses import BaseResponses
6
- from .types import BaseTypes
7
- from .extended_types import ExtendedTypes
8
- from .expanded_types import ExpandedTypes
9
5
 
10
6
  class BaseModels:
11
- Enums = BaseEnums
12
7
  Schemas = BaseSchemas
13
8
  Transfers = BaseTransfers
14
- Responses = BaseResponses
15
- Types = BaseTypes
16
- ExtendedTypes = ExtendedTypes
17
- ExpandedTypes = ExpandedTypes
9
+ Responses = BaseResponses
@@ -3,7 +3,7 @@ from fastapi import status
3
3
  from pydantic import Field, model_validator
4
4
  from maleo_foundation.models.schemas.general import BaseGeneralSchemas
5
5
  from maleo_foundation.models.schemas.result import BaseResultSchemas
6
- from maleo_foundation.models.types import BaseTypes
6
+ from maleo_foundation.types import BaseTypes
7
7
 
8
8
  class BaseResponses:
9
9
  class Fail(BaseResultSchemas.Fail):
@@ -4,8 +4,8 @@ from pydantic import BaseModel, Field, model_validator, field_serializer, FieldS
4
4
  from typing import Optional, Any
5
5
  from uuid import UUID
6
6
  from maleo_foundation.constants import REFRESH_TOKEN_DURATION_DAYS, ACCESS_TOKEN_DURATION_MINUTES
7
- from maleo_foundation.models.enums import BaseEnums
8
- from maleo_foundation.models.types import BaseTypes
7
+ from maleo_foundation.enums import BaseEnums
8
+ from maleo_foundation.types import BaseTypes
9
9
 
10
10
  class BaseGeneralSchemas:
11
11
  class IDs(BaseModel):
@@ -2,10 +2,10 @@ import re
2
2
  import urllib.parse
3
3
  from pydantic import BaseModel, Field, field_validator
4
4
  from maleo_foundation.constants import SORT_COLUMN_PATTERN, DATE_FILTER_PATTERN
5
- from maleo_foundation.models.enums import BaseEnums
5
+ from maleo_foundation.enums import BaseEnums
6
6
  from maleo_foundation.models.schemas.general import BaseGeneralSchemas
7
- from maleo_foundation.models.types import BaseTypes
8
- from maleo_foundation.models.extended_types import ExtendedTypes
7
+ from maleo_foundation.types import BaseTypes
8
+ from maleo_foundation.extended_types import ExtendedTypes
9
9
 
10
10
  class BaseParameterSchemas:
11
11
  class Filters(BaseModel):
@@ -1,7 +1,7 @@
1
1
  from pydantic import BaseModel, Field
2
2
  from typing import Any
3
3
  from maleo_foundation.models.schemas.general import BaseGeneralSchemas
4
- from maleo_foundation.models.types import BaseTypes
4
+ from maleo_foundation.types import BaseTypes
5
5
 
6
6
  class BaseResultSchemas:
7
7
  class Base(BaseModel):
@@ -1,8 +1,8 @@
1
1
  from __future__ import annotations
2
2
  from pydantic import Field
3
- from maleo_foundation.models.enums import BaseEnums
3
+ from maleo_foundation.enums import BaseEnums
4
4
  from maleo_foundation.models.schemas.general import BaseGeneralSchemas
5
- from maleo_foundation.models.types import BaseTypes
5
+ from maleo_foundation.types import BaseTypes
6
6
 
7
7
  class BaseGeneralParametersTransfers:
8
8
  class GetSingleQuery(BaseGeneralSchemas.Statuses): pass
@@ -2,10 +2,10 @@ from __future__ import annotations
2
2
  from datetime import datetime
3
3
  from pydantic import BaseModel, Field, model_validator
4
4
  from typing import Optional, Self
5
- from maleo_foundation.models.enums import BaseEnums
5
+ from maleo_foundation.enums import BaseEnums
6
6
  from maleo_foundation.models.schemas.general import BaseGeneralSchemas
7
7
  from maleo_foundation.models.schemas.parameter import BaseParameterSchemas
8
- from maleo_foundation.models.types import BaseTypes
8
+ from maleo_foundation.types import BaseTypes
9
9
 
10
10
  class BaseServiceParametersTransfers:
11
11
  class GetUnpaginatedMultipleQuery(
@@ -2,7 +2,7 @@ from __future__ import annotations
2
2
  from fastapi import status, Response
3
3
  from typing import Any
4
4
  from pydantic import BaseModel, Field, model_validator
5
- from maleo_foundation.models.enums import BaseEnums
5
+ from maleo_foundation.enums import BaseEnums
6
6
 
7
7
  class BaseServiceRESTControllerResults(BaseModel):
8
8
  success:bool = Field(..., description="REST Controller's success status")
maleo_foundation/query.py CHANGED
@@ -5,8 +5,8 @@ from sqlalchemy.sql.expression import or_, asc, cast, desc
5
5
  from sqlalchemy.types import DATE, String, TEXT, TIMESTAMP
6
6
  from typing import Type
7
7
  from maleo_foundation.db import DatabaseManager
8
- from maleo_foundation.models.types import BaseTypes
9
- from maleo_foundation.models.extended_types import ExtendedTypes
8
+ from maleo_foundation.types import BaseTypes
9
+ from maleo_foundation.extended_types import ExtendedTypes
10
10
 
11
11
  class BaseQuery:
12
12
  @staticmethod
@@ -1,7 +1,7 @@
1
1
  from datetime import datetime
2
2
  from typing import Optional, Union, Literal, List, Any
3
3
  from uuid import UUID
4
- from maleo_foundation.models.enums import BaseEnums
4
+ from maleo_foundation.enums import BaseEnums
5
5
 
6
6
  class BaseTypes:
7
7
  #* Any-related types
@@ -2,7 +2,7 @@ import logging
2
2
  import os
3
3
  from datetime import datetime
4
4
  from maleo_foundation.clients.google.cloud.logging import GoogleCloudLogging
5
- from maleo_foundation.models.enums import BaseEnums
5
+ from maleo_foundation.enums import BaseEnums
6
6
 
7
7
  class BaseLogger(logging.Logger):
8
8
  def __init__(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.0.37
3
+ Version: 0.0.39
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -1,7 +1,10 @@
1
1
  maleo_foundation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- maleo_foundation/constants.py,sha256=EVmVlI7jLeCoC3-qsYh9xB67dNBP7nqpc0gjz1EFin8,1178
3
- maleo_foundation/controller.py,sha256=Z5WbsrkTFYqC7GrnXR-gsqTN6IC_jz-wrOK3mU4GaU0,3005
4
- maleo_foundation/query.py,sha256=theAgfJy88CsNeloApotzTsJMSG8j2v3CykMGrVR2PI,3864
2
+ maleo_foundation/constants.py,sha256=aBmEfWlBqZxi0k-n6h2NM1YRLOjMnheEiLyQcjP-zCQ,1164
3
+ maleo_foundation/controller.py,sha256=9ceIEajWLouLBph2NQe7L7tQNnQyyW_ETojilSeFv6M,2991
4
+ maleo_foundation/enums.py,sha256=skLmbrD7DqL1CJN2BCRfWYu5QU1XZVIa_SoJnZbZcrs,2201
5
+ maleo_foundation/extended_types.py,sha256=pIKt-_9tby4rmune3fmWcCW_mohaNRh_1lywBmdc-L4,301
6
+ maleo_foundation/query.py,sha256=qJV9-QX5bphsmijXf4I8cuwMnqlJkm0dxypJ9Qz1eS8,3850
7
+ maleo_foundation/types.py,sha256=D_EtYK-sNeELSbc-ngX65iuQCRhZQB4TtV73P6Gl76o,1206
5
8
  maleo_foundation/clients/__init__.py,sha256=W8vydJYeDEi6gdmOZSBFSSDsfZJtb8C05CHErZgsZ30,188
6
9
  maleo_foundation/clients/general/__init__.py,sha256=l9eQrBeLW4aXtGU5aK3i6fD-msVR4526W7D9V8WCXIg,91
7
10
  maleo_foundation/clients/general/http.py,sha256=Awvs470hgdhZSZW_uoIFJGcJ5hcfDEIX0A2yUaP9UCA,1353
@@ -11,30 +14,27 @@ maleo_foundation/clients/google/cloud/logging.py,sha256=b-q6Mhlt2Vl5HBh-YXeEEfGu
11
14
  maleo_foundation/clients/google/cloud/secret.py,sha256=cFewA-EYsAaEfxc2G2XGzwHreW1FgyCK6MpwOARE24M,3452
12
15
  maleo_foundation/clients/google/cloud/storage.py,sha256=y_HAsbcGSnu5sxZPxaQWFWvOlF3vEcqkej2834OgAS0,2617
13
16
  maleo_foundation/db/__init__.py,sha256=fFqGxpsiowiws70AqOfcOWFhwaahfOj9_05JSJ0iRaE,107
14
- maleo_foundation/db/database.py,sha256=RQBWeUearfrgq2L8-8cFVBByjNku9OiY3AmucRWXUOw,2064
17
+ maleo_foundation/db/database.py,sha256=NroYq_nCO4Je869wPB711b11UGMhbxw8GRIpWppYan4,2057
15
18
  maleo_foundation/db/engine.py,sha256=kw2SMMiWy5KARquh4TLk7v6HwlHW97lUIUvqdFbhNxk,1600
16
19
  maleo_foundation/db/session.py,sha256=tI13DJ6rLo8FOpSIFZrmD4dbuxY_c0RTjwEGb76ZOo0,2681
20
+ maleo_foundation/expanded_types/__init__.py,sha256=RohoIQCiMvo2g6Jacq2dlqNXg3WLmRc-TD8nvMsyDKs,275
21
+ maleo_foundation/expanded_types/client.py,sha256=To0kRXp3QTmuSu5rWKaCiTsMK9qkYiyYKYbHfw-y1fY,2396
22
+ maleo_foundation/expanded_types/query.py,sha256=0yUG-JIVsanzB7KAkrRz_OsrhP6J0bRqD9Q3l3atQnk,2384
23
+ maleo_foundation/expanded_types/service.py,sha256=q8jpKdbCbLWwH1UPQavKpVE14rC5rveduk2cFWzuhGw,2416
17
24
  maleo_foundation/middlewares/__init__.py,sha256=bqE2EIFC3rWcR2AwFPR0fk2kSFfeTRzgA24GbnuT5RA,3697
18
25
  maleo_foundation/middlewares/base.py,sha256=KcpODNs0DQXX8Cwc6T9dC6aiZIqxTLtuJjVAGWXPSKk,11633
19
26
  maleo_foundation/middlewares/cors.py,sha256=9uvBvY2N6Vxa9RP_YtESxcWo6Doi6uS0lzAG9iLY7Uc,2288
20
- maleo_foundation/models/__init__.py,sha256=HTiSh5eRZ6_iBR2fmylLw_UZNE82GsmzHG3HFBqH2uE,500
21
- maleo_foundation/models/enums.py,sha256=skLmbrD7DqL1CJN2BCRfWYu5QU1XZVIa_SoJnZbZcrs,2201
22
- maleo_foundation/models/extended_types.py,sha256=pIKt-_9tby4rmune3fmWcCW_mohaNRh_1lywBmdc-L4,301
23
- maleo_foundation/models/responses.py,sha256=TFaULm23KREwyGHNolOQ2ZR_Nxupc-6TWzC1T3ZF0z4,4548
24
- maleo_foundation/models/types.py,sha256=rg9AoNwwECJ2BhYdoz3DiUMlBgFRWVEl4KGrfTCntnI,1213
25
- maleo_foundation/models/expanded_types/__init__.py,sha256=RohoIQCiMvo2g6Jacq2dlqNXg3WLmRc-TD8nvMsyDKs,275
26
- maleo_foundation/models/expanded_types/client.py,sha256=To0kRXp3QTmuSu5rWKaCiTsMK9qkYiyYKYbHfw-y1fY,2396
27
- maleo_foundation/models/expanded_types/query.py,sha256=0yUG-JIVsanzB7KAkrRz_OsrhP6J0bRqD9Q3l3atQnk,2384
28
- maleo_foundation/models/expanded_types/service.py,sha256=q8jpKdbCbLWwH1UPQavKpVE14rC5rveduk2cFWzuhGw,2416
27
+ maleo_foundation/models/__init__.py,sha256=AaKehO7c1HyKhoTGRmNHDddSeBXkW-_YNrpOGBu8Ms8,246
28
+ maleo_foundation/models/responses.py,sha256=ePz7yNEYVCNxxrQlj_dnWXspv1HAnBAHCQfyaaqTHdo,4541
29
29
  maleo_foundation/models/schemas/__init__.py,sha256=Xj8Ahsqyra-fmEaVcGPok5GOOsPQlKcknHYMvbjvENA,277
30
- maleo_foundation/models/schemas/general.py,sha256=JwsAP-rLO_o4lgPUi9gYHGhwzV7KVzsg8axAJZNyxlw,6680
31
- maleo_foundation/models/schemas/parameter.py,sha256=YixHZXszx9dtmiSGypf9cNxaHw7NS78VJcrTDhGlBpg,2121
32
- maleo_foundation/models/schemas/result.py,sha256=69JsTor9gNTVhUErFsFWN8CC9SZ9aXUO08kziGbXxsY,1754
30
+ maleo_foundation/models/schemas/general.py,sha256=djYzD-Dl4Gy0cFUde-ijuap5xmyVt232bJkazxKkuow,6666
31
+ maleo_foundation/models/schemas/parameter.py,sha256=K47z2NzmTEhUiOfRiRLyRPXoQurbWsKBL7ObXAxIWRY,2100
32
+ maleo_foundation/models/schemas/result.py,sha256=V3dljS2AdtWW4Pf8YsnQuiCylN1bZtEY1AtYC7okWuI,1747
33
33
  maleo_foundation/models/transfers/__init__.py,sha256=B8oCZHE3NTsrJ_rviSXaDsuc-gc25jpjuhJO40lpQiE,222
34
34
  maleo_foundation/models/transfers/parameters/__init__.py,sha256=oKW4RPIEISISRjsJzD8lsCGY1HhZRTzshPpWHcJu86k,353
35
35
  maleo_foundation/models/transfers/parameters/client.py,sha256=GjRYMDO9I0ZEfFPFJTn1CIFHYX1tvEF6kY5olD2xqR0,4059
36
- maleo_foundation/models/transfers/parameters/general.py,sha256=Doyr_T_2JvsqDc4r00iB2dqAtBErHMM8RZz6ItyZZ7o,544
37
- maleo_foundation/models/transfers/parameters/service.py,sha256=8pcUR7bGMepC5G35Jr-iXlfLVyXxahb2erfIEFs6ebE,6771
36
+ maleo_foundation/models/transfers/parameters/general.py,sha256=HLBS4nUYSrqftES2x43tzlAcDnscuH9OtM1X-Ym2Dto,530
37
+ maleo_foundation/models/transfers/parameters/service.py,sha256=rSsHNIcroyGNPk4-aKSML7W0tGk_d1d-wmpou9HohTw,6757
38
38
  maleo_foundation/models/transfers/results/__init__.py,sha256=0_8uJ1IQW87RZ4nIxzWkQVi3Fxb7B8myZTngXfoxgNc,241
39
39
  maleo_foundation/models/transfers/results/client/__init__.py,sha256=xBRuY0NUIPpQEGQ2qoBnqLZGX4W1YSrQ0VnDf5OYJBo,290
40
40
  maleo_foundation/models/transfers/results/client/service.py,sha256=TO_U53vmUEnFWiiyuu33ao3BUidt6KFxvk3GC9uo8JE,1108
@@ -44,13 +44,13 @@ maleo_foundation/models/transfers/results/service/__init__.py,sha256=dTjHe1iGIpd
44
44
  maleo_foundation/models/transfers/results/service/general.py,sha256=G4x-MhQI7Km9UAcx2uJmrsqA6RBvxpH6VFAd_ynFFd4,1486
45
45
  maleo_foundation/models/transfers/results/service/query.py,sha256=Wj9GCWk7FrKP0EoK55vJcr9YJ42Lo24mLXbRk9j0IJw,2566
46
46
  maleo_foundation/models/transfers/results/service/controllers/__init__.py,sha256=HZJWMy2dskzOCzLmp_UaL9rjbQ-sDMI7sd2bXb-4QOU,175
47
- maleo_foundation/models/transfers/results/service/controllers/rest.py,sha256=bZ4NibT58aim6p3epFJ9ipR8Z54FkOuFx2GniK4CUfM,1114
47
+ maleo_foundation/models/transfers/results/service/controllers/rest.py,sha256=wCuFyOTQkuBs2cqjPsWnPy0XIsCfMqGByhrSy57qp7Y,1107
48
48
  maleo_foundation/utils/__init__.py,sha256=tfgaHZI2PDgxEVSQztfnDMN5S6L5Y4FcK5v_Wkf5snE,245
49
49
  maleo_foundation/utils/exceptions.py,sha256=mcvBwHm6uWpVQkPtO1T2j-GaTYEiyPOeGxiDL9-sjNA,3639
50
- maleo_foundation/utils/logger.py,sha256=ICrFi0MxuAjDy8KTRL7pex1miwzZqZX-HHArgN3niJM,2453
50
+ maleo_foundation/utils/logger.py,sha256=S9YtXy6AO7qP1vkcPXqnzPbgCIoTfr2DZGCT9vuA1_Q,2446
51
51
  maleo_foundation/utils/formatter/__init__.py,sha256=iKf5YCbEdg1qKnFHyKqqcQbqAqEeRUf8mhI3v3dQoj8,78
52
52
  maleo_foundation/utils/formatter/case.py,sha256=TmvvlfzGdC_omMTB5vAa40TZBxQ3hnr-SYeo0M52Rlg,1352
53
- maleo_foundation-0.0.37.dist-info/METADATA,sha256=2PRxXo8epMgieKl9AVKDXG7kvFVl6CNh8cjAMpkE_R0,3160
54
- maleo_foundation-0.0.37.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
55
- maleo_foundation-0.0.37.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
56
- maleo_foundation-0.0.37.dist-info/RECORD,,
53
+ maleo_foundation-0.0.39.dist-info/METADATA,sha256=cfFp2YRumuQ4SP57WT9KwQxY0BYXaCdO0hdf9KCMel0,3160
54
+ maleo_foundation-0.0.39.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
55
+ maleo_foundation-0.0.39.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
56
+ maleo_foundation-0.0.39.dist-info/RECORD,,
File without changes