maleo-foundation 0.0.37__py3-none-any.whl → 0.0.38__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.
- maleo_foundation/constants.py +2 -2
- maleo_foundation/controller.py +2 -2
- maleo_foundation/db/database.py +1 -1
- maleo_foundation/models/__init__.py +1 -9
- maleo_foundation/models/responses.py +1 -1
- maleo_foundation/models/schemas/general.py +2 -2
- maleo_foundation/models/schemas/parameter.py +3 -3
- maleo_foundation/models/schemas/result.py +1 -1
- maleo_foundation/models/transfers/parameters/general.py +2 -2
- maleo_foundation/models/transfers/parameters/service.py +2 -2
- maleo_foundation/models/transfers/results/service/controllers/rest.py +1 -1
- maleo_foundation/query.py +2 -2
- maleo_foundation/{models/types.py → types.py} +1 -1
- maleo_foundation/utils/logger.py +1 -1
- {maleo_foundation-0.0.37.dist-info → maleo_foundation-0.0.38.dist-info}/METADATA +1 -1
- {maleo_foundation-0.0.37.dist-info → maleo_foundation-0.0.38.dist-info}/RECORD +24 -24
- /maleo_foundation/{models/enums.py → enums.py} +0 -0
- /maleo_foundation/{models/expanded_types → expanded_types}/__init__.py +0 -0
- /maleo_foundation/{models/expanded_types → expanded_types}/client.py +0 -0
- /maleo_foundation/{models/expanded_types → expanded_types}/query.py +0 -0
- /maleo_foundation/{models/expanded_types → expanded_types}/service.py +0 -0
- /maleo_foundation/{models/extended_types.py → extended_types.py} +0 -0
- {maleo_foundation-0.0.37.dist-info → maleo_foundation-0.0.38.dist-info}/WHEEL +0 -0
- {maleo_foundation-0.0.37.dist-info → maleo_foundation-0.0.38.dist-info}/top_level.txt +0 -0
maleo_foundation/constants.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import re
|
2
2
|
from uuid import UUID
|
3
|
-
from maleo_foundation.
|
4
|
-
from maleo_foundation.
|
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"
|
maleo_foundation/controller.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
from fastapi import status
|
2
2
|
from typing import Type, Any
|
3
|
-
from maleo_foundation.
|
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.
|
7
|
+
from maleo_foundation.expanded_types.service import ExpandedServiceTypes
|
8
8
|
|
9
9
|
class BaseController:
|
10
10
|
@staticmethod
|
maleo_foundation/db/database.py
CHANGED
@@ -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.
|
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.
|
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.
|
8
|
-
from maleo_foundation.
|
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.
|
5
|
+
from maleo_foundation.enums import BaseEnums
|
6
6
|
from maleo_foundation.models.schemas.general import BaseGeneralSchemas
|
7
|
-
from maleo_foundation.
|
8
|
-
from maleo_foundation.
|
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.
|
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.
|
3
|
+
from maleo_foundation.enums import BaseEnums
|
4
4
|
from maleo_foundation.models.schemas.general import BaseGeneralSchemas
|
5
|
-
from maleo_foundation.
|
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.
|
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.
|
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.
|
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.
|
9
|
-
from maleo_foundation.
|
8
|
+
from maleo_foundation.types import BaseTypes
|
9
|
+
from maleo_foundation.extended_types import ExtendedTypes
|
10
10
|
|
11
11
|
class BaseQuery:
|
12
12
|
@staticmethod
|
maleo_foundation/utils/logger.py
CHANGED
@@ -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.
|
5
|
+
from maleo_foundation.enums import BaseEnums
|
6
6
|
|
7
7
|
class BaseLogger(logging.Logger):
|
8
8
|
def __init__(
|
@@ -1,7 +1,10 @@
|
|
1
1
|
maleo_foundation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
maleo_foundation/constants.py,sha256=
|
3
|
-
maleo_foundation/controller.py,sha256=
|
4
|
-
maleo_foundation/
|
2
|
+
maleo_foundation/constants.py,sha256=dPGtglofvRKXfx5j7VBTaWQOp9iOzHWrOHdP65xhaeE,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=
|
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=
|
21
|
-
maleo_foundation/models/
|
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=
|
31
|
-
maleo_foundation/models/schemas/parameter.py,sha256=
|
32
|
-
maleo_foundation/models/schemas/result.py,sha256=
|
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=
|
37
|
-
maleo_foundation/models/transfers/parameters/service.py,sha256=
|
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=
|
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=
|
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.
|
54
|
-
maleo_foundation-0.0.
|
55
|
-
maleo_foundation-0.0.
|
56
|
-
maleo_foundation-0.0.
|
53
|
+
maleo_foundation-0.0.38.dist-info/METADATA,sha256=8MZHmcfH4PiQuqrF8V7b6UwGZn56WEu8V8kNCyTpGcw,3160
|
54
|
+
maleo_foundation-0.0.38.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
|
55
|
+
maleo_foundation-0.0.38.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
|
56
|
+
maleo_foundation-0.0.38.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|