maleo-foundation 0.0.30__tar.gz → 0.0.31__tar.gz

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.
Files changed (62) hide show
  1. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/PKG-INFO +1 -1
  2. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/controller.py +4 -4
  3. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/__init__.py +3 -1
  4. maleo_foundation-0.0.31/maleo_foundation/models/expanded_types/__init__.py +9 -0
  5. {maleo_foundation-0.0.30/maleo_foundation/models/extended_types → maleo_foundation-0.0.31/maleo_foundation/models/expanded_types}/client.py +1 -1
  6. {maleo_foundation-0.0.30/maleo_foundation/models/extended_types → maleo_foundation-0.0.31/maleo_foundation/models/expanded_types}/query.py +1 -1
  7. {maleo_foundation-0.0.30/maleo_foundation/models/extended_types → maleo_foundation-0.0.31/maleo_foundation/models/expanded_types}/service.py +1 -1
  8. maleo_foundation-0.0.30/maleo_foundation/models/extended_types/parameter.py → maleo_foundation-0.0.31/maleo_foundation/models/extended_types.py +1 -1
  9. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/schemas/general.py +1 -1
  10. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/schemas/result.py +1 -1
  11. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation.egg-info/PKG-INFO +1 -1
  12. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation.egg-info/SOURCES.txt +5 -5
  13. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/pyproject.toml +1 -1
  14. maleo_foundation-0.0.30/maleo_foundation/models/extended_types/__init__.py +0 -9
  15. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/README.md +0 -0
  16. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/__init__.py +0 -0
  17. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/clients/__init__.py +0 -0
  18. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/clients/general/__init__.py +0 -0
  19. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/clients/general/http.py +0 -0
  20. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/clients/google/__init__.py +0 -0
  21. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/clients/google/cloud/__init__.py +0 -0
  22. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/clients/google/cloud/logging.py +0 -0
  23. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/clients/google/cloud/secret.py +0 -0
  24. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/clients/google/cloud/storage.py +0 -0
  25. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/constants.py +0 -0
  26. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/db/__init__.py +0 -0
  27. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/db/database.py +0 -0
  28. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/db/engine.py +0 -0
  29. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/db/session.py +0 -0
  30. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/middlewares/__init__.py +0 -0
  31. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/middlewares/base.py +0 -0
  32. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/middlewares/cors.py +0 -0
  33. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/enums.py +0 -0
  34. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/responses.py +0 -0
  35. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/schemas/__init__.py +0 -0
  36. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/schemas/parameter.py +0 -0
  37. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/__init__.py +0 -0
  38. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/parameters/__init__.py +0 -0
  39. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/parameters/client.py +0 -0
  40. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/parameters/general.py +0 -0
  41. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/parameters/service.py +0 -0
  42. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/results/__init__.py +0 -0
  43. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/results/client/__init__.py +0 -0
  44. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/results/client/controllers/__init__.py +0 -0
  45. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/results/client/controllers/http.py +0 -0
  46. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/results/client/service.py +0 -0
  47. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/results/service/__init__.py +0 -0
  48. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/results/service/controllers/__init__.py +0 -0
  49. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/results/service/controllers/rest.py +0 -0
  50. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/results/service/general.py +0 -0
  51. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/transfers/results/service/query.py +0 -0
  52. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/models/types.py +0 -0
  53. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/query.py +0 -0
  54. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/utils/__init__.py +0 -0
  55. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/utils/exceptions.py +0 -0
  56. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/utils/formatter/__init__.py +0 -0
  57. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/utils/formatter/case.py +0 -0
  58. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation/utils/logger.py +0 -0
  59. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation.egg-info/dependency_links.txt +0 -0
  60. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation.egg-info/requires.txt +0 -0
  61. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/maleo_foundation.egg-info/top_level.txt +0 -0
  62. {maleo_foundation-0.0.30 → maleo_foundation-0.0.31}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.0.30
3
+ Version: 0.0.31
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -4,14 +4,14 @@ from maleo_foundation.models.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.extended_types.service import ExtendedServiceTypes
7
+ from maleo_foundation.models.expanded_types.service import ExpandedServiceTypes
8
8
 
9
9
  class BaseController:
10
10
  @staticmethod
11
11
  def check_unique_existence(
12
12
  check:BaseServiceParametersTransfers.UniqueFieldCheck,
13
- get_single_parameters_class:Type[ExtendedServiceTypes.GetSingleParameter],
14
- get_single_service_function:ExtendedServiceTypes.SyncGetSingleFunction,
13
+ get_single_parameters_class:Type[ExpandedServiceTypes.GetSingleParameter],
14
+ get_single_service_function:ExpandedServiceTypes.SyncGetSingleFunction,
15
15
  create_failed_response_class:Type[BaseResponses.Fail],
16
16
  update_failed_response_class:Type[BaseResponses.Fail],
17
17
  **additional_get_parameters:Any
@@ -30,7 +30,7 @@ class BaseController:
30
30
  get_single_parameters = get_single_parameters_class(identifier=check.field, value=check.new_value)
31
31
 
32
32
  #* Query the existing data using provided function
33
- service_result:ExtendedServiceTypes.GetSingleResult = get_single_service_function(parameters=get_single_parameters, **additional_get_parameters)
33
+ service_result:ExpandedServiceTypes.GetSingleResult = get_single_service_function(parameters=get_single_parameters, **additional_get_parameters)
34
34
  if not service_result.success:
35
35
  content = BaseResponses.ServerError.model_validate(service_result.model_dump(exclude_unset=True)).model_dump()
36
36
  return BaseServiceRESTControllerResults(success=False, content=content, status_code=status.HTTP_500_INTERNAL_SERVER_ERROR)
@@ -5,6 +5,7 @@ from .transfers import BaseTransfers
5
5
  from .responses import BaseResponses
6
6
  from .types import BaseTypes
7
7
  from .extended_types import ExtendedTypes
8
+ from .expanded_types import ExpandedTypes
8
9
 
9
10
  class BaseModels:
10
11
  Enums = BaseEnums
@@ -12,4 +13,5 @@ class BaseModels:
12
13
  Transfers = BaseTransfers
13
14
  Responses = BaseResponses
14
15
  Types = BaseTypes
15
- ExtendedTypes = ExtendedTypes
16
+ ExtendedTypes = ExtendedTypes
17
+ ExpandedTypes = ExpandedTypes
@@ -0,0 +1,9 @@
1
+ from __future__ import annotations
2
+ from .query import ExpandedQueryTypes
3
+ from .service import ExpandedServiceTypes
4
+ from .client import ExpandedClientTypes
5
+
6
+ class ExpandedTypes:
7
+ Query = ExpandedQueryTypes
8
+ Service = ExpandedServiceTypes
9
+ Client = ExpandedClientTypes
@@ -3,7 +3,7 @@ from maleo_foundation.models.transfers.parameters.general import BaseGeneralPara
3
3
  from maleo_foundation.models.transfers.parameters.client import BaseClientParametersTransfers
4
4
  from maleo_foundation.models.transfers.results.client.service import BaseClientServiceResultsTransfers
5
5
 
6
- class ExtendedClientTypes:
6
+ class ExpandedClientTypes:
7
7
  GetMultipleParameter = BaseClientParametersTransfers.GetMultiple
8
8
 
9
9
  GetMultipleResult = Union[
@@ -3,7 +3,7 @@ from maleo_foundation.models.transfers.parameters.general import BaseGeneralPara
3
3
  from maleo_foundation.models.transfers.parameters.service import BaseServiceParametersTransfers
4
4
  from maleo_foundation.models.transfers.results.service.query import BaseServiceQueryResultsTransfers
5
5
 
6
- class ExtendedQueryTypes:
6
+ class ExpandedQueryTypes:
7
7
  GetMultipleParameter = BaseServiceParametersTransfers.GetMultiple
8
8
 
9
9
  GetMultipleResult = Union[
@@ -3,7 +3,7 @@ from maleo_foundation.models.transfers.parameters.general import BaseGeneralPara
3
3
  from maleo_foundation.models.transfers.parameters.service import BaseServiceParametersTransfers
4
4
  from maleo_foundation.models.transfers.results.service.general import BaseServiceGeneralResultsTransfers
5
5
 
6
- class ExtendedServiceTypes:
6
+ class ExpandedServiceTypes:
7
7
  GetMultipleParameter = BaseServiceParametersTransfers.GetMultiple
8
8
 
9
9
  GetMultipleResult = Union[
@@ -1,7 +1,7 @@
1
1
  from typing import List
2
2
  from maleo_foundation.models.schemas.general import BaseGeneralSchemas
3
3
 
4
- class BaseParameterTypes:
4
+ class ExtendedTypes:
5
5
  #* DateFilter-related types
6
6
  ListOfDateFilters = List[BaseGeneralSchemas.DateFilter]
7
7
 
@@ -30,7 +30,7 @@ class BaseGeneralSchemas:
30
30
  page:int = Field(1, ge=1, description="Page number, must be >= 1.")
31
31
  limit:int = Field(10, ge=1, le=100, description="Page size, must be 1 <= limit <= 100.")
32
32
 
33
- class ExtendedPagination(SimplePagination):
33
+ class ExpandedPagination(SimplePagination):
34
34
  data_count:int = Field(..., description="Fetched data count")
35
35
  total_data:int = Field(..., description="Total data count")
36
36
  total_pages:int = Field(..., description="Total pages count")
@@ -1,5 +1,5 @@
1
1
  from pydantic import BaseModel, Field
2
- from typing import Literal, Optional, Any
2
+ from typing import Any
3
3
  from maleo_foundation.models.schemas.general import BaseGeneralSchemas
4
4
  from maleo_foundation.models.types import BaseTypes
5
5
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.0.30
3
+ Version: 0.0.31
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -26,13 +26,13 @@ maleo_foundation/middlewares/base.py
26
26
  maleo_foundation/middlewares/cors.py
27
27
  maleo_foundation/models/__init__.py
28
28
  maleo_foundation/models/enums.py
29
+ maleo_foundation/models/extended_types.py
29
30
  maleo_foundation/models/responses.py
30
31
  maleo_foundation/models/types.py
31
- maleo_foundation/models/extended_types/__init__.py
32
- maleo_foundation/models/extended_types/client.py
33
- maleo_foundation/models/extended_types/parameter.py
34
- maleo_foundation/models/extended_types/query.py
35
- maleo_foundation/models/extended_types/service.py
32
+ maleo_foundation/models/expanded_types/__init__.py
33
+ maleo_foundation/models/expanded_types/client.py
34
+ maleo_foundation/models/expanded_types/query.py
35
+ maleo_foundation/models/expanded_types/service.py
36
36
  maleo_foundation/models/schemas/__init__.py
37
37
  maleo_foundation/models/schemas/general.py
38
38
  maleo_foundation/models/schemas/parameter.py
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "maleo_foundation"
7
- version = "0.0.30"
7
+ version = "0.0.31"
8
8
  description = "Foundation package for Maleo"
9
9
  authors = [
10
10
  { name = "Agra Bima Yuda", email = "agra@nexmedis.com" }
@@ -1,9 +0,0 @@
1
- from __future__ import annotations
2
- from .query import ExtendedQueryTypes
3
- from .service import ExtendedServiceTypes
4
- from .client import ExtendedClientTypes
5
-
6
- class ExtendedTypes:
7
- Query = ExtendedQueryTypes
8
- Service = ExtendedServiceTypes
9
- Client = ExtendedClientTypes