ryry-cli 2.74__tar.gz → 2.75__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 (28) hide show
  1. {ryry_cli-2.74 → ryry_cli-2.75}/PKG-INFO +1 -1
  2. ryry_cli-2.75/ryry/constant.py +4 -0
  3. {ryry_cli-2.74 → ryry_cli-2.75}/ryry/taskUtils.py +35 -32
  4. {ryry_cli-2.74 → ryry_cli-2.75}/ryry_cli.egg-info/PKG-INFO +1 -1
  5. {ryry_cli-2.74 → ryry_cli-2.75}/setup.py +1 -1
  6. ryry_cli-2.74/ryry/constant.py +0 -4
  7. {ryry_cli-2.74 → ryry_cli-2.75}/LICENSE +0 -0
  8. {ryry_cli-2.74 → ryry_cli-2.75}/README.md +0 -0
  9. {ryry_cli-2.74 → ryry_cli-2.75}/ryry/__init__.py +0 -0
  10. {ryry_cli-2.74 → ryry_cli-2.75}/ryry/main.py +0 -0
  11. {ryry_cli-2.74 → ryry_cli-2.75}/ryry/ryry_server_socket.py +0 -0
  12. {ryry_cli-2.74 → ryry_cli-2.75}/ryry/ryry_service.py +0 -0
  13. {ryry_cli-2.74 → ryry_cli-2.75}/ryry/ryry_webapi.py +0 -0
  14. {ryry_cli-2.74 → ryry_cli-2.75}/ryry/ryry_widget.py +0 -0
  15. {ryry_cli-2.74 → ryry_cli-2.75}/ryry/script_template/__init__.py +0 -0
  16. {ryry_cli-2.74 → ryry_cli-2.75}/ryry/script_template/main.py +0 -0
  17. {ryry_cli-2.74 → ryry_cli-2.75}/ryry/script_template/run.py +0 -0
  18. {ryry_cli-2.74 → ryry_cli-2.75}/ryry/server_func.py +0 -0
  19. {ryry_cli-2.74 → ryry_cli-2.75}/ryry/store.py +0 -0
  20. {ryry_cli-2.74 → ryry_cli-2.75}/ryry/task.py +0 -0
  21. {ryry_cli-2.74 → ryry_cli-2.75}/ryry/upload.py +0 -0
  22. {ryry_cli-2.74 → ryry_cli-2.75}/ryry/utils.py +0 -0
  23. {ryry_cli-2.74 → ryry_cli-2.75}/ryry_cli.egg-info/SOURCES.txt +0 -0
  24. {ryry_cli-2.74 → ryry_cli-2.75}/ryry_cli.egg-info/dependency_links.txt +0 -0
  25. {ryry_cli-2.74 → ryry_cli-2.75}/ryry_cli.egg-info/entry_points.txt +0 -0
  26. {ryry_cli-2.74 → ryry_cli-2.75}/ryry_cli.egg-info/requires.txt +0 -0
  27. {ryry_cli-2.74 → ryry_cli-2.75}/ryry_cli.egg-info/top_level.txt +0 -0
  28. {ryry_cli-2.74 → ryry_cli-2.75}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 2.74
3
+ Version: 2.75
4
4
  Summary: ryry tools
5
5
  Home-page: https://github.com/dalipenMedia
6
6
  Author: dalipen
@@ -0,0 +1,4 @@
1
+ #!!!!! do not change this file !!!!!
2
+ app_version="2.75"
3
+ app_bulld_anchor="Noh_2024-11-29 14:12:33.494076"
4
+ app_name="ryry-cli"
@@ -240,38 +240,41 @@ def notifyCounterIfNeed():
240
240
  }
241
241
  })
242
242
 
243
- try:
244
- import matplotlib.pyplot as plt
245
- plt.figure(figsize=(8,3))
246
- plt.rcParams.update({
247
- 'font.size': 7
248
- })
249
- plt.bar(t_l, s_l, color='g', label='success')
250
- plt.bar(t_l, f_l, bottom=s_l, color='r', label='fail')
251
- plt.title(f'[{socket.gethostname()}] [{yesterday}] success/fail={s_cnt}/{f_cnt}')
252
- plt.xlabel('time')
253
- plt.xticks(ticks=t_l,rotation=45)
254
- plt.ylabel('count')
255
- plt.subplots_adjust(bottom=0.25)
256
- plt.legend()
257
- fff = os.path.join(os.path.dirname(os.path.abspath(__file__)), "plt.png")
258
- plt.savefig(fff)
259
- with open(fff, "rb") as f:
260
- encode_string = str(base64.b64encode(f.read()), encoding='utf-8')
261
- md5 = hashlib.md5()
262
- md5.update(base64.b64decode(encode_string))
263
- hash = md5.hexdigest()
264
- notifyWechatRobot({
265
- "msgtype": "image",
266
- "image": {
267
- "base64": encode_string,
268
- "md5": hash
269
- }
270
- })
271
- os.remove(fff)
272
- os.remove(task_counter_file)
273
- except:
274
- pass
243
+ import subprocess, platform
244
+ #darwin Command Line cannot create pyplot gui because not application with gui
245
+ if platform.system() != 'Darwin':
246
+ try:
247
+ import matplotlib.pyplot as plt
248
+ plt.figure(figsize=(8,3))
249
+ plt.rcParams.update({
250
+ 'font.size': 7
251
+ })
252
+ plt.bar(t_l, s_l, color='g', label='success')
253
+ plt.bar(t_l, f_l, bottom=s_l, color='r', label='fail')
254
+ plt.title(f'[{socket.gethostname()}] [{yesterday}] success/fail={s_cnt}/{f_cnt}')
255
+ plt.xlabel('time')
256
+ plt.xticks(ticks=t_l,rotation=45)
257
+ plt.ylabel('count')
258
+ plt.subplots_adjust(bottom=0.25)
259
+ plt.legend()
260
+ fff = os.path.join(os.path.dirname(os.path.abspath(__file__)), "plt.png")
261
+ plt.savefig(fff)
262
+ with open(fff, "rb") as f:
263
+ encode_string = str(base64.b64encode(f.read()), encoding='utf-8')
264
+ md5 = hashlib.md5()
265
+ md5.update(base64.b64decode(encode_string))
266
+ hash = md5.hexdigest()
267
+ notifyWechatRobot({
268
+ "msgtype": "image",
269
+ "image": {
270
+ "base64": encode_string,
271
+ "md5": hash
272
+ }
273
+ })
274
+ os.remove(fff)
275
+ os.remove(task_counter_file)
276
+ except:
277
+ pass
275
278
 
276
279
  def saveCounter(taskUUID, duration, isSuccess):
277
280
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 2.74
3
+ Version: 2.75
4
4
  Summary: ryry tools
5
5
  Home-page: https://github.com/dalipenMedia
6
6
  Author: dalipen
@@ -3,7 +3,7 @@ import os
3
3
  import subprocess
4
4
  import datetime
5
5
 
6
- ryry_version = "2.74"
6
+ ryry_version = "2.75"
7
7
  cur_dir = os.path.dirname(os.path.abspath(__file__))
8
8
  constanspy = os.path.join(cur_dir, "ryry", "constant.py")
9
9
  try:
@@ -1,4 +0,0 @@
1
- #!!!!! do not change this file !!!!!
2
- app_version="2.74"
3
- app_bulld_anchor="Noh_2024-11-28 22:09:48.575754"
4
- app_name="ryry-cli"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes