pytbox 0.3.1__py3-none-any.whl → 0.3.2__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.

Potentially problematic release.


This version of pytbox might be problematic. Click here for more details.

pytbox/log/logger.py CHANGED
@@ -97,7 +97,10 @@ class AppLogger:
97
97
  if self.enable_sls:
98
98
  self.sls.put_logs(level="INFO", msg=message, app=self.app_name, caller_filename=caller_filename, caller_lineno=caller_lineno, caller_function=caller_function, call_full_filename=call_full_filename)
99
99
  if feishu_notify:
100
- self.feishu(message)
100
+ self.feishu.extensions.send_message_notify(
101
+ title=f"自动化脚本告警: {self.app_name}",
102
+ content=message
103
+ )
101
104
 
102
105
  def warning(self, message: str):
103
106
  """记录警告级别日志"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytbox
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: A collection of Python integrations and utilities (Feishu, Dida365, VictoriaMetrics, ...)
5
5
  Author-email: mingming hou <houm01@foxmail.com>
6
6
  License-Expression: MIT
@@ -51,7 +51,7 @@ pytbox/feishu/endpoints.py,sha256=z3nPOZPC2JGDJlO7SusWBpRA33hZZ4Z-GBhI6F8L_u4,40
51
51
  pytbox/feishu/errors.py,sha256=79qFAHZw7jDj3gnWAjI1-W4tB0q1_aSfdjee4xzXeuI,1179
52
52
  pytbox/feishu/helpers.py,sha256=jhSkHiUw4822QBXx2Jw8AksogZdakZ-3QqvC3lB3qEI,201
53
53
  pytbox/feishu/typing.py,sha256=3hWkJgOi-v2bt9viMxkyvNHsPgrbAa0aZOxsZYg2vdM,122
54
- pytbox/log/logger.py,sha256=t5LEvuYTDixh67JOyX0ke1ukb9kT5PEaUSsQnDDck90,8921
54
+ pytbox/log/logger.py,sha256=sdxDdtt06j9qTDm9khm4RMAS_kDZMtQtgedVH6X7rMw,9055
55
55
  pytbox/log/victorialog.py,sha256=gffEiq38adv9sC5oZeMcyKghd3SGfRuqtZOFuqHQF6E,4139
56
56
  pytbox/mail/alimail.py,sha256=njKA3PUbIaiKFaxKvUObmklmEEHg2YA-O5rpgsgT5_w,5147
57
57
  pytbox/mail/client.py,sha256=RNgWhhTXFTpD43U4p7hbmnfRdmltuZmbm890gaZTzhI,6278
@@ -65,8 +65,8 @@ pytbox/utils/response.py,sha256=kXjlwt0WVmLRam2eu1shzX2cQ7ux4cCQryaPGYwle5g,1247
65
65
  pytbox/utils/richutils.py,sha256=Qy7DB8dowt2lINp07RfDCyd8EXpbdvlKslVnjiMn-5o,863
66
66
  pytbox/utils/timeutils.py,sha256=YqPZC3DVm0RjIxesBZQfKkT6LlJcuJy1a1r3rHMveng,18366
67
67
  pytbox/win/ad.py,sha256=-3pWfL3dElz-XoO4j4M9lrgu3KJtlhrS9gCWJBpafAU,1147
68
- pytbox-0.3.1.dist-info/METADATA,sha256=2JNJeSTV8TvbLWDcbgalpqYnhBsbXzHspe-ORSksCyI,6319
69
- pytbox-0.3.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
70
- pytbox-0.3.1.dist-info/entry_points.txt,sha256=YaTOJ2oPjOiv2SZwY0UC-UA9QS2phRH1oMvxGnxO0Js,43
71
- pytbox-0.3.1.dist-info/top_level.txt,sha256=YADgWue-Oe128ptN3J2hS3GB0Ncc5uZaSUM3e1rwswE,7
72
- pytbox-0.3.1.dist-info/RECORD,,
68
+ pytbox-0.3.2.dist-info/METADATA,sha256=A-q5WjlSISbCwYPVmujvraRt5i0SGj-1ajDUZPn88ak,6319
69
+ pytbox-0.3.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
70
+ pytbox-0.3.2.dist-info/entry_points.txt,sha256=YaTOJ2oPjOiv2SZwY0UC-UA9QS2phRH1oMvxGnxO0Js,43
71
+ pytbox-0.3.2.dist-info/top_level.txt,sha256=YADgWue-Oe128ptN3J2hS3GB0Ncc5uZaSUM3e1rwswE,7
72
+ pytbox-0.3.2.dist-info/RECORD,,
File without changes