maleo-foundation 0.0.27__tar.gz → 0.0.28__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 (63) hide show
  1. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/PKG-INFO +1 -1
  2. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/controller.py +4 -4
  3. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/__init__.py +2 -2
  4. maleo_foundation-0.0.28/maleo_foundation/models/extended_types/__init__.py +9 -0
  5. {maleo_foundation-0.0.27/maleo_foundation/models/types → maleo_foundation-0.0.28/maleo_foundation/models/extended_types}/client.py +1 -1
  6. {maleo_foundation-0.0.27/maleo_foundation/models/types → maleo_foundation-0.0.28/maleo_foundation/models/extended_types}/query.py +1 -1
  7. {maleo_foundation-0.0.27/maleo_foundation/models/types → maleo_foundation-0.0.28/maleo_foundation/models/extended_types}/service.py +1 -1
  8. maleo_foundation-0.0.28/maleo_foundation/models/types/__init__.py +4 -0
  9. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation.egg-info/PKG-INFO +1 -1
  10. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation.egg-info/SOURCES.txt +4 -3
  11. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/pyproject.toml +1 -1
  12. maleo_foundation-0.0.27/maleo_foundation/models/types/__init__.py +0 -13
  13. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/README.md +0 -0
  14. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/__init__.py +0 -0
  15. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/clients/__init__.py +0 -0
  16. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/clients/general/__init__.py +0 -0
  17. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/clients/general/http.py +0 -0
  18. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/clients/google/__init__.py +0 -0
  19. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/clients/google/cloud/__init__.py +0 -0
  20. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/clients/google/cloud/logging.py +0 -0
  21. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/clients/google/cloud/secret.py +0 -0
  22. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/clients/google/cloud/storage.py +0 -0
  23. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/constants.py +0 -0
  24. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/db/__init__.py +0 -0
  25. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/db/database.py +0 -0
  26. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/db/engine.py +0 -0
  27. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/db/session.py +0 -0
  28. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/middlewares/__init__.py +0 -0
  29. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/middlewares/base.py +0 -0
  30. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/middlewares/cors.py +0 -0
  31. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/enums.py +0 -0
  32. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/responses.py +0 -0
  33. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/schemas/__init__.py +0 -0
  34. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/schemas/general.py +0 -0
  35. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/schemas/parameter.py +0 -0
  36. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/schemas/result.py +0 -0
  37. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/transfers/__init__.py +0 -0
  38. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/transfers/parameters/__init__.py +0 -0
  39. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/transfers/parameters/client.py +0 -0
  40. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/transfers/parameters/general.py +0 -0
  41. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/transfers/parameters/service.py +0 -0
  42. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/transfers/results/__init__.py +0 -0
  43. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/transfers/results/client/__init__.py +0 -0
  44. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/transfers/results/client/controllers/__init__.py +0 -0
  45. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/transfers/results/client/controllers/http.py +0 -0
  46. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/transfers/results/client/service.py +0 -0
  47. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/transfers/results/service/__init__.py +0 -0
  48. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/transfers/results/service/controllers/__init__.py +0 -0
  49. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/transfers/results/service/controllers/rest.py +0 -0
  50. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/transfers/results/service/general.py +0 -0
  51. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/transfers/results/service/query.py +0 -0
  52. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/types/general.py +0 -0
  53. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/models/types/parameter.py +0 -0
  54. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/query.py +0 -0
  55. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/utils/__init__.py +0 -0
  56. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/utils/exceptions.py +0 -0
  57. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/utils/formatter/__init__.py +0 -0
  58. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/utils/formatter/case.py +0 -0
  59. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation/utils/logger.py +0 -0
  60. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation.egg-info/dependency_links.txt +0 -0
  61. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation.egg-info/requires.txt +0 -0
  62. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/maleo_foundation.egg-info/top_level.txt +0 -0
  63. {maleo_foundation-0.0.27 → maleo_foundation-0.0.28}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.0.27
3
+ Version: 0.0.28
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.types.service import BaseServiceTypes
7
+ from maleo_foundation.models.extended_types.service import ExtendedServiceTypes
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[BaseServiceTypes.GetSingleParameter],
14
- get_single_service_function:BaseServiceTypes.SyncGetSingleFunction,
13
+ get_single_parameters_class:Type[ExtendedServiceTypes.GetSingleParameter],
14
+ get_single_service_function:ExtendedServiceTypes.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:BaseServiceTypes.GetSingleResult = get_single_service_function(parameters=get_single_parameters, **additional_get_parameters)
33
+ service_result:ExtendedServiceTypes.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)
@@ -3,11 +3,11 @@ from .enums import BaseEnums
3
3
  from .schemas import BaseSchemas
4
4
  from .transfers import BaseTransfers
5
5
  from .responses import BaseResponses
6
- from .types import BaseTypes
6
+ from .extended_types import ExtendedTypes
7
7
 
8
8
  class BaseModels:
9
9
  Enums = BaseEnums
10
10
  Schemas = BaseSchemas
11
11
  Transfers = BaseTransfers
12
12
  Responses = BaseResponses
13
- Types = BaseTypes
13
+ ExtendedTypes = ExtendedTypes
@@ -0,0 +1,9 @@
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
@@ -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 BaseClientTypes:
6
+ class ExtendedClientTypes:
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 BaseQueryTypes:
6
+ class ExtendedQueryTypes:
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 BaseServiceTypes:
6
+ class ExtendedServiceTypes:
7
7
  GetMultipleParameter = BaseServiceParametersTransfers.GetMultiple
8
8
 
9
9
  GetMultipleResult = Union[
@@ -0,0 +1,4 @@
1
+ from __future__ import annotations
2
+
3
+ class BaseTypes:
4
+ pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.0.27
3
+ Version: 0.0.28
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -27,6 +27,10 @@ maleo_foundation/middlewares/cors.py
27
27
  maleo_foundation/models/__init__.py
28
28
  maleo_foundation/models/enums.py
29
29
  maleo_foundation/models/responses.py
30
+ maleo_foundation/models/extended_types/__init__.py
31
+ maleo_foundation/models/extended_types/client.py
32
+ maleo_foundation/models/extended_types/query.py
33
+ maleo_foundation/models/extended_types/service.py
30
34
  maleo_foundation/models/schemas/__init__.py
31
35
  maleo_foundation/models/schemas/general.py
32
36
  maleo_foundation/models/schemas/parameter.py
@@ -47,11 +51,8 @@ maleo_foundation/models/transfers/results/service/query.py
47
51
  maleo_foundation/models/transfers/results/service/controllers/__init__.py
48
52
  maleo_foundation/models/transfers/results/service/controllers/rest.py
49
53
  maleo_foundation/models/types/__init__.py
50
- maleo_foundation/models/types/client.py
51
54
  maleo_foundation/models/types/general.py
52
55
  maleo_foundation/models/types/parameter.py
53
- maleo_foundation/models/types/query.py
54
- maleo_foundation/models/types/service.py
55
56
  maleo_foundation/utils/__init__.py
56
57
  maleo_foundation/utils/exceptions.py
57
58
  maleo_foundation/utils/logger.py
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "maleo_foundation"
7
- version = "0.0.27"
7
+ version = "0.0.28"
8
8
  description = "Foundation package for Maleo"
9
9
  authors = [
10
10
  { name = "Agra Bima Yuda", email = "agra@nexmedis.com" }
@@ -1,13 +0,0 @@
1
- from __future__ import annotations
2
- from .general import BaseGeneralTypes
3
- # from .parameter import BaseParameterTypes
4
- from .query import BaseQueryTypes
5
- from .service import BaseServiceTypes
6
- from .client import BaseClientTypes
7
-
8
- class BaseTypes:
9
- General = BaseGeneralTypes
10
- # Parameter = BaseParameterTypes
11
- Query = BaseQueryTypes
12
- Service = BaseServiceTypes
13
- Client = BaseClientTypes