maleo-enums 0.0.23__tar.gz → 0.0.26__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo-enums
3
- Version: 0.0.23
3
+ Version: 0.0.26
4
4
  Summary: Enums package for MaleoSuite
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: Proprietary
@@ -14,7 +14,7 @@ Requires-Dist: colorama>=0.4.6
14
14
  Requires-Dist: distlib>=0.4.0
15
15
  Requires-Dist: filelock>=3.19.1
16
16
  Requires-Dist: identify>=2.6.13
17
- Requires-Dist: maleo-types>=0.0.5
17
+ Requires-Dist: maleo-types>=0.0.6
18
18
  Requires-Dist: mypy_extensions>=1.1.0
19
19
  Requires-Dist: nodeenv>=1.9.1
20
20
  Requires-Dist: packaging>=25.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo-enums
3
- Version: 0.0.23
3
+ Version: 0.0.26
4
4
  Summary: Enums package for MaleoSuite
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: Proprietary
@@ -14,7 +14,7 @@ Requires-Dist: colorama>=0.4.6
14
14
  Requires-Dist: distlib>=0.4.0
15
15
  Requires-Dist: filelock>=3.19.1
16
16
  Requires-Dist: identify>=2.6.13
17
- Requires-Dist: maleo-types>=0.0.5
17
+ Requires-Dist: maleo-types>=0.0.6
18
18
  Requires-Dist: mypy_extensions>=1.1.0
19
19
  Requires-Dist: nodeenv>=1.9.1
20
20
  Requires-Dist: packaging>=25.0
@@ -12,6 +12,6 @@ src/connection.py
12
12
  src/environment.py
13
13
  src/expiration.py
14
14
  src/order.py
15
+ src/role.py
15
16
  src/service.py
16
- src/status.py
17
- src/system_role.py
17
+ src/status.py
@@ -5,7 +5,7 @@ colorama>=0.4.6
5
5
  distlib>=0.4.0
6
6
  filelock>=3.19.1
7
7
  identify>=2.6.13
8
- maleo-types>=0.0.5
8
+ maleo-types>=0.0.6
9
9
  mypy_extensions>=1.1.0
10
10
  nodeenv>=1.9.1
11
11
  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.23"
7
+ version = "0.0.26"
8
8
  description = "Enums package for MaleoSuite"
9
9
  authors = [
10
10
  { name = "Agra Bima Yuda", email = "agra@nexmedis.com" }
@@ -20,7 +20,7 @@ dependencies = [
20
20
  "distlib>=0.4.0",
21
21
  "filelock>=3.19.1",
22
22
  "identify>=2.6.13",
23
- "maleo-types>=0.0.5",
23
+ "maleo-types>=0.0.6",
24
24
  "mypy_extensions>=1.1.0",
25
25
  "nodeenv>=1.9.1",
26
26
  "packaging>=25.0",
@@ -2,7 +2,17 @@ from enum import StrEnum
2
2
  from maleo.types.string import ListOfStrings
3
3
 
4
4
 
5
- class Key(StrEnum):
5
+ class Organization(StrEnum):
6
+ OWNER = "owner"
7
+ ADMINISTRATOR = "administrator"
8
+ USER = "user"
9
+
10
+ @classmethod
11
+ def choices(cls) -> ListOfStrings:
12
+ return [e.value for e in cls]
13
+
14
+
15
+ class System(StrEnum):
6
16
  ADMINISTRATOR = "administrator"
7
17
  ANALYST = "analyst"
8
18
  ENGINEER = "engineer"
File without changes
File without changes
File without changes
File without changes
File without changes