maleo-enums 0.0.30__tar.gz → 0.0.34__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 (23) hide show
  1. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/PKG-INFO +2 -2
  2. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/maleo_enums.egg-info/PKG-INFO +2 -2
  3. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/maleo_enums.egg-info/requires.txt +1 -1
  4. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/pyproject.toml +2 -2
  5. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/src/connection.py +25 -0
  6. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/LICENSE +0 -0
  7. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/README.md +0 -0
  8. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/maleo_enums.egg-info/SOURCES.txt +0 -0
  9. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/maleo_enums.egg-info/dependency_links.txt +0 -0
  10. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/maleo_enums.egg-info/top_level.txt +0 -0
  11. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/setup.cfg +0 -0
  12. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/src/__init__.py +0 -0
  13. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/src/cardinality.py +0 -0
  14. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/src/environment.py +0 -0
  15. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/src/expiration.py +0 -0
  16. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/src/identity.py +0 -0
  17. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/src/medical.py +0 -0
  18. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/src/order.py +0 -0
  19. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/src/organization.py +0 -0
  20. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/src/service.py +0 -0
  21. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/src/status.py +0 -0
  22. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/src/system.py +0 -0
  23. {maleo_enums-0.0.30 → maleo_enums-0.0.34}/src/user.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo-enums
3
- Version: 0.0.30
3
+ Version: 0.0.34
4
4
  Summary: Enums package for MaleoSuite
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: Proprietary
@@ -15,7 +15,7 @@ Requires-Dist: colorama>=0.4.6
15
15
  Requires-Dist: distlib>=0.4.0
16
16
  Requires-Dist: filelock>=3.19.1
17
17
  Requires-Dist: identify>=2.6.13
18
- Requires-Dist: maleo-types>=0.0.12
18
+ Requires-Dist: maleo-types>=0.0.14
19
19
  Requires-Dist: mypy_extensions>=1.1.0
20
20
  Requires-Dist: nodeenv>=1.9.1
21
21
  Requires-Dist: packaging>=25.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo-enums
3
- Version: 0.0.30
3
+ Version: 0.0.34
4
4
  Summary: Enums package for MaleoSuite
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: Proprietary
@@ -15,7 +15,7 @@ Requires-Dist: colorama>=0.4.6
15
15
  Requires-Dist: distlib>=0.4.0
16
16
  Requires-Dist: filelock>=3.19.1
17
17
  Requires-Dist: identify>=2.6.13
18
- Requires-Dist: maleo-types>=0.0.12
18
+ Requires-Dist: maleo-types>=0.0.14
19
19
  Requires-Dist: mypy_extensions>=1.1.0
20
20
  Requires-Dist: nodeenv>=1.9.1
21
21
  Requires-Dist: packaging>=25.0
@@ -6,7 +6,7 @@ colorama>=0.4.6
6
6
  distlib>=0.4.0
7
7
  filelock>=3.19.1
8
8
  identify>=2.6.13
9
- maleo-types>=0.0.12
9
+ maleo-types>=0.0.14
10
10
  mypy_extensions>=1.1.0
11
11
  nodeenv>=1.9.1
12
12
  packaging>=25.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "maleo-enums"
7
- version = "0.0.30"
7
+ version = "0.0.34"
8
8
  description = "Enums package for MaleoSuite"
9
9
  authors = [
10
10
  { name = "Agra Bima Yuda", email = "agra@nexmedis.com" }
@@ -21,7 +21,7 @@ dependencies = [
21
21
  "distlib>=0.4.0",
22
22
  "filelock>=3.19.1",
23
23
  "identify>=2.6.13",
24
- "maleo-types>=0.0.12",
24
+ "maleo-types>=0.0.14",
25
25
  "mypy_extensions>=1.1.0",
26
26
  "nodeenv>=1.9.1",
27
27
  "packaging>=25.0",
@@ -64,6 +64,31 @@ class Protocol(StrEnum):
64
64
  raise ValueError(f"Unknown scheme: {scheme}")
65
65
 
66
66
 
67
+ ProtocolT = TypeVar("ProtocolT", bound=Protocol)
68
+ OptProtocol = Protocol | None
69
+ OptProtocolT = TypeVar("OptProtocolT", bound=OptProtocol)
70
+
71
+
72
+ class ProtocolMixin(BaseModel, Generic[OptProtocolT]):
73
+ method: Annotated[OptProtocolT, Field(..., description="Protocol")]
74
+
75
+
76
+ ListOfProtocols = list[Protocol]
77
+ ListOfProtocolsT = TypeVar("ListOfProtocolsT", bound=ListOfProtocols)
78
+ OptListOfProtocols = ListOfProtocols | None
79
+ OptListOfProtocolsT = TypeVar("OptListOfProtocolsT", bound=OptListOfProtocols)
80
+
81
+
82
+ class ProtocolsMixin(BaseModel, Generic[OptListOfProtocolsT]):
83
+ methods: Annotated[OptListOfProtocolsT, Field(..., description="Protocols")]
84
+
85
+
86
+ SeqOfProtocols = Sequence[Protocol]
87
+ SeqOfProtocolsT = TypeVar("SeqOfProtocolsT", bound=SeqOfProtocols)
88
+ OptSeqOfProtocols = SeqOfProtocols | None
89
+ OptSeqOfProtocolsT = TypeVar("OptSeqOfProtocolsT", bound=OptSeqOfProtocols)
90
+
91
+
67
92
  class Method(StrEnum):
68
93
  GET = "GET"
69
94
  POST = "POST"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes