u-toolkit 0.1.18__py3-none-any.whl → 0.1.19__py3-none-any.whl
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.
- u_toolkit/enum.py +6 -6
- u_toolkit/function.py +1 -1
- u_toolkit/helpers.py +2 -0
- {u_toolkit-0.1.18.dist-info → u_toolkit-0.1.19.dist-info}/METADATA +1 -1
- {u_toolkit-0.1.18.dist-info → u_toolkit-0.1.19.dist-info}/RECORD +7 -8
- u_toolkit/object.py +0 -0
- {u_toolkit-0.1.18.dist-info → u_toolkit-0.1.19.dist-info}/WHEEL +0 -0
- {u_toolkit-0.1.18.dist-info → u_toolkit-0.1.19.dist-info}/entry_points.txt +0 -0
u_toolkit/enum.py
CHANGED
@@ -15,29 +15,29 @@ __all__ = [
|
|
15
15
|
|
16
16
|
class NameEnum(StrEnum):
|
17
17
|
@staticmethod
|
18
|
-
def _generate_next_value_(name, *_, **__) -> str:
|
18
|
+
def _generate_next_value_(name: str, *_, **__) -> str:
|
19
19
|
return name
|
20
20
|
|
21
21
|
|
22
22
|
class PascalEnum(StrEnum):
|
23
23
|
@staticmethod
|
24
|
-
def _generate_next_value_(name, *_, **__) -> str:
|
24
|
+
def _generate_next_value_(name: str, *_, **__) -> str:
|
25
25
|
return to_pascal(name)
|
26
26
|
|
27
27
|
|
28
28
|
class CamelEnum(StrEnum):
|
29
29
|
@staticmethod
|
30
|
-
def _generate_next_value_(name, *_, **__) -> str:
|
30
|
+
def _generate_next_value_(name: str, *_, **__) -> str:
|
31
31
|
return to_camel(name)
|
32
32
|
|
33
33
|
|
34
34
|
class SnakeEnum(StrEnum):
|
35
35
|
@staticmethod
|
36
|
-
def _generate_next_value_(name, *_, **__) -> str:
|
36
|
+
def _generate_next_value_(name: str, *_, **__) -> str:
|
37
37
|
return to_snake(name)
|
38
38
|
|
39
39
|
|
40
40
|
class TitleEnum(StrEnum):
|
41
41
|
@staticmethod
|
42
|
-
def _generate_next_value_(name, *_, **__) -> str:
|
43
|
-
return name.replace("_", " ").title()
|
42
|
+
def _generate_next_value_(name: str, *_, **__) -> str:
|
43
|
+
return name.replace("_", " ").strip().title()
|
u_toolkit/function.py
CHANGED
u_toolkit/helpers.py
CHANGED
@@ -2,12 +2,11 @@ u_toolkit/__init__.py,sha256=7f_bFg1UERA4gyh3HjCAjOZo2cBUgElpwgX5x-Xk2WA,238
|
|
2
2
|
u_toolkit/alias_generators.py,sha256=KmPL1ViGJjptONffZUAX4ENvkldrwDylm_Ly5RYE8b4,963
|
3
3
|
u_toolkit/datetime.py,sha256=GOG0xa6yKeqvFXJkImK5Pt7wsPXnHMlNKju8deniGJ4,644
|
4
4
|
u_toolkit/decorators.py,sha256=rBZfXtWVfja6YMDqF9izjAiabRVyp4pAWOlwnN0HkUw,2396
|
5
|
-
u_toolkit/enum.py,sha256=
|
6
|
-
u_toolkit/function.py,sha256=
|
7
|
-
u_toolkit/helpers.py,sha256=
|
5
|
+
u_toolkit/enum.py,sha256=nEdcrvAkLc32YioEZSZJM6DClLM2G__mlJFQC64AvBo,895
|
6
|
+
u_toolkit/function.py,sha256=HgZcWd4IydNqUdUbS6A5pXVcAponGUZ2A8YKuiwHGjg,259
|
7
|
+
u_toolkit/helpers.py,sha256=QSkDZH90FfuNB0hWI1GA2KHFk1ajZMzNBr7ysuBdFTg,161
|
8
8
|
u_toolkit/logger.py,sha256=NOmdR24QfSuo1EMnetyFioa8pA8OYceYTlQ4qiQcBdE,209
|
9
9
|
u_toolkit/merge.py,sha256=kHrloud-nPti5j48zkdvaiy4mIJYqOVguixAjWC46kE,924
|
10
|
-
u_toolkit/object.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
10
|
u_toolkit/path.py,sha256=IkyIHcU9hKBCOZfF30FrKf4CfL-MH91fjeYF9EY7eos,128
|
12
11
|
u_toolkit/signature.py,sha256=-Q6n28PYBYYdd2OXBKESeVkL2rYpV6EaY3IVwQmzezQ,2161
|
13
12
|
u_toolkit/fastapi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -30,7 +29,7 @@ u_toolkit/sqlalchemy/type_vars.py,sha256=m2VeV41CBIK_1QX3w2kgz-n556sILAGZ-Kaz3TD
|
|
30
29
|
u_toolkit/sqlalchemy/orm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
31
30
|
u_toolkit/sqlalchemy/orm/fields.py,sha256=3zoYil23I6YLtc_59aHDt9w5l1NBTkePT9AfXI3DMiY,593
|
32
31
|
u_toolkit/sqlalchemy/orm/models.py,sha256=V8vf4ps3phAmwxyaFYK7pw8Igz7h097o4QBjKB0gwC8,705
|
33
|
-
u_toolkit-0.1.
|
34
|
-
u_toolkit-0.1.
|
35
|
-
u_toolkit-0.1.
|
36
|
-
u_toolkit-0.1.
|
32
|
+
u_toolkit-0.1.19.dist-info/METADATA,sha256=cjvH0qajiIc2SdR5lpo49DBtGS1yyaePHdgPBphwb60,366
|
33
|
+
u_toolkit-0.1.19.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
34
|
+
u_toolkit-0.1.19.dist-info/entry_points.txt,sha256=hTfAYCd5vvRiqgnJk2eBsoRIiIVB9pK8WZm3Q3jjKFU,45
|
35
|
+
u_toolkit-0.1.19.dist-info/RECORD,,
|
u_toolkit/object.py
DELETED
File without changes
|
File without changes
|
File without changes
|