maleo-foundation 0.0.65__tar.gz → 0.0.67__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.
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/PKG-INFO +1 -1
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/expanded_types/__init__.py +3 -1
- maleo_foundation-0.0.67/maleo_foundation/expanded_types/general.py +6 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/schemas/general.py +4 -1
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/transfers/parameters/general.py +5 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/types.py +11 -1
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation.egg-info/PKG-INFO +1 -1
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation.egg-info/SOURCES.txt +1 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/pyproject.toml +1 -1
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/README.md +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/__init__.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/clients/__init__.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/clients/general/__init__.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/clients/general/http.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/clients/google/__init__.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/clients/google/cloud/__init__.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/clients/google/cloud/logging.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/clients/google/cloud/secret.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/clients/google/cloud/storage.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/clients/utils/__init__.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/clients/utils/logger.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/constants.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/db/__init__.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/db/engine.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/db/manager.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/db/session.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/db/table.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/enums.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/expanded_types/client.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/expanded_types/query.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/expanded_types/service.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/extended_types.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/middlewares/__init__.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/middlewares/base.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/middlewares/cors.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/__init__.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/responses.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/schemas/__init__.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/schemas/parameter.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/schemas/result.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/transfers/__init__.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/transfers/parameters/__init__.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/transfers/parameters/client.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/transfers/parameters/service.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/transfers/results/__init__.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/transfers/results/client/__init__.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/transfers/results/client/controllers/__init__.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/transfers/results/client/controllers/http.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/transfers/results/client/service.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/transfers/results/service/__init__.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/transfers/results/service/controllers/__init__.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/transfers/results/service/controllers/rest.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/transfers/results/service/general.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/transfers/results/service/query.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/utils/__init__.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/utils/controller.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/utils/exceptions.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/utils/formatter/__init__.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/utils/formatter/case.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/utils/logger.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/utils/query.py +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation.egg-info/dependency_links.txt +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation.egg-info/requires.txt +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation.egg-info/top_level.txt +0 -0
- {maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/setup.cfg +0 -0
{maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/expanded_types/__init__.py
RENAMED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
|
+
from .general import BaseGeneralExpandedTypes
|
|
2
3
|
from .query import ExpandedQueryTypes
|
|
3
4
|
from .service import ExpandedServiceTypes
|
|
4
5
|
from .client import ExpandedClientTypes
|
|
5
6
|
|
|
6
|
-
class
|
|
7
|
+
class BaseExpandedTypes:
|
|
8
|
+
General = BaseGeneralExpandedTypes
|
|
7
9
|
Query = ExpandedQueryTypes
|
|
8
10
|
Service = ExpandedServiceTypes
|
|
9
11
|
Client = ExpandedClientTypes
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
from typing import Callable
|
|
2
|
+
from maleo_foundation.models.transfers.parameters.general import BaseGeneralParametersTransfers
|
|
3
|
+
|
|
4
|
+
class BaseGeneralExpandedTypes:
|
|
5
|
+
#* Expansion processor related types
|
|
6
|
+
FieldExpansionProcessor = Callable[[BaseGeneralParametersTransfers.FieldExpansionProcessor], None]
|
{maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/schemas/general.py
RENAMED
|
@@ -116,4 +116,7 @@ class BaseGeneralSchemas:
|
|
|
116
116
|
values["exp_dt"] = exp_dt
|
|
117
117
|
#* Convert `exp_dt` to timestamp (int)
|
|
118
118
|
values["exp"] = int(exp_dt.timestamp())
|
|
119
|
-
return values
|
|
119
|
+
return values
|
|
120
|
+
|
|
121
|
+
class Data(BaseModel):
|
|
122
|
+
data:BaseTypes.StringToAnyDict = Field(..., description="Data")
|
|
@@ -2,6 +2,11 @@ from __future__ import annotations
|
|
|
2
2
|
from maleo_foundation.models.schemas.general import BaseGeneralSchemas
|
|
3
3
|
|
|
4
4
|
class BaseGeneralParametersTransfers:
|
|
5
|
+
class FieldExpansionProcessor(
|
|
6
|
+
BaseGeneralSchemas.Expand,
|
|
7
|
+
BaseGeneralSchemas.Data
|
|
8
|
+
): pass
|
|
9
|
+
|
|
5
10
|
class GetSingleQuery(BaseGeneralSchemas.Statuses): pass
|
|
6
11
|
|
|
7
12
|
class BaseGetSingle(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from datetime import date, datetime
|
|
2
|
-
from typing import Optional, Union, Literal, List, Any
|
|
2
|
+
from typing import Dict, Optional, Union, Literal, List, Any
|
|
3
3
|
from uuid import UUID
|
|
4
4
|
from maleo_foundation.enums import BaseEnums
|
|
5
5
|
|
|
@@ -33,6 +33,16 @@ class BaseTypes:
|
|
|
33
33
|
#* Datetime-related types
|
|
34
34
|
OptionalDatetime = Optional[datetime]
|
|
35
35
|
|
|
36
|
+
#* Dict-related types
|
|
37
|
+
StringToAnyDict = Dict[str, Any]
|
|
38
|
+
OptionalStringToAnyDict = Optional[Dict[str, Any]]
|
|
39
|
+
ListOfStringToAnyDict = List[Dict[str, Any]]
|
|
40
|
+
OptionalListOfStringToAnyDict = Optional[List[Dict[str, Any]]]
|
|
41
|
+
IntToAnyDict = Dict[int, Any]
|
|
42
|
+
OptionalIntToAnyDict = Optional[Dict[int, Any]]
|
|
43
|
+
ListOfIntToAnyDict = List[Dict[int, Any]]
|
|
44
|
+
OptionalListOfIntToAnyDict = Optional[List[Dict[int, Any]]]
|
|
45
|
+
|
|
36
46
|
#* UUID-related types
|
|
37
47
|
ListOfUUIDs = List[UUID]
|
|
38
48
|
OptionalUUID = Optional[UUID]
|
|
@@ -27,6 +27,7 @@ maleo_foundation/db/session.py
|
|
|
27
27
|
maleo_foundation/db/table.py
|
|
28
28
|
maleo_foundation/expanded_types/__init__.py
|
|
29
29
|
maleo_foundation/expanded_types/client.py
|
|
30
|
+
maleo_foundation/expanded_types/general.py
|
|
30
31
|
maleo_foundation/expanded_types/query.py
|
|
31
32
|
maleo_foundation/expanded_types/service.py
|
|
32
33
|
maleo_foundation/middlewares/__init__.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/clients/general/__init__.py
RENAMED
|
File without changes
|
{maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/clients/general/http.py
RENAMED
|
File without changes
|
{maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/clients/google/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/clients/google/cloud/logging.py
RENAMED
|
File without changes
|
{maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/clients/google/cloud/secret.py
RENAMED
|
File without changes
|
{maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/clients/google/cloud/storage.py
RENAMED
|
File without changes
|
{maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/clients/utils/__init__.py
RENAMED
|
File without changes
|
{maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/clients/utils/logger.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/expanded_types/client.py
RENAMED
|
File without changes
|
{maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/expanded_types/query.py
RENAMED
|
File without changes
|
{maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/expanded_types/service.py
RENAMED
|
File without changes
|
|
File without changes
|
{maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/middlewares/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/schemas/__init__.py
RENAMED
|
File without changes
|
{maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/schemas/parameter.py
RENAMED
|
File without changes
|
{maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/schemas/result.py
RENAMED
|
File without changes
|
{maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/models/transfers/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/utils/formatter/__init__.py
RENAMED
|
File without changes
|
{maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation/utils/formatter/case.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_foundation-0.0.65 → maleo_foundation-0.0.67}/maleo_foundation.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|