funboost 44.5__py3-none-any.whl → 44.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 +3 -2
- funboost/constant.py +2 -0
- funboost/consumers/base_consumer.py +8 -2
- funboost/consumers/empty_consumer.py +26 -0
- funboost/consumers/redis_consumer.py +5 -5
- funboost/consumers/redis_consumer_ack_able.py +4 -2
- funboost/consumers/redis_stream_consumer.py +3 -2
- funboost/core/current_task.py +9 -2
- funboost/core/funboost_current_task_context_thread.py +12 -0
- funboost/core/func_params_model.py +10 -2
- funboost/factories/broker_kind__publsiher_consumer_type_map.py +3 -1
- funboost/factories/consumer_factory.py +9 -1
- funboost/factories/publisher_factotry.py +10 -1
- funboost/publishers/empty_publisher.py +31 -0
- funboost/set_frame_config.py +1 -1
- funboost/utils/class_utils.py +51 -0
- funboost/utils/decorators.py +1 -1
- funboost/utils/simple_data_class.py +17 -0
- funboost/utils/str_utils.py +51 -0
- {funboost-44.5.dist-info → funboost-44.7.dist-info}/METADATA +1 -1
- {funboost-44.5.dist-info → funboost-44.7.dist-info}/RECORD +25 -20
- {funboost-44.5.dist-info → funboost-44.7.dist-info}/LICENSE +0 -0
- {funboost-44.5.dist-info → funboost-44.7.dist-info}/WHEEL +0 -0
- {funboost-44.5.dist-info → funboost-44.7.dist-info}/entry_points.txt +0 -0
- {funboost-44.5.dist-info → funboost-44.7.dist-info}/top_level.txt +0 -0
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__ = "44.
|
|
16
|
+
__version__ = "44.7"
|
|
17
17
|
|
|
18
18
|
from funboost.set_frame_config import show_frame_config
|
|
19
19
|
|
|
@@ -31,12 +31,13 @@ from funboost.utils.paramiko_util import ParamikoFolderUploader
|
|
|
31
31
|
|
|
32
32
|
from funboost.consumers.base_consumer import (wait_for_possible_has_finish_all_tasks_by_conusmer_list,
|
|
33
33
|
FunctionResultStatus, AbstractConsumer)
|
|
34
|
-
|
|
34
|
+
from funboost.consumers.empty_consumer import EmptyConsumer
|
|
35
35
|
from funboost.core.exceptions import ExceptionForRetry, ExceptionForRequeue, ExceptionForPushToDlxqueue
|
|
36
36
|
from funboost.core.active_cousumer_info_getter import ActiveCousumerProcessInfoGetter
|
|
37
37
|
from funboost.core.msg_result_getter import HasNotAsyncResult, ResultFromMongo
|
|
38
38
|
from funboost.publishers.base_publisher import (PriorityConsumingControlConfig,
|
|
39
39
|
AbstractPublisher, AsyncResult, AioAsyncResult)
|
|
40
|
+
from funboost.publishers.empty_publisher import EmptyPublisher
|
|
40
41
|
from funboost.factories.broker_kind__publsiher_consumer_type_map import register_custom_broker
|
|
41
42
|
from funboost.factories.publisher_factotry import get_publisher
|
|
42
43
|
from funboost.factories.consumer_factory import get_consumer
|
funboost/constant.py
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# coding= utf-8
|
|
2
2
|
class BrokerEnum:
|
|
3
|
+
EMPTY = 'empty' # 空的实现,需要搭配 boost入参的 consumer_override_cls 和 publisher_override_cls使用,或者被继承。
|
|
4
|
+
|
|
3
5
|
RABBITMQ_AMQPSTORM = 'RABBITMQ_AMQPSTORM' # 使用 amqpstorm 包操作rabbitmq 作为 分布式消息队列,支持消费确认.强烈推荐这个作为funboost中间件。
|
|
4
6
|
RABBITMQ = RABBITMQ_AMQPSTORM
|
|
5
7
|
|
|
@@ -562,6 +562,9 @@ class AbstractConsumer(LoggerLevelSetterMixin, metaclass=abc.ABCMeta, ):
|
|
|
562
562
|
"""
|
|
563
563
|
self._do_not_delete_extra_from_msg = True
|
|
564
564
|
|
|
565
|
+
def user_custom_record_process_info_func(self,current_function_result_status:FunctionResultStatus): # 这个可以继承
|
|
566
|
+
pass
|
|
567
|
+
|
|
565
568
|
# noinspection PyProtectedMember
|
|
566
569
|
def _run(self, kw: dict, ):
|
|
567
570
|
# print(kw)
|
|
@@ -633,7 +636,7 @@ class AbstractConsumer(LoggerLevelSetterMixin, metaclass=abc.ABCMeta, ):
|
|
|
633
636
|
self._current_time_for_execute_task_times_every_unit_time = time.time()
|
|
634
637
|
self._consuming_function_cost_time_total_every_unit_time = 0
|
|
635
638
|
self._execute_task_times_every_unit_time = 0
|
|
636
|
-
|
|
639
|
+
self.user_custom_record_process_info_func(current_function_result_status) # 两种方式都可以自定义,记录结果.
|
|
637
640
|
if self.consumer_params.user_custom_record_process_info_func:
|
|
638
641
|
self.consumer_params.user_custom_record_process_info_func(current_function_result_status)
|
|
639
642
|
except BaseException as e:
|
|
@@ -657,7 +660,10 @@ class AbstractConsumer(LoggerLevelSetterMixin, metaclass=abc.ABCMeta, ):
|
|
|
657
660
|
try:
|
|
658
661
|
function_run = self.consuming_function
|
|
659
662
|
if self._consuming_function_is_asyncio:
|
|
663
|
+
fct._fct_local_data._asyncio_use_thread_concurrent_mode = True
|
|
660
664
|
function_run = sync_or_async_fun_deco(function_run)
|
|
665
|
+
else:
|
|
666
|
+
fct._fct_local_data._asynco_use_thread_concurrent_mode = False
|
|
661
667
|
function_timeout = self._get_priority_conf(kw, 'function_timeout')
|
|
662
668
|
function_run = function_run if self.consumer_params.consumin_function_decorator is None else self.consumer_params.consumin_function_decorator(function_run)
|
|
663
669
|
function_run = function_run if not function_timeout else self._concurrent_mode_dispatcher.timeout_deco(
|
|
@@ -823,7 +829,7 @@ class AbstractConsumer(LoggerLevelSetterMixin, metaclass=abc.ABCMeta, ):
|
|
|
823
829
|
try:
|
|
824
830
|
corotinue_obj = self.consuming_function(**function_only_params)
|
|
825
831
|
if not asyncio.iscoroutine(corotinue_obj):
|
|
826
|
-
log_msg = f'''当前设置的并发模式为 async 并发模式,但消费函数不是异步协程函数,请不要把消费函数 {self.consuming_function.__name__} 的 concurrent_mode
|
|
832
|
+
log_msg = f'''当前设置的并发模式为 async 并发模式,但消费函数不是异步协程函数,请不要把消费函数 {self.consuming_function.__name__} 的 concurrent_mode 设置错误'''
|
|
827
833
|
# self.logger.critical(msg=f'{log_msg} \n')
|
|
828
834
|
# self.error_file_logger.critical(msg=f'{log_msg} \n')
|
|
829
835
|
self.logger.critical(msg=log_msg)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# @Author : ydf
|
|
3
|
+
# @Time : 2023/8/8 0008 13:32
|
|
4
|
+
|
|
5
|
+
import abc
|
|
6
|
+
from funboost.consumers.base_consumer import AbstractConsumer
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class EmptyConsumer(AbstractConsumer, metaclass=abc.ABCMeta):
|
|
10
|
+
"""
|
|
11
|
+
空的消费者没实现,空的实现,需要搭配 boost入参的 consumer_override_cls 和 publisher_override_cls使用,或者被继承。
|
|
12
|
+
"""
|
|
13
|
+
def custom_init(self):
|
|
14
|
+
pass
|
|
15
|
+
|
|
16
|
+
@abc.abstractmethod
|
|
17
|
+
def _shedual_task(self):
|
|
18
|
+
raise NotImplemented('not realization')
|
|
19
|
+
|
|
20
|
+
@abc.abstractmethod
|
|
21
|
+
def _confirm_consume(self, kw):
|
|
22
|
+
raise NotImplemented('not realization')
|
|
23
|
+
|
|
24
|
+
@abc.abstractmethod
|
|
25
|
+
def _requeue(self, kw):
|
|
26
|
+
raise NotImplemented('not realization')
|
|
@@ -17,20 +17,20 @@ class RedisConsumer(AbstractConsumer, RedisMixin):
|
|
|
17
17
|
redis作为中间件实现的,使用redis list 结构实现的。
|
|
18
18
|
这个如果消费脚本在运行时候随意反复重启或者非正常关闭或者消费宕机,会丢失大批任务。高可靠需要用rabbitmq或者redis_ack_able或者redis_stream的中间件方式。
|
|
19
19
|
|
|
20
|
-
这个是复杂版,一次性拉取100
|
|
20
|
+
这个是复杂版,一次性拉取100个,减少和redis的交互,简单版在 funboost/consumers/redis_consumer_simple.py
|
|
21
21
|
"""
|
|
22
22
|
|
|
23
|
-
BROKER_EXCLUSIVE_CONFIG_DEFAULT = {'redis_bulk_push':1} #redis_bulk_push 是否redis批量推送
|
|
23
|
+
BROKER_EXCLUSIVE_CONFIG_DEFAULT = {'redis_bulk_push':1,'pull_msg_batch_size':100} #redis_bulk_push 是否redis批量推送
|
|
24
24
|
|
|
25
25
|
# noinspection DuplicatedCode
|
|
26
26
|
def _shedual_task(self):
|
|
27
|
+
pull_msg_batch_size = self.consumer_params.broker_exclusive_config['pull_msg_batch_size']
|
|
27
28
|
while True:
|
|
28
29
|
# if False:
|
|
29
30
|
# pass
|
|
30
31
|
with self.redis_db_frame.pipeline() as p:
|
|
31
|
-
|
|
32
|
-
p.
|
|
33
|
-
p.ltrim(self._queue_name, get_msg_batch_size, -1)
|
|
32
|
+
p.lrange(self._queue_name, 0, pull_msg_batch_size- 1)
|
|
33
|
+
p.ltrim(self._queue_name, pull_msg_batch_size, -1)
|
|
34
34
|
task_str_list = p.execute()[0]
|
|
35
35
|
if task_str_list:
|
|
36
36
|
# self.logger.debug(f'从redis的 [{self._queue_name}] 队列中 取出的消息是: {task_str_list} ')
|
|
@@ -99,6 +99,7 @@ class RedisConsumerAckAble(ConsumerConfirmMixinWithTheHelpOfRedisByHearbeat, Abs
|
|
|
99
99
|
# print(script_4(keys=["text_pipelien1","text_pipelien1b"]))
|
|
100
100
|
"""
|
|
101
101
|
|
|
102
|
+
BROKER_EXCLUSIVE_CONFIG_DEFAULT = { 'pull_msg_batch_size': 100}
|
|
102
103
|
|
|
103
104
|
def _shedual_task000(self):
|
|
104
105
|
# 可以采用lua脚本,也可以采用redis的watch配合pipeline使用。比代码分两行pop和zadd比还能减少一次io交互,还能防止丢失小概率一个任务。
|
|
@@ -122,8 +123,9 @@ class RedisConsumerAckAble(ConsumerConfirmMixinWithTheHelpOfRedisByHearbeat, Abs
|
|
|
122
123
|
time.sleep(0.5)
|
|
123
124
|
|
|
124
125
|
def _shedual_task(self):
|
|
125
|
-
|
|
126
|
-
|
|
126
|
+
pull_msg_batch_size = self.consumer_params.broker_exclusive_config['pull_msg_batch_size']
|
|
127
|
+
lua = f'''
|
|
128
|
+
local task_list = redis.call("lrange", KEYS[1],0,{pull_msg_batch_size-1})
|
|
127
129
|
redis.call("ltrim", KEYS[1],100,-1)
|
|
128
130
|
if (#task_list > 0) then
|
|
129
131
|
for task_index,task_value in ipairs(task_list)
|
|
@@ -14,7 +14,7 @@ class RedisStreamConsumer(AbstractConsumer, RedisMixin):
|
|
|
14
14
|
redis 的 stream 结构 作为中间件实现的。需要redis 5.0以上,redis stream结构 是redis的消息队列,概念类似kafka,功能远超 list结构。
|
|
15
15
|
"""
|
|
16
16
|
GROUP = 'funboost_group'
|
|
17
|
-
BROKER_EXCLUSIVE_CONFIG_DEFAULT = {'group': 'funboost_group'}
|
|
17
|
+
BROKER_EXCLUSIVE_CONFIG_DEFAULT = {'group': 'funboost_group','pull_msg_batch_size': 100}
|
|
18
18
|
|
|
19
19
|
def custom_init(self):
|
|
20
20
|
self.group = self.consumer_params.broker_exclusive_config['group'] or self.GROUP
|
|
@@ -33,6 +33,7 @@ class RedisStreamConsumer(AbstractConsumer, RedisMixin):
|
|
|
33
33
|
self.keep_circulating(60, block=False)(self._requeue_tasks_which_unconfirmed)()
|
|
34
34
|
|
|
35
35
|
def _shedual_task(self):
|
|
36
|
+
pull_msg_batch_size = self.consumer_params.broker_exclusive_config['pull_msg_batch_size']
|
|
36
37
|
|
|
37
38
|
try:
|
|
38
39
|
self.redis_db_frame.xgroup_create(self._queue_name,self.group , id=0, mkstream=True)
|
|
@@ -41,7 +42,7 @@ class RedisStreamConsumer(AbstractConsumer, RedisMixin):
|
|
|
41
42
|
while True:
|
|
42
43
|
# redis服务端必须是5.0以上,并且确保这个键的类型是stream不能是list数据结构。
|
|
43
44
|
results = self.redis_db_frame.xreadgroup(self.group, self.consumer_identification,
|
|
44
|
-
{self.queue_name: ">"}, count=
|
|
45
|
+
{self.queue_name: ">"}, count=pull_msg_batch_size, block=60 * 1000)
|
|
45
46
|
if results:
|
|
46
47
|
# self.logger.debug(f'从redis的 [{self._queue_name}] stream 中 取出的消息是: {results} ')
|
|
47
48
|
self._print_message_get_from_broker( results)
|
funboost/core/current_task.py
CHANGED
|
@@ -54,7 +54,7 @@ class __ThreadCurrentTask:
|
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
_fct_local_data = threading.local()
|
|
57
|
-
|
|
57
|
+
_fct_local_data._asyncio_use_thread_concurrent_mode = False
|
|
58
58
|
|
|
59
59
|
@property
|
|
60
60
|
def function_params(self):
|
|
@@ -146,7 +146,14 @@ class __AsyncioCurrentTask:
|
|
|
146
146
|
asyncio_current_task = __AsyncioCurrentTask()
|
|
147
147
|
|
|
148
148
|
def funboost_current_task():
|
|
149
|
-
|
|
149
|
+
if is_asyncio_environment():
|
|
150
|
+
if getattr(__ThreadCurrentTask._fct_local_data,'_asyncio_use_thread_concurrent_mode',None) is True:
|
|
151
|
+
# 如果用户使用的是默认的ConcurrentModeEnum.THREADING并发模式,那么也使用线程获取上下文
|
|
152
|
+
return thread_current_task
|
|
153
|
+
else:
|
|
154
|
+
return asyncio_current_task
|
|
155
|
+
else:
|
|
156
|
+
return thread_current_task
|
|
150
157
|
|
|
151
158
|
|
|
152
159
|
def get_current_taskid():
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# import threading
|
|
2
|
+
#
|
|
3
|
+
# from funboost.core.current_task import thread_current_task
|
|
4
|
+
#
|
|
5
|
+
#
|
|
6
|
+
# class FctThread(threading.Thread):
|
|
7
|
+
# thread_current_task__dict_key = 'thread_current_task__dict'
|
|
8
|
+
#
|
|
9
|
+
#
|
|
10
|
+
# def run(self):
|
|
11
|
+
# thread_current_task._fct_local_data.__dict__.update(getattr(self,self.thread_current_task__dict_key)) # 把funboost的消费线程上下文需要传递到线程上下文里面来.
|
|
12
|
+
# super().run()
|
|
@@ -178,13 +178,18 @@ class BoosterParams(BaseJsonAbleModel):
|
|
|
178
178
|
|
|
179
179
|
consuming_function: typing.Callable = None # 消费函数,在@boost时候不用指定,因为装饰器知道下面的函数.
|
|
180
180
|
|
|
181
|
-
broker_kind: str = BrokerEnum.
|
|
181
|
+
broker_kind: str = BrokerEnum.SQLITE_QUEUE # 中间件选型见3.1章节 https://funboost.readthedocs.io/zh/latest/articles/c3.html
|
|
182
182
|
|
|
183
183
|
broker_exclusive_config: dict = {} # 加上一个不同种类中间件非通用的配置,不同中间件自身独有的配置,不是所有中间件都兼容的配置,因为框架支持30种消息队列,消息队列不仅仅是一般的先进先出queue这么简单的概念,
|
|
184
184
|
# 例如kafka支持消费者组,rabbitmq也支持各种独特概念例如各种ack机制 复杂路由机制,有的中间件原生能支持消息优先级有的中间件不支持,每一种消息队列都有独特的配置参数意义,可以通过这里传递。每种中间件能传递的键值对可以看consumer类的 BROKER_EXCLUSIVE_CONFIG_DEFAULT
|
|
185
185
|
|
|
186
186
|
should_check_publish_func_params: bool = True # 消息发布时候是否校验消息发布内容,比如有的人发布消息,函数只接受a,b两个入参,他去传2个入参,或者传参不存在的参数名字, 如果消费函数你非要写*args,**kwargs,那就需要关掉发布消息时候的函数入参检查
|
|
187
187
|
|
|
188
|
+
consumer_override_cls: typing.Optional[typing.Type] = None # 使用 consumer_override_cls 和 publisher_override_cls 来自定义重写或新增消费者 发布者,见文档4.21b介绍,
|
|
189
|
+
publisher_override_cls: typing.Optional[typing.Type] = None
|
|
190
|
+
|
|
191
|
+
# func_params_is_pydantic_model: bool = False # funboost 兼容支持 函数娼还是 pydantic model类型,funboost在发布之前和取出来时候自己转化。
|
|
192
|
+
|
|
188
193
|
auto_generate_info: dict = {} # 自动生成的信息,不需要用户主动传参.
|
|
189
194
|
|
|
190
195
|
@root_validator(skip_on_failure=True)
|
|
@@ -245,6 +250,7 @@ class PriorityConsumingControlConfig(BaseJsonAbleModel):
|
|
|
245
250
|
misfire_grace_time: typing.Union[int, None] = None
|
|
246
251
|
other_extra_params: dict = None # 其他参数, 例如消息优先级 , priority_control_config=PriorityConsumingControlConfig(other_extra_params={'priroty': priorityxx}),
|
|
247
252
|
|
|
253
|
+
|
|
248
254
|
@root_validator(skip_on_failure=True)
|
|
249
255
|
def cehck_values(cls, values: dict):
|
|
250
256
|
if values['countdown'] and values['eta']:
|
|
@@ -266,6 +272,8 @@ class PublisherParams(BaseJsonAbleModel):
|
|
|
266
272
|
broker_kind: str = None
|
|
267
273
|
broker_exclusive_config: dict = {}
|
|
268
274
|
should_check_publish_func_params: bool = True # 消息发布时候是否校验消息发布内容,比如有的人发布消息,函数只接受a,b两个入参,他去传2个入参,或者传参不存在的参数名字, 如果消费函数你非要写*args,**kwargs,那就需要关掉发布消息时候的函数入参检查
|
|
275
|
+
publisher_override_cls: typing.Optional[typing.Type] = None
|
|
276
|
+
# func_params_is_pydantic_model: bool = False # funboost 兼容支持 函数娼还是 pydantic model类型,funboost在发布之前和取出来时候自己转化。
|
|
269
277
|
|
|
270
278
|
|
|
271
279
|
if __name__ == '__main__':
|
|
@@ -277,4 +285,4 @@ if __name__ == '__main__':
|
|
|
277
285
|
# print(PriorityConsumingControlConfig().get_str_dict())
|
|
278
286
|
|
|
279
287
|
print(BoosterParams(queue_name='3213', specify_concurrent_pool=FlexibleThreadPool(100)).json_pre())
|
|
280
|
-
print(PublisherParams.schema_json())
|
|
288
|
+
print(PublisherParams.schema_json())
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
from funboost.publishers.empty_publisher import EmptyPublisher
|
|
4
4
|
from funboost.publishers.http_publisher import HTTPPublisher
|
|
5
5
|
from funboost.publishers.nats_publisher import NatsPublisher
|
|
6
6
|
from funboost.publishers.peewee_publisher import PeeweePublisher
|
|
@@ -25,6 +25,7 @@ from funboost.publishers.redis_stream_publisher import RedisStreamPublisher
|
|
|
25
25
|
from funboost.publishers.mqtt_publisher import MqttPublisher
|
|
26
26
|
from funboost.publishers.httpsqs_publisher import HttpsqsPublisher
|
|
27
27
|
|
|
28
|
+
from funboost.consumers.empty_consumer import EmptyConsumer
|
|
28
29
|
from funboost.consumers.redis_consumer_priority import RedisPriorityConsumer
|
|
29
30
|
from funboost.consumers.redis_pubsub_consumer import RedisPbSubConsumer
|
|
30
31
|
from funboost.consumers.http_consumer import HTTPConsumer
|
|
@@ -80,6 +81,7 @@ broker_kind__publsiher_consumer_type_map = {
|
|
|
80
81
|
BrokerEnum.PEEWEE: (PeeweePublisher, PeeweeConsumer),
|
|
81
82
|
BrokerEnum.REDIS_PUBSUB: (RedisPubSubPublisher, RedisPbSubConsumer),
|
|
82
83
|
BrokerEnum.REIDS_ACK_USING_TIMEOUT: (RedisPublisher, RedisConsumerAckUsingTimeout),
|
|
84
|
+
BrokerEnum.EMPTY:(EmptyPublisher,EmptyConsumer),
|
|
83
85
|
|
|
84
86
|
}
|
|
85
87
|
|
|
@@ -20,4 +20,12 @@ def get_consumer(boost_params: BoosterParams) -> AbstractConsumer:
|
|
|
20
20
|
|
|
21
21
|
if boost_params.broker_kind not in broker_kind__publsiher_consumer_type_map:
|
|
22
22
|
raise ValueError(f'设置的中间件种类数字不正确,你设置的值是 {boost_params.broker_kind} ')
|
|
23
|
-
|
|
23
|
+
consumer_cls = broker_kind__publsiher_consumer_type_map[boost_params.broker_kind][1]
|
|
24
|
+
if not boost_params.consumer_override_cls:
|
|
25
|
+
return consumer_cls(boost_params)
|
|
26
|
+
else:
|
|
27
|
+
ConsumerClsOverride = type(f'{consumer_cls.__name__}__{boost_params.consumer_override_cls.__name__}', (boost_params.consumer_override_cls, consumer_cls, AbstractConsumer), {})
|
|
28
|
+
# class ConsumerClsOverride(boost_params.consumer_override_cls, consumer_cls, AbstractConsumer):
|
|
29
|
+
# pass
|
|
30
|
+
|
|
31
|
+
return ConsumerClsOverride(boost_params)
|
|
@@ -32,4 +32,13 @@ def get_publisher(publisher_params: PublisherParams) -> AbstractPublisher:
|
|
|
32
32
|
regist_to_funboost(broker_kind) # 动态注册中间件到框架是为了延迟导入,用户没安装不需要的第三方包不报错。
|
|
33
33
|
if broker_kind not in broker_kind__publsiher_consumer_type_map:
|
|
34
34
|
raise ValueError(f'设置的中间件种类数字不正确,你设置的值是 {broker_kind} ')
|
|
35
|
-
|
|
35
|
+
publisher_cls = broker_kind__publsiher_consumer_type_map[broker_kind][0]
|
|
36
|
+
if not publisher_params.publisher_override_cls:
|
|
37
|
+
return publisher_cls(publisher_params)
|
|
38
|
+
else:
|
|
39
|
+
PublsiherClsOverride = type(f'{publisher_cls.__name__}__{publisher_params.publisher_override_cls.__name__}', (publisher_params.publisher_override_cls, publisher_cls, AbstractPublisher), {})
|
|
40
|
+
# class PublsiherClsOverride(publisher_params.publisher_override_cls, publisher_cls, AbstractPublisher):
|
|
41
|
+
# pass
|
|
42
|
+
|
|
43
|
+
return PublsiherClsOverride(publisher_params)
|
|
44
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# @Author : ydf
|
|
3
|
+
# @Time : 2023/8/8 0008 12:12
|
|
4
|
+
|
|
5
|
+
import abc
|
|
6
|
+
from funboost.publishers.base_publisher import AbstractPublisher
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class EmptyPublisher(AbstractPublisher, metaclass=abc.ABCMeta):
|
|
10
|
+
"""
|
|
11
|
+
空的发布者,空的实现,需要搭配 boost入参的 consumer_override_cls 和 publisher_override_cls使用,或者被继承。
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def custom_init(self):
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
@abc.abstractmethod
|
|
18
|
+
def concrete_realization_of_publish(self, msg: str):
|
|
19
|
+
raise NotImplemented('not realization')
|
|
20
|
+
|
|
21
|
+
@abc.abstractmethod
|
|
22
|
+
def clear(self):
|
|
23
|
+
raise NotImplemented('not realization')
|
|
24
|
+
|
|
25
|
+
@abc.abstractmethod
|
|
26
|
+
def get_message_count(self):
|
|
27
|
+
raise NotImplemented('not realization')
|
|
28
|
+
|
|
29
|
+
@abc.abstractmethod
|
|
30
|
+
def close(self):
|
|
31
|
+
raise NotImplemented('not realization')
|
funboost/set_frame_config.py
CHANGED
|
@@ -98,7 +98,7 @@ def show_frame_config():
|
|
|
98
98
|
# only_print_on_main_process(f'{var_name}: {var_value[0]}{"*" * (len(var_value) - 2)}{var_value[-1]}')
|
|
99
99
|
# else:
|
|
100
100
|
# only_print_on_main_process(f'{var_name}: {var_value}')
|
|
101
|
-
logger_prompt.debug(f'''读取的 BrokerConnConfig 配置是:\n {funboost_config_deafult.BrokerConnConfig().
|
|
101
|
+
logger_prompt.debug(f'''读取的 BrokerConnConfig 配置是:\n {funboost_config_deafult.BrokerConnConfig().get_pwd_enc_json(indent=4)} ''')
|
|
102
102
|
|
|
103
103
|
logger_prompt.debug(f'''读取的 FunboostCommonConfig 配置是:\n {funboost_config_deafult.FunboostCommonConfig().get_json(indent=None)} ''')
|
|
104
104
|
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#
|
|
2
|
+
#
|
|
3
|
+
# # def get_child_custom_attr(child_cls:type,):
|
|
4
|
+
# # __dict = child_cls.__dict__
|
|
5
|
+
#
|
|
6
|
+
# def merge_cls(cls1:type,cls2:type):
|
|
7
|
+
# class Cls(cls2):
|
|
8
|
+
# pass
|
|
9
|
+
# for k,v in cls1.__dict__.items():
|
|
10
|
+
# if k.startswith('__') and k.endswith('__'):
|
|
11
|
+
# continue
|
|
12
|
+
# print(k,v)
|
|
13
|
+
# setattr(Cls,k,v)
|
|
14
|
+
# return Cls
|
|
15
|
+
#
|
|
16
|
+
#
|
|
17
|
+
# if __name__ == '__main__':
|
|
18
|
+
# class Parent:
|
|
19
|
+
# attr1=1
|
|
20
|
+
# def method_from_parent(self):
|
|
21
|
+
# print('method_from_parent')
|
|
22
|
+
#
|
|
23
|
+
# def method_from_parent2(self):
|
|
24
|
+
# print('method_from_parent2')
|
|
25
|
+
#
|
|
26
|
+
#
|
|
27
|
+
# class Child(Parent):
|
|
28
|
+
# attr1=2
|
|
29
|
+
# attr2=22
|
|
30
|
+
#
|
|
31
|
+
# def method_from_parent2(self):
|
|
32
|
+
# print('method_from_parent2chile')
|
|
33
|
+
# def method_from_child(self:Parent):
|
|
34
|
+
# print('method_from_child')
|
|
35
|
+
#
|
|
36
|
+
# class Child2(Parent,Parent):
|
|
37
|
+
# attr1 = 3
|
|
38
|
+
#
|
|
39
|
+
# class Child2b(Child2):
|
|
40
|
+
# attr1 = '2b'
|
|
41
|
+
#
|
|
42
|
+
#
|
|
43
|
+
# class Child2New(Child2b,Child):
|
|
44
|
+
# pass
|
|
45
|
+
#
|
|
46
|
+
#
|
|
47
|
+
# print(Child2().method_from_parent2())
|
|
48
|
+
# print(Child2New().method_from_parent2())
|
|
49
|
+
#
|
|
50
|
+
#
|
|
51
|
+
#
|
funboost/utils/decorators.py
CHANGED
|
@@ -509,7 +509,7 @@ def cached_method_result_for_instance(fun):
|
|
|
509
509
|
|
|
510
510
|
|
|
511
511
|
class FunctionResultCacher:
|
|
512
|
-
logger = LogManager('FunctionResultChche').get_logger_and_add_handlers()
|
|
512
|
+
logger = LogManager('FunctionResultChche').get_logger_and_add_handlers(log_level_int=20)
|
|
513
513
|
func_result_dict = {}
|
|
514
514
|
"""
|
|
515
515
|
{
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import json
|
|
2
|
+
|
|
1
3
|
import copy
|
|
2
4
|
import typing
|
|
3
5
|
|
|
4
6
|
from funboost.utils import json_helper
|
|
7
|
+
from funboost.utils.str_utils import PwdEnc, StrHelper
|
|
5
8
|
|
|
6
9
|
|
|
7
10
|
class DataClassBase:
|
|
@@ -34,6 +37,20 @@ class DataClassBase:
|
|
|
34
37
|
def get_json(self,indent=4):
|
|
35
38
|
return json_helper.dict_to_un_strict_json(self.get_dict(),indent=indent)
|
|
36
39
|
|
|
40
|
+
def get_pwd_enc_json(self,indent=4):
|
|
41
|
+
"""防止打印密码明文,泄漏密码"""
|
|
42
|
+
dict_new = {}
|
|
43
|
+
for k, v in self.get_dict().items():
|
|
44
|
+
# only_print_on_main_process(f'{k} : {v}')
|
|
45
|
+
if isinstance(v, (bool, tuple, dict, float, int)):
|
|
46
|
+
dict_new[k] = v
|
|
47
|
+
else:
|
|
48
|
+
v_enc =PwdEnc.enc_broker_uri(str(v))
|
|
49
|
+
if StrHelper(k).judge_contains_str_list(['pwd', 'pass_word', 'password', 'passwd', 'pass']):
|
|
50
|
+
v_enc = PwdEnc.enc_pwd(v_enc)
|
|
51
|
+
dict_new[k] = v_enc
|
|
52
|
+
return json.dumps(dict_new, ensure_ascii=False, indent=indent)
|
|
53
|
+
|
|
37
54
|
@classmethod
|
|
38
55
|
def update_cls_attribute(cls,**kwargs):
|
|
39
56
|
for k ,v in kwargs.items():
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import re
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class PwdEnc:
|
|
5
|
+
|
|
6
|
+
@classmethod
|
|
7
|
+
def enc_broker_uri(cls, uri: str):
|
|
8
|
+
protocol_split_list = uri.split('://')
|
|
9
|
+
if len(protocol_split_list) != 2:
|
|
10
|
+
return uri
|
|
11
|
+
user_pass__ip_port_split_list = protocol_split_list[1].split('@')
|
|
12
|
+
if len(user_pass__ip_port_split_list) != 2:
|
|
13
|
+
return uri
|
|
14
|
+
user__pass_split_list = user_pass__ip_port_split_list[0].split(':')
|
|
15
|
+
if len(user__pass_split_list) != 2:
|
|
16
|
+
return uri
|
|
17
|
+
user = user__pass_split_list[0]
|
|
18
|
+
pwd = user__pass_split_list[1]
|
|
19
|
+
pwd_enc = cls.enc_pwd(pwd)
|
|
20
|
+
return f'{protocol_split_list[0]}://{user}:{pwd_enc}@{user_pass__ip_port_split_list[1]}'
|
|
21
|
+
|
|
22
|
+
@staticmethod
|
|
23
|
+
def enc_pwd(pwd: str, plain_len=3):
|
|
24
|
+
pwd_enc = pwd
|
|
25
|
+
if len(pwd_enc) > plain_len:
|
|
26
|
+
pwd_enc = f'{pwd_enc[:plain_len]}{"*" * (len(pwd_enc) - plain_len)}'
|
|
27
|
+
return pwd_enc
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class StrHelper:
|
|
31
|
+
def __init__(self, strx: str):
|
|
32
|
+
self.strx = strx
|
|
33
|
+
|
|
34
|
+
def judge_contains_str_list(self, str_list: list, ignore_case=True):
|
|
35
|
+
for str1 in str_list:
|
|
36
|
+
if str1 in self.strx:
|
|
37
|
+
return True
|
|
38
|
+
if ignore_case:
|
|
39
|
+
if str1.lower() in self.strx.lower():
|
|
40
|
+
return True
|
|
41
|
+
return False
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
if __name__ == '__main__':
|
|
45
|
+
str1 = "amqp://admin:abc234@108.55.33.99:5672/"
|
|
46
|
+
str2 = "redis://:myRedisPass1234@127.0.0.1:6379/0"
|
|
47
|
+
print(PwdEnc.enc_broker_uri(str1))
|
|
48
|
+
print(PwdEnc.enc_broker_uri(str2))
|
|
49
|
+
print(PwdEnc.enc_pwd('465460dsdsd'))
|
|
50
|
+
|
|
51
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: funboost
|
|
3
|
-
Version: 44.
|
|
3
|
+
Version: 44.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,9 +1,9 @@
|
|
|
1
|
-
funboost/__init__.py,sha256=
|
|
1
|
+
funboost/__init__.py,sha256=VvKY_geEn7zzd9pPmdIQtFCoFxFSf-fycagti5lnwsY,3957
|
|
2
2
|
funboost/__init__old.py,sha256=07A1MLsxLtuRQQOIfDyphddOwNBrGe34enoHWAnjV14,20379
|
|
3
3
|
funboost/__main__.py,sha256=-6Nogi666Y0LN8fVm3JmHGTOk8xEGWvotW_GDbSaZME,1065
|
|
4
|
-
funboost/constant.py,sha256
|
|
4
|
+
funboost/constant.py,sha256=-QFaxH3tX9AlK9Fmq2hNjxuBWXpmnpCpuZayj7c-xW8,7768
|
|
5
5
|
funboost/funboost_config_deafult.py,sha256=K-kCFGEjD107wHWFspNrIWsPNSVteP2Xww1yRbXd-Wk,6651
|
|
6
|
-
funboost/set_frame_config.py,sha256=
|
|
6
|
+
funboost/set_frame_config.py,sha256=ueaAjIOSGXrOj-Wyz5rov2tQFnkQHBePJrJ8k0tO3jM,14344
|
|
7
7
|
funboost/assist/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
funboost/assist/celery_helper.py,sha256=EOxsl-y65JPwHrmL0LTGAj1nKLbS0qyRbuXcJ0xo9wc,5721
|
|
9
9
|
funboost/assist/dramatiq_helper.py,sha256=9mUyfBMAJXzwvB8LwOmapn3rY30a6UXt3tNOfL6OXoM,2106
|
|
@@ -33,10 +33,11 @@ funboost/concurrent_pool/backup/async_pool_executor0223.py,sha256=RVUZiylUvpTm6U
|
|
|
33
33
|
funboost/concurrent_pool/backup/async_pool_executor_back.py,sha256=KL6zEQaa1KkZOlAO85mCC1gwLm-YC5Ghn21IUom0UKM,9598
|
|
34
34
|
funboost/concurrent_pool/backup/async_pool_executor_janus.py,sha256=OHMWJ9l3EYTpPpcrPrGGKd4K0tmQ2PN8HiX0Dta0EOo,5728
|
|
35
35
|
funboost/consumers/__init__.py,sha256=ZXY_6Kut1VYNQiF5aWEgIWobsW1ht9YUP0TdRZRWFqI,126
|
|
36
|
-
funboost/consumers/base_consumer.py,sha256=
|
|
36
|
+
funboost/consumers/base_consumer.py,sha256=ZauakWwhNTpZMPNzTwL9US2YqQWxBVBZJ7pnayaUW3E,76980
|
|
37
37
|
funboost/consumers/celery_consumer.py,sha256=9gtz7nlZkmv3ErmaseT0_Q__ltSPx-fOcwi-TMPoaLA,9220
|
|
38
38
|
funboost/consumers/confirm_mixin.py,sha256=eY6fNwx51Hn4bQSYRjyTRwOqfCGsikVnd2Ga_Ep31N4,6062
|
|
39
39
|
funboost/consumers/dramatiq_consumer.py,sha256=ozmeAfeF0U-YNYHK4suQB0N264h5AZdfMH0O45Mh-8A,2229
|
|
40
|
+
funboost/consumers/empty_consumer.py,sha256=pU5py60l-JDQFTJlaMpfuFyzRGqDUnOrpKhG9gOg39A,759
|
|
40
41
|
funboost/consumers/http_consumer.py,sha256=2MVqEzHW9qIKWvgIQS7VncGfvpmWhQ3BWWjfyHWC-as,2179
|
|
41
42
|
funboost/consumers/http_consumer000.py,sha256=PiiSLSQB-hHgS1vAn8DoHD2siC3zO6_kKjVW0g6AFIc,4379
|
|
42
43
|
funboost/consumers/httpsqs_consumer.py,sha256=kaqOcrKMLrSR27XqeiheRDmpF1KDVDghgbHcefTjqt8,1171
|
|
@@ -59,14 +60,14 @@ funboost/consumers/rabbitmq_pika_consumer.py,sha256=51IkRUSR0v2v7BUlA8oInx81VGeO
|
|
|
59
60
|
funboost/consumers/rabbitmq_pika_consumerv0.py,sha256=rIQToBTBqGdjnzMhg0vyZMY87NtK_Uw8ggiTu39JQ_w,4777
|
|
60
61
|
funboost/consumers/rabbitmq_rabbitpy_consumer.py,sha256=xxINY037pmgF3_lJA-zhf9qUIUx6DdqC7tsUOQL3dL4,1330
|
|
61
62
|
funboost/consumers/redis_brpoplpush_consumer.py,sha256=HqjgjjEibq7D-5XFpJtyaPvtfXD5zbq9cjSHx4aM1gU,2952
|
|
62
|
-
funboost/consumers/redis_consumer.py,sha256=
|
|
63
|
-
funboost/consumers/redis_consumer_ack_able.py,sha256=
|
|
63
|
+
funboost/consumers/redis_consumer.py,sha256=z4opk78FHIes8LJVnDlQtmEQjuJEZo-g3NFN04lBStE,2668
|
|
64
|
+
funboost/consumers/redis_consumer_ack_able.py,sha256=7zP9BQNfONLBbYJFjgNtIPVqbHwklAdcPUIA8Y7M8go,7411
|
|
64
65
|
funboost/consumers/redis_consumer_ack_using_timeout.py,sha256=PMSafTcj5cKrVZ10IkrjU3zIdmHevcuVRT4WxslrLSw,4204
|
|
65
66
|
funboost/consumers/redis_consumer_priority.py,sha256=C-ftnlGPPoB7YV3GvwLu9POVGDn_GKlBqO6NlsZ-hdY,5566
|
|
66
67
|
funboost/consumers/redis_consumer_simple.py,sha256=3YrmxSRh8dpece_JR3Lwx8zsn-GBSP1S92lhUIQ3FoU,804
|
|
67
68
|
funboost/consumers/redis_filter.py,sha256=rKNFz8mxVo4n4o8v3MP4UqdPAtoK7msQ-1xRgzFfts0,7290
|
|
68
69
|
funboost/consumers/redis_pubsub_consumer.py,sha256=8V8EqobKpEXzpsQx_H3A-JBKLsWOsE0n16g62tUMMYY,1122
|
|
69
|
-
funboost/consumers/redis_stream_consumer.py,sha256=
|
|
70
|
+
funboost/consumers/redis_stream_consumer.py,sha256=LVQa19MDfSlC8SYSYFPwJnJi62UIzfPHAbBVysLmNw8,6538
|
|
70
71
|
funboost/consumers/rocketmq_consumer.py,sha256=23KLRz8iO9e_x7asrceRJYhwJFMruUgmKw7m3pHVkw0,1692
|
|
71
72
|
funboost/consumers/rq_consumer.py,sha256=JX84k6Jiv4pBiQMmnhdJ7s7Qz4ub5TWS4T7qTF-WdlM,876
|
|
72
73
|
funboost/consumers/sqlachemy_consumer.py,sha256=PawUaNV7EZWBQVWXkGaXy1Z16hUgxU4BLDeUFR83ewM,1300
|
|
@@ -83,12 +84,13 @@ funboost/contrib/save_result_status_to_sqldb.py,sha256=AxvD7nHs4sjr9U0kwEZzyPKrs
|
|
|
83
84
|
funboost/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
84
85
|
funboost/core/active_cousumer_info_getter.py,sha256=09fEc-BTEIRfDDfHmOvKnMjLjtOyp4edLsUlAXUR_Qs,4966
|
|
85
86
|
funboost/core/booster.py,sha256=dEr3uFzGg3Tik3fvCm20WREIPpWO825Crj-DzBtby1w,17224
|
|
86
|
-
funboost/core/current_task.py,sha256=
|
|
87
|
+
funboost/core/current_task.py,sha256=MF8WfMtdmJaO779OoUNmRswbZcToyRx8TbJwxqemfo8,5255
|
|
87
88
|
funboost/core/exceptions.py,sha256=pLF7BkRJAfDiWp2_xGZqencmwdPiSQI1NENbImExknY,1311
|
|
88
89
|
funboost/core/fabric_deploy_helper.py,sha256=foieeqlNySuU9axJzNF6TavPjIUSYBx9UO3syVKUiyY,9999
|
|
89
90
|
funboost/core/funboost_config_getter.py,sha256=TDccp5pQamkoJXkwyPwGsQGDJY8ej8ZT8L8RESSAD2w,382
|
|
91
|
+
funboost/core/funboost_current_task_context_thread.py,sha256=RRhqmRl943jBccgTrsfra4lS20X0zB2TtLAUaZn_A18,441
|
|
90
92
|
funboost/core/funboost_time.py,sha256=IbB4dFCpg3oGUe90ssAJ_x0eDPtAVfvsUr4esdoKaOk,1777
|
|
91
|
-
funboost/core/func_params_model.py,sha256=
|
|
93
|
+
funboost/core/func_params_model.py,sha256=T-P-prhqCIPf0r5ZKPOTF7nawest4S1w0SRE0iynpvc,19849
|
|
92
94
|
funboost/core/function_result_status_config.py,sha256=PyjqAQOiwsLt28sRtH-eYRjiI3edPFO4Nde0ILFRReE,1764
|
|
93
95
|
funboost/core/function_result_status_saver.py,sha256=UdokGSwU630t70AZnT9Ecj7GpYXORBDivlc9kadoI2E,9172
|
|
94
96
|
funboost/core/helper_funs.py,sha256=1MZjedV6TGdaAjmj9q-ykgoTI_BtG9ZQm58PLOMVdDM,2362
|
|
@@ -103,9 +105,9 @@ funboost/core/cli/discovery_boosters.py,sha256=mbEyv0bUIGcmgkfXLI_Q1IK1QvVwKyro8
|
|
|
103
105
|
funboost/core/cli/funboost_cli_user_templ.py,sha256=XUpKLxRKtYfebPUM8wii64kB0HW8L7j9LnRpT0xCfQI,2243
|
|
104
106
|
funboost/core/cli/funboost_fire.py,sha256=OT0SNi9Zb0Tom2E0cWuArQs0obUowAA_rpCF7GdaKPs,5065
|
|
105
107
|
funboost/factories/__init__.py,sha256=s7kKKjR1HU5eMjPD6r5b-SXTVMo1zBp2JjOAtkyt5Yo,178
|
|
106
|
-
funboost/factories/broker_kind__publsiher_consumer_type_map.py,sha256=
|
|
107
|
-
funboost/factories/consumer_factory.py,sha256=
|
|
108
|
-
funboost/factories/publisher_factotry.py,sha256=
|
|
108
|
+
funboost/factories/broker_kind__publsiher_consumer_type_map.py,sha256=fra2cuBiFLtEaPKnkPTaC7YAoHahOfZ6HNvhUwt71Mc,9988
|
|
109
|
+
funboost/factories/consumer_factory.py,sha256=EaAw3OZJkGepkQxKkDvMshHjIVOQva_N6nUEhLO4JwU,1500
|
|
110
|
+
funboost/factories/publisher_factotry.py,sha256=4651sxnbIAi6sFEUQdlUuv8UkbMQIE_Pbzm-1DimAs8,2535
|
|
109
111
|
funboost/function_result_web/app.py,sha256=WFAsAoPqCVeTxKS31UvkAhuRqUurg-j8D3c9RtHZEyY,5059
|
|
110
112
|
funboost/function_result_web/functions.py,sha256=qIyzwxj6GgxsCuXdEBKcFkpBEGwDbLI8hGlm6xddJOc,7514
|
|
111
113
|
funboost/function_result_web/__pycache__/functions.cpython-39.pyc,sha256=wHZE_O32HUmbgLitQ2ZhgleoHDhmoSCGK0M2tym1kus,4188
|
|
@@ -128,6 +130,7 @@ funboost/publishers/celery_publisher.py,sha256=uc9N1uLW74skUCw8dsnvxORM2O3cy4SiI
|
|
|
128
130
|
funboost/publishers/celery_publisher000.py,sha256=2XLOyU2__vlIUTi5L15uf0BJqAIjxbc3kCLIRDSOY9w,3966
|
|
129
131
|
funboost/publishers/confluent_kafka_publisher.py,sha256=B4rF6gljixOMyN6L2eL1gzqTv97uoy7TTzgKUhHljEQ,4749
|
|
130
132
|
funboost/publishers/dramatiq_publisher.py,sha256=IH9F-Ps1r94WDu2a7cZbJqWlBgblDbEcpjGj2rl-9WE,1413
|
|
133
|
+
funboost/publishers/empty_publisher.py,sha256=Com5m-mkjXpcWxKZZneymhLNaRJNaGAtvwjhwHmECgg,870
|
|
131
134
|
funboost/publishers/http_publisher.py,sha256=pS3z_AVqH6h4PAgqB7usihvzLJP5ZzfPKQRMQfHrJHQ,753
|
|
132
135
|
funboost/publishers/httpsqs_publisher.py,sha256=PS6h8-mn3wYFfMOsPt4tal8p0yZgYgrYYO9ZnIl9CwU,2737
|
|
133
136
|
funboost/publishers/huey_publisher.py,sha256=9HBrsqTO61iPB1nI5fYOQNPuOaX4I4Wmb1BRNODAE_0,1118
|
|
@@ -170,9 +173,10 @@ funboost/utils/__init__.py,sha256=rAyXE7lgCo_3VdMvGrIJiqsTHv2nZPTJDTj1f6s_KgE,58
|
|
|
170
173
|
funboost/utils/apscheduler_monkey.py,sha256=CcUISbqX6nMWSxr_QjZ26IvvhUk_ojYZWRaKenpsKfE,3124
|
|
171
174
|
funboost/utils/block_exit.py,sha256=BnfxNYo3lnmhk686RAEoc4u3D4RU_iEMMMgu5L8gIuI,96
|
|
172
175
|
funboost/utils/bulk_operation.py,sha256=B4FBxlz5f4oqlKDWqer7axn4gnDSfsYoMW2zSUCnGcQ,10101
|
|
176
|
+
funboost/utils/class_utils.py,sha256=EZ98CzeoaN2H8iOABTOPefMVfdrii9XDwATqZ0_CkUQ,1153
|
|
173
177
|
funboost/utils/ctrl_c_end.py,sha256=FgT9An-qsUA5gW-V-UKWqOh5shC7C_uvTFn0fS7i8GI,439
|
|
174
178
|
funboost/utils/custom_pysnooper.py,sha256=7yXLKEMY_JjPRRt0Y0N-wV2CFhILlYNh40Y6uRBUaj8,5923
|
|
175
|
-
funboost/utils/decorators.py,sha256=
|
|
179
|
+
funboost/utils/decorators.py,sha256=lyi9TCBg__7xkoV17AZhRItTn95vU2XMtOxfXJVV5B4,26601
|
|
176
180
|
funboost/utils/develop_log.py,sha256=Wsx0ongGjTit5xqgk1BztYlVEkC6d0-Y7GENXLedVqY,271
|
|
177
181
|
funboost/utils/expire_lock.py,sha256=AOkd1KlvZeIwQaz8ZoKxLpGxWgqQ4mfNHcFphh04o8Q,4732
|
|
178
182
|
funboost/utils/json_helper.py,sha256=GvPVJJ2f6MvOmABP2t006yBxXQIFJSJAeshiNoJ9Vsk,2259
|
|
@@ -186,7 +190,8 @@ funboost/utils/redis_manager.py,sha256=iG3e9k3oedtKcGwDnjKA0hUFsk_MSlvVM2C3m3K97
|
|
|
186
190
|
funboost/utils/redis_manager_old.py,sha256=c3RBXN6dM3kjVBqkCdotpZuYmFs4d9emfp5iJgC61Us,5516
|
|
187
191
|
funboost/utils/resource_monitoring.py,sha256=EWq7hqQLM2hYpbkv4sVw9YcpHLxfg8arcGz-QXw9lf0,5710
|
|
188
192
|
funboost/utils/restart_python.py,sha256=bFbV0_24ajL8hBwVRLxWe9v9kTwiX1fGLhXRroNnmgQ,1418
|
|
189
|
-
funboost/utils/simple_data_class.py,sha256=
|
|
193
|
+
funboost/utils/simple_data_class.py,sha256=AVaMOyM2o7fszFoG6U8qGly7fIUZt10o5x5mIFYzI9k,2277
|
|
194
|
+
funboost/utils/str_utils.py,sha256=Mxi8BW3-QTBozxioTKpmEh00hOibT-_5dctMjz4miUs,1608
|
|
190
195
|
funboost/utils/time_util.py,sha256=smWhB0fdxgazBYI-t2E61mcIlBk78GcVnl2M8Ko8jVQ,5533
|
|
191
196
|
funboost/utils/un_strict_json_dumps.py,sha256=uh2mXNRCq5dJcqMhb9CkfvehfEGYZAgI6RY1oLcYX_M,408
|
|
192
197
|
funboost/utils/dependency_packages/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -237,9 +242,9 @@ funboost/utils/pysnooper_ydf/utils.py,sha256=evSmGi_Oul7vSP47AJ0DLjFwoCYCfunJZ1m
|
|
|
237
242
|
funboost/utils/pysnooper_ydf/variables.py,sha256=QejRDESBA06KG9OH4sBT4J1M55eaU29EIHg8K_igaXo,3693
|
|
238
243
|
funboost/utils/times/__init__.py,sha256=z-KQTxXapfu2ScJxISGe7QGffASuyJYL6JGsLXxD6O0,2332
|
|
239
244
|
funboost/utils/times/version.py,sha256=JiZLGTB-HYyBOV4xS0rnx2K2OqVMTebUj30sZRbrleE,16
|
|
240
|
-
funboost-44.
|
|
241
|
-
funboost-44.
|
|
242
|
-
funboost-44.
|
|
243
|
-
funboost-44.
|
|
244
|
-
funboost-44.
|
|
245
|
-
funboost-44.
|
|
245
|
+
funboost-44.7.dist-info/LICENSE,sha256=9EPP2ktG_lAPB8PjmWV-c9BiaJHc_FP6pPLcUrUwx0E,11562
|
|
246
|
+
funboost-44.7.dist-info/METADATA,sha256=sWXcozUL0NVSYgPv7MgdgduVHExNH9_VPravfYjjPlI,31691
|
|
247
|
+
funboost-44.7.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
248
|
+
funboost-44.7.dist-info/entry_points.txt,sha256=yMSSAGRzRAAhGyNNQHw24MooKlDZsaJ499_D6fPl58A,96
|
|
249
|
+
funboost-44.7.dist-info/top_level.txt,sha256=K8WuKnS6MRcEWxP1NvbmCeujJq6TEfbsB150YROlRw0,9
|
|
250
|
+
funboost-44.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|