ezKit 1.0.0b3__py3-none-any.whl → 1.0.0b4__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.
- ezKit/utils.py +13 -0
- {ezKit-1.0.0b3.dist-info → ezKit-1.0.0b4.dist-info}/METADATA +1 -1
- {ezKit-1.0.0b3.dist-info → ezKit-1.0.0b4.dist-info}/RECORD +6 -6
- {ezKit-1.0.0b3.dist-info → ezKit-1.0.0b4.dist-info}/LICENSE +0 -0
- {ezKit-1.0.0b3.dist-info → ezKit-1.0.0b4.dist-info}/WHEEL +0 -0
- {ezKit-1.0.0b3.dist-info → ezKit-1.0.0b4.dist-info}/top_level.txt +0 -0
ezKit/utils.py
CHANGED
@@ -991,6 +991,19 @@ def json_sort(
|
|
991
991
|
logger.exception(e) if debug is True else next
|
992
992
|
return None
|
993
993
|
|
994
|
+
def json_to_file(
|
995
|
+
data: str = None,
|
996
|
+
file: str = None,
|
997
|
+
debug: bool = False,
|
998
|
+
**kwargs
|
999
|
+
) -> dict | None:
|
1000
|
+
try:
|
1001
|
+
json.dumps(data, file, indent=4, sort_keys=True, **kwargs)
|
1002
|
+
return True
|
1003
|
+
except Exception as e:
|
1004
|
+
logger.exception(e) if debug is True else next
|
1005
|
+
return False
|
1006
|
+
|
994
1007
|
|
995
1008
|
# --------------------------------------------------------------------------------------------------
|
996
1009
|
|
@@ -9,12 +9,12 @@ ezKit/plots.py,sha256=QUtoVfZ49ZSNcY8gcQ2TYVkMjDDzoW-myMtqTi5WN2U,5322
|
|
9
9
|
ezKit/redis.py,sha256=pY4SPlcgQ7S8IeY2xoDpxy-xCZxzZQrQJNAoWRsC1dI,1773
|
10
10
|
ezKit/reports.py,sha256=dBBggggCCLuk5YD6SjdUPuxTr3wiJojP3lA7dQfg6Pk,8898
|
11
11
|
ezKit/sendemail.py,sha256=PItznLBcZ6Om8NU7rep69m3QNZ9YkmOovup7pPGyY58,4840
|
12
|
-
ezKit/utils.py,sha256=
|
12
|
+
ezKit/utils.py,sha256=r9rWu1DMvlIjqFeWSjnVTVnn1AYi4K7bFvWt48WJ8eg,38083
|
13
13
|
ezKit/weixin.py,sha256=Sxm_yNEvcztFNCZyjZetVwqxoGoL2PJHlQABIWkd1pk,5075
|
14
14
|
ezKit/xftp.py,sha256=qbCqFcGe22TDBSisj0Zoz78tnydDWoOfvywWpXdfaGw,6982
|
15
15
|
ezKit/zabbix.py,sha256=EF0-tQ1FTMBqawXKf3JEoPYoAJmYENXXIm9T5ICSdHM,32345
|
16
|
-
ezKit-1.0.
|
17
|
-
ezKit-1.0.
|
18
|
-
ezKit-1.0.
|
19
|
-
ezKit-1.0.
|
20
|
-
ezKit-1.0.
|
16
|
+
ezKit-1.0.0b4.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
17
|
+
ezKit-1.0.0b4.dist-info/METADATA,sha256=Bu5k5kfIpAjKl9MJq7eJsN0HWQ_FXIloILQYvE5PiQA,196
|
18
|
+
ezKit-1.0.0b4.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
19
|
+
ezKit-1.0.0b4.dist-info/top_level.txt,sha256=aYLB_1WODsqNTsTFWcKP-BN0KCTKcV-HZJ4zlHkCFw8,6
|
20
|
+
ezKit-1.0.0b4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|