funboost 43.6__py3-none-any.whl → 43.7__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 funboost might be problematic. Click here for more details.

funboost/__init__.py CHANGED
@@ -13,7 +13,7 @@ set_frame_config这个模块的 use_config_form_funboost_config_module() 是核
13
13
  这段注释说明和使用的用户无关,只和框架开发人员有关.
14
14
  '''
15
15
 
16
- __version__ = "43.6"
16
+ __version__ = "43.7"
17
17
 
18
18
  from funboost.set_frame_config import show_frame_config
19
19
 
@@ -71,21 +71,23 @@ def fabric_deploy(booster: Booster, host, port, user, password,
71
71
  task_fun.fabric_deploy('192.168.6.133', 22, 'ydf', '123456', process_num=2) 只需要这样就可以自动部署在远程机器运行,无需任何额外操作。
72
72
  """
73
73
  # print(locals())
74
- python_proj_dir = sys.path[1].replace('\\', '/') + '/'
74
+ python_proj_dir = Path(sys.path[1]).resolve().as_posix() + '/'
75
75
  python_proj_dir_short = python_proj_dir.split('/')[-2]
76
76
  # 获取被调用函数所在模块文件名
77
- file_name = sys._getframe(2).f_code.co_filename.replace('\\', '/') # noqa
77
+ file_name = Path(sys._getframe(2).f_code.co_filename).resolve().as_posix() # noqa
78
78
  relative_file_name = Path(file_name).relative_to(Path(python_proj_dir)).as_posix()
79
79
  relative_module = relative_file_name.replace('/', '.')[:-3] # -3是去掉.py
80
80
  func_name = booster.consuming_function.__name__
81
- module_obj = PathHelper(sys._getframe(2).f_code.co_filename).import_as_module() # noqa
82
81
 
83
- """以下这种是为了兼容 函数没有@boost.而是使用 boosterxx = BoostersManager.build_booster() 来创建的booster. 下面的 python_exec_str 中需要用到 func_name """
82
+ """以下这种是为了兼容 函数没有@boost,而是使用 boosterxx = BoostersManager.build_booster() 来创建的booster. 下面的 python_exec_str 中需要用到 func_name
83
+ 也可以远程时候使用 BoostersManager.get_booster(queue_name),然后启动消费. 因为import模块后,就能启动了.
84
+ """
85
+ module_obj = PathHelper(sys._getframe(2).f_code.co_filename).import_as_module() # noqa
84
86
  for var_name,var_value in module_obj.__dict__.items():
85
87
  if isinstance(var_value,Booster) and var_value.queue_name == booster.queue_name:
86
88
  func_name = var_name
87
89
 
88
- # print(file_name, python_proj_dir, relative_module, func_name)
90
+ logger.debug([file_name, python_proj_dir, python_proj_dir_short,relative_module, func_name])
89
91
  # print(relative_module)
90
92
  if user == 'root': # 文件夹会被自动创建,无需用户创建。
91
93
  remote_dir = f'/codes/{python_proj_dir_short}'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: funboost
3
- Version: 43.6
3
+ Version: 43.7
4
4
  Summary: pip install funboost,python全功能分布式函数调度框架,。支持python所有类型的并发模式和一切知名消息队列中间件,支持如 celery dramatiq等框架整体作为funboost中间件,python函数加速器,框架包罗万象,用户能想到的控制功能全都有。一统编程思维,兼容50% python业务场景,适用范围广。只需要一行代码即可分布式执行python一切函数,99%用过funboost的pythoner 感受是 简易 方便 强劲 强大,相见恨晚
5
5
  Home-page: https://github.com/ydf0509/funboost
6
6
  Author: bfzs
@@ -1,4 +1,4 @@
1
- funboost/__init__.py,sha256=d69oDPS-2ViwXUkHN7P-OC1DiWpXIz8fOx1K_V4qC8I,3832
1
+ funboost/__init__.py,sha256=PLzAqSyCMps0EATLKAAgKgwQnNDonPSH37xnvU7gv7A,3832
2
2
  funboost/__init__old.py,sha256=07A1MLsxLtuRQQOIfDyphddOwNBrGe34enoHWAnjV14,20379
3
3
  funboost/__main__.py,sha256=-6Nogi666Y0LN8fVm3JmHGTOk8xEGWvotW_GDbSaZME,1065
4
4
  funboost/constant.py,sha256=Yxt3WJt9D8ybcrgiojOy0qjnq5mffwTnTJplerGL0Oo,7188
@@ -84,7 +84,7 @@ funboost/core/active_cousumer_info_getter.py,sha256=09fEc-BTEIRfDDfHmOvKnMjLjtOy
84
84
  funboost/core/booster.py,sha256=UjkMjhEYchUB-FyaFhrVM1XeMTpDdONBKjZXa4ADlgQ,15845
85
85
  funboost/core/current_task.py,sha256=rAIQVLqYqtlHVRkjl17yki-mqvuMb640ssGmto4RSdA,4864
86
86
  funboost/core/exceptions.py,sha256=pLF7BkRJAfDiWp2_xGZqencmwdPiSQI1NENbImExknY,1311
87
- funboost/core/fabric_deploy_helper.py,sha256=wJXR7pua3PVau63r3GFhPa_JlMgFnBsqdJFqYWrv7Sw,9598
87
+ funboost/core/fabric_deploy_helper.py,sha256=D72f7rP6Qj6t9MRspiWriBns6cRyBvl48S0aBoavYEA,9781
88
88
  funboost/core/func_params_model.py,sha256=ChxvSq_iVuYnGR_CdN9h9qNtvBq8sZ4BocdzCjgsQHc,18167
89
89
  funboost/core/function_result_status_config.py,sha256=PyjqAQOiwsLt28sRtH-eYRjiI3edPFO4Nde0ILFRReE,1764
90
90
  funboost/core/function_result_status_saver.py,sha256=UdokGSwU630t70AZnT9Ecj7GpYXORBDivlc9kadoI2E,9172
@@ -264,9 +264,9 @@ funboost/utils/pysnooper_ydf/utils.py,sha256=evSmGi_Oul7vSP47AJ0DLjFwoCYCfunJZ1m
264
264
  funboost/utils/pysnooper_ydf/variables.py,sha256=QejRDESBA06KG9OH4sBT4J1M55eaU29EIHg8K_igaXo,3693
265
265
  funboost/utils/times/__init__.py,sha256=Y4bQD3SIA_E7W2YvHq2Qdi0dGM4H2DxyFNdDOuFOq1w,2417
266
266
  funboost/utils/times/version.py,sha256=11XfnZVVzOgIhXXdeN_mYfdXThfrsbQHpA0wCjz-hpg,17
267
- funboost-43.6.dist-info/LICENSE,sha256=9EPP2ktG_lAPB8PjmWV-c9BiaJHc_FP6pPLcUrUwx0E,11562
268
- funboost-43.6.dist-info/METADATA,sha256=3abU2sNFQyHTeXo3ijQ81LEyTAO1IahWpSIhX5FO--U,30440
269
- funboost-43.6.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
270
- funboost-43.6.dist-info/entry_points.txt,sha256=yMSSAGRzRAAhGyNNQHw24MooKlDZsaJ499_D6fPl58A,96
271
- funboost-43.6.dist-info/top_level.txt,sha256=K8WuKnS6MRcEWxP1NvbmCeujJq6TEfbsB150YROlRw0,9
272
- funboost-43.6.dist-info/RECORD,,
267
+ funboost-43.7.dist-info/LICENSE,sha256=9EPP2ktG_lAPB8PjmWV-c9BiaJHc_FP6pPLcUrUwx0E,11562
268
+ funboost-43.7.dist-info/METADATA,sha256=HTH5jburyOsmSvV6PPagicB17XHYJu6C0rohPnzBqdM,30440
269
+ funboost-43.7.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
270
+ funboost-43.7.dist-info/entry_points.txt,sha256=yMSSAGRzRAAhGyNNQHw24MooKlDZsaJ499_D6fPl58A,96
271
+ funboost-43.7.dist-info/top_level.txt,sha256=K8WuKnS6MRcEWxP1NvbmCeujJq6TEfbsB150YROlRw0,9
272
+ funboost-43.7.dist-info/RECORD,,