funboost 18.7__py3-none-any.whl → 18.9__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.

@@ -0,0 +1,45 @@
1
+
2
+
3
+ import collections.abc
4
+
5
+ setattr(collections,'MutableMapping',collections.abc.MutableMapping)
6
+
7
+ '''
8
+
9
+ Traceback (most recent call last):
10
+ File "D:\codes\funboost\funboost\concurrent_pool\async_pool_executor0223.py", line 267, in <module>
11
+ test_async_pool_executor()
12
+ File "D:\codes\funboost\funboost\concurrent_pool\async_pool_executor0223.py", line 225, in test_async_pool_executor
13
+ from funboost.concurrent_pool import CustomThreadPoolExecutor as ThreadPoolExecutor
14
+ File "D:\codes\funboost\funboost\__init__.py", line 8, in <module>
15
+ from funboost.set_frame_config import patch_frame_config, show_frame_config
16
+ File "D:\codes\funboost\funboost\set_frame_config.py", line 167, in <module>
17
+ use_config_form_funboost_config_module()
18
+ File "D:\codes\funboost\funboost\set_frame_config.py", line 115, in use_config_form_funboost_config_module
19
+ m = importlib.import_module('funboost_config')
20
+ File "D:\ProgramData\Miniconda3\envs\py310\lib\importlib\__init__.py", line 126, in import_module
21
+ return _bootstrap._gcd_import(name[level:], package, level)
22
+ File "D:\codes\funboost\funboost_config.py", line 8, in <module>
23
+ from funboost import concurrent_pool
24
+ File "D:\codes\funboost\funboost\concurrent_pool\__init__.py", line 14, in <module>
25
+ from .custom_evenlet_pool_executor import CustomEventletPoolExecutor
26
+ File "D:\codes\funboost\funboost\concurrent_pool\custom_evenlet_pool_executor.py", line 7, in <module>
27
+ from eventlet import greenpool, monkey_patch, patcher, Timeout
28
+ File "D:\ProgramData\Miniconda3\envs\py310\lib\site-packages\eventlet\__init__.py", line 17, in <module>
29
+ from eventlet import convenience
30
+ File "D:\ProgramData\Miniconda3\envs\py310\lib\site-packages\eventlet\convenience.py", line 7, in <module>
31
+ from eventlet.green import socket
32
+ File "D:\ProgramData\Miniconda3\envs\py310\lib\site-packages\eventlet\green\socket.py", line 21, in <module>
33
+ from eventlet.support import greendns
34
+ File "D:\ProgramData\Miniconda3\envs\py310\lib\site-packages\eventlet\support\greendns.py", line 79, in <module>
35
+ setattr(dns, pkg, import_patched('dns.' + pkg))
36
+ File "D:\ProgramData\Miniconda3\envs\py310\lib\site-packages\eventlet\support\greendns.py", line 61, in import_patched
37
+ return patcher.import_patched(module_name, **modules)
38
+ File "D:\ProgramData\Miniconda3\envs\py310\lib\site-packages\eventlet\patcher.py", line 132, in import_patched
39
+ return inject(
40
+ File "D:\ProgramData\Miniconda3\envs\py310\lib\site-packages\eventlet\patcher.py", line 109, in inject
41
+ module = __import__(module_name, {}, {}, module_name.split('.')[:-1])
42
+ File "D:\ProgramData\Miniconda3\envs\py310\lib\site-packages\dns\namedict.py", line 35, in <module>
43
+ class NameDict(collections.MutableMapping):
44
+ AttributeError: module 'collections' has no attribute 'MutableMapping'
45
+ '''
@@ -3,7 +3,8 @@ import redis2 as redis
3
3
  import redis3
4
4
  from funboost import funboost_config_deafult
5
5
  from funboost.utils import decorators
6
-
6
+ import aioredis
7
+ from aioredis.client import Redis as AioRedis
7
8
 
8
9
  class RedisManager(object):
9
10
  _pool_dict = {}
@@ -89,3 +90,15 @@ class RedisMixin(object):
89
90
  time_tuple = self.redis_db_frame_version3.time()
90
91
  # print(time_tuple)
91
92
  return time_tuple[0] + time_tuple[1] / 1000000
93
+
94
+
95
+ class AioRedisMixin(object):
96
+ @property
97
+ @decorators.cached_method_result
98
+ def aioredis_db_filter_and_rpc_result(self):
99
+ return AioRedis(host=funboost_config_deafult.REDIS_HOST, port=funboost_config_deafult.REDIS_PORT,
100
+ password=funboost_config_deafult.REDIS_PASSWORD, db=funboost_config_deafult.REDIS_DB_FILTER_AND_RPC_RESULT, decode_responses=True)
101
+
102
+
103
+
104
+