PK!fdophon_mq/__init__.py# coding: utf-8 import inspect import re from logging import Logger from dophon_mq.properties import properties from dophon_mq.function_unit import Producer, Consumer producer = Producer.producer consumer = Consumer.consumer try: logger = __import__('dophon.logger', fromlist=['dophon']) logger.inject_logger(globals()) except Exception as e: logger = Logger(__name__) __all__ = [ 'producer', 'consumer', 'ConsumerCenter' ] def log_center_init(f): def method(*args, **kwargs): logger.info(f'初始化({getattr(f,"__qualname__")})') f(*args, **kwargs) return method class ConsumerCenter: """ 消息消费者封装(带自动运行) """ @log_center_init def __init__(self): """ 注意!!!! 重写该类的init方法必须显式执行该类的init方法,否则定义的消息消费将失效 """ self.before_init() for name in dir(self): item = getattr(self, name) if not re.match('__.+__', name) and \ callable(item) and \ re.match('consumer..method..*', getattr(getattr(item, '__func__'), '__qualname__')): fields = inspect.getfullargspec(item).args # 清除自对象参数 self.before_exec_consumer() staticmethod(item(*fields)) self.after_exec_consumer() self.after_init() def before_init(self): pass def after_init(self): pass def before_exec_consumer(self): pass def after_exec_consumer(self): pass PK!)zhdophon_mq/bone_data.py""" 骨架数据 """ def get_send_data( p_name: str, msg_mark: str, msg: str, other_data: str = '' ): """ 获取发送消息数据 :param p_name: :param msg_mark: :param msg: :param other_data: :return: """ return { 'tag': p_name, 'msg_mark': msg_mark, 'msg': msg, 'other_data': other_data } PK!콈"#dophon_mq/function_unit/__init__.pyfrom dophon_mq import properties from dophon_mq.local import MsgCenter center = MsgCenter.get_center(remote_center=properties.mq.get('remote_center', False))PK!婈#dophon_mq/function_unit/Consumer.pyimport inspect from dophon_mq.utils import * from dophon_mq import function_unit center = function_unit.center def consumer(tag: str, delay: int = 0, arg_name: str = 'args'): def method(f): tags = tag if isinstance(tag, list) else tag.split('|') def queue_args(*args, **kwargs): @join_threadable def do_consume(tt): center.write_p_book(tt) try: center.do_get(p_name=tt, delay=delay, f=f, kwargs=kwargs, arg_name=arg_name) except Exception as e: print(e) for t in tags: if arg_name in inspect.getfullargspec(f).kwonlyargs: # 执行消息中心信息监听 do_consume(t) elif arg_name in inspect.getfullargspec(f).args: do_consume(t) else: print('%s方法不存在参数: %s' % (str(f), arg_name)) if len(tags) > 1 and properties.msg_queue_debug: print('监听多个标签', tags) return queue_args return method PK!ք襮#dophon_mq/function_unit/Producer.pyfrom dophon_mq import function_unit center = function_unit.center def local_producer(tag, delay: int = 0): def method(f): def single_tag(*args, **kwargs) -> dict: center.write_p_book(tag) # 执行被装饰方法,检查返回值 result = f(*args, **kwargs) p_result = center.do_send(result, tag, delay) return p_result def multi_tag(*args, **kwargs) -> dict: p_result_list = [] for inner_tag in tag: center.write_p_book(inner_tag) # 执行被装饰方法,检查返回值 result = f(*args, **kwargs) p_result_list.append(center.do_send(result, inner_tag, delay)) return p_result_list def unsupport_tag(*args, **kwargs) -> dict: print('不支持的标签类型! %s,%s' % (args, kwargs)) r_method = single_tag if isinstance(tag, str) \ else multi_tag if isinstance(tag, list) \ else unsupport_tag return r_method return method def remote_producer(tag, delay: int = 0): return producer = local_producer PK!t&dophon_mq/function_unit/SizeableTPE.pyimport os from concurrent.futures import ThreadPoolExecutor class SizeableThreadPoolExecutor(ThreadPoolExecutor): _update_round = 2 def update_worker_size(self): if len(self._threads) >= self._max_workers: # 容量达到极限自动扩容 self._max_workers = len(self._threads) * self._update_round \ if len(self._threads) \ else (os.cpu_count() or 1) * 5 elif len(self._threads) <= self._max_workers / 8: # 容量过剩自动缩容 self._max_workers = len(self._threads) / self._update_round \ if len(self._threads) \ else (os.cpu_count() or 1) * 5 @property def active_workers(self): return len(self._threads) def print_debug_info(self): print('当前线程:', len(self._threads), '---', self._threads) print('最大工人数:', self._max_workers) PK!dophon_mq/local/__init__.pyPK!ƙ**dophon_mq/local/MsgCenter.py""" 消息处理中心 处理消息发送信息落地 初始化消息通道(单一消息通道模式,集群消息通道模式) 暂时参照jms协议(点对点消息ps) 消息消费使用拉(pull)模式(后期增加推模式) """ import json import re import time from socket import * from threading import Timer from logging import Logger from dophon_mq import bone_data from dophon_mq.utils import * from dophon_mq.utils import threadable logger = Logger(__name__) @singleton def get_center(debug: bool = False, remote_center: bool = False): ins_obj = MsgCenter(debug, remote_center) if remote_center: logger.info('开启远程消息') return ins_obj def get_socket(): """ 获取套接字对象 :return: """ __socket = socket(AF_INET, SOCK_STREAM) __socket.connect((properties.mq.get('remote_address'), properties.mq.get('remote_port'))) return __socket class MsgCenter: _p_name_l = [] _p_tunnel_cursor = {} def __init__(self, debug: bool, remote: bool = False): logger.info('初始化消息中心') if debug: self.listen_p_book() # 记录远程中心标识 self._remote_flag = remote if remote: self.server_forever() @threadable() def server_forever(self): """ 挂起本地服务 :return: """ while True: # 挂起100秒 time.sleep(100) def write_p_book(self, p_name): """ 登记生产属性名单 :param p_name: 生产名 :param p_id: 生产标识(用作生产校验) :return: """ if p_name not in self._p_name_l \ and p_name not in self._p_tunnel_cursor \ and not self._p_tunnel_cursor.get(p_name): self._p_name_l.append(p_name) if self._remote_flag: m_tunnel = SocketMsgTunnel(p_name) self._p_tunnel_cursor[p_name] = m_tunnel else: m_tunnel = MsgTunnel(p_name) self._p_tunnel_cursor[p_name] = m_tunnel @threadable() def listen_p_book(self): self.print_trace_manager() def print_trace_manager(self): while True: time.sleep(3) print(trace_manager) @threadable() def do_send(self, msg, p_name, delay): """ 发送消息 :param msg: 消息体 :param p_name: 消息标签 :param delay: 延时 :return: """ return self.do_remote_send(msg, p_name, delay) if self._remote_flag else self.do_local_send(msg, p_name, delay) def do_local_send(self, msg, p_name, delay): # 使用定时器发送消息 # timer = Timer(delay, self._p_tunnel_cursor[p_name].recv_msg, [msg]) # timer.start() # 利用自身绑定通道发送消息 self._p_tunnel_cursor[p_name].recv_msg(msg) self._p_tunnel_cursor[p_name].insert_msg(p_name) def do_remote_send(self, msg, p_name, delay): """ 发送消息到消息通道 :param msg: :param p_name: 消息标签 :param delay: 延时 :return: 消息体 """ # 使用定时器发送消息 # timer = Timer(delay, self.remote_send_stack, [msg, p_name]) # timer.start() # 阻塞式发送 self.remote_send_stack(msg, p_name) def remote_send_stack(self, msg, p_name): """ 远程消息发送栈 :param msg: :param p_name: :return: """ self._p_tunnel_cursor[p_name].send_msg(msg) self._p_tunnel_cursor[p_name].insert_msg(p_name) # 启用多线程监听消息 @join_threadable def do_get(self, p_name, delay: int, f, kwargs, arg_name: str): """ 从消息管道获取消息 采用回调形式执行消息 :param p_name: :param delay: :return: """ if callable(f): # 参数过滤 while True: get_method = self.do_remote_get if self._remote_flag else self.do_local_get msg_data = get_method(p_name, delay) if not msg_data or msg_data == 'none': time.sleep(1) else: kwargs[arg_name] = msg_data # 执行回调方法 try: f(**kwargs) except Exception as e: # 执行失败重新发送消息 self.do_send(msg_data, p_name, delay) else: print(f, '不是个方法') def do_local_get(self, p_name: str, delay: int): """ 从本地消息管道获取消息 :param p_name: :param delay: :return: """ if p_name and p_name in self._p_tunnel_cursor: msg_data = self._p_tunnel_cursor[p_name].query_msg(delay) return msg_data else: logger.info('&s%s' % (p_name, '不存在')) def do_remote_get(self, p_name: str, delay: int): """ 从远程消息中心获取消息 :param p_name: :param delay: :return: """ if p_name and p_name in self._p_tunnel_cursor: msg_data = self._p_tunnel_cursor[p_name].get_msg(delay) return msg_data class MsgTunnel: """ 消息隧道 """ __queue = {} __k_queue = [] def __init__(self, p_name): self._p_name = p_name def __str__(self): return str(id(self)) def recv_msg(self, msg): try: # 发送消息 msg_mark = get_msg_mark() if not os.path.exists(msg_pool + self._p_name): os.mkdir(msg_pool + self._p_name) with open(msg_pool + self._p_name + '/' + msg_mark, 'w') as file: json.dump(msg, file, ensure_ascii=False) except Exception as e: raise Exception('无法识别的消息类型,原因: %s' % (e)) def insert_msg(self, tag): """ 装载消息 :param tag: :return: """ self.__k_queue.clear() for root, dirs, files in os.walk(msg_pool + tag): for name in files: file_path = os.path.join(root, name) with open(file_path, 'r') as file: try: # 尝试以json形式读取 new_kwargs = json.load(file) except Exception as e: # 失败后以二进制形式读取 new_kwargs = file.readline() # 加载消息 self.__queue[name] = { 'msg': new_kwargs, 'file_path': file_path } self.__k_queue = list(self.__queue.keys()) def query_msg( self, delay: int ): """ 查询隧道信息 :return: """ msg_data = 'none' while True: time.sleep(delay) if self.__k_queue: # 获取信息 msg_k = self.__k_queue.pop(0) msg_obj = self.__queue.pop(msg_k) __r_file_path = re.sub('\\\\', '/', msg_obj['file_path']) try: # 消息消费成功 with open(__r_file_path, 'r') as file: msg_data = eval(file.readline()) except FileNotFoundError as fne: print(fne) pass except Exception as e: print('e', e) else: # 清除消息 os.remove(__r_file_path) return msg_data self.insert_msg(self._p_name) class SocketMsgTunnel(MsgTunnel): def __init__(self, p_name: str): super(SocketMsgTunnel, self).__init__(p_name) self._p_name = p_name def send_msg(self, msg): """ 发送消息 :param msg: :return: """ bound_dict = bone_data.get_send_data(self._p_name, get_msg_mark(), msg, '1232333123123') flag = True msg_answer = '' while flag: # 实例内部套接字初始化 __socket = get_socket() logger.info(str(__socket.recv(1024), encoding='utf-8')) try: # 尝试发送消息 if not __socket.sendall(bytes(json.dumps(bound_dict), encoding="utf-8")): while flag: msg_answer = json.loads(str(__socket.recv(1024), encoding='utf-8'), encoding='utf-8') logger.info('发送成功') flag = False except Exception as e: print('发送失败', msg, '原因', e) raise e __socket.close() return msg_answer def get_msg(self, delay: int): """ 获取消息() :return: """ # 实例内部套接字初始化 __socket = get_socket() logger.info(str(__socket.recv(1024), encoding='utf-8')) p_name = self._p_name flag = True msg = '' msg_body = '' while flag: time.sleep(delay) try: __socket.sendall(bytes(str([p_name]), encoding='utf-8')) recv_str = str(__socket.recv(1024), encoding='utf-8') if recv_str == 'none': return recv_str msg = eval(recv_str) except Exception as e: err_msg = { 'ack_code': '500', 'ack_msg': str(e) } __socket.sendall(bytes(encode_ack_info(err_msg), encoding='utf-8')) else: if isinstance(msg, dict): # 发送消息接受确认 msg_mark = list(msg.keys())[0] msg_body = msg[msg_mark] __socket.sendall(bytes(encode_ack_info({ 'ack_code': '200', 'ack_mark': msg_mark }), encoding='utf-8')) flag = False __socket.close() return msg_body['msg'] PK! dophon_mq/properties/__init__.pyPK!ɖƁ*dophon_mq/properties/default_properties.pymsg_queue_max_num = 30 mq = { 'remote_center': False # 'remote_address': '127.0.0.1', # 'remote_port': 58800 } PK!{(i"dophon_mq/properties/properties.py""" 配置相关 """ import sys import re try: default_properties = __import__('dophon_mq.properties.default_properties', fromlist=True) properties = __import__('dophon.properties', fromlist=True) except: try: properties = __import__('application', fromlist=True) except: try: properties = __import__('config', fromlist=True) except: properties = default_properties finally: # 合成配置 for name in dir(default_properties): if not re.match('^__.+__$',name) and not hasattr(properties,name): setattr(properties,name,getattr(default_properties,name)) sys.modules['properties'] = properties sys.modules['dophon_mq.properties'] = properties sys.modules['dophon_mq.properties.properties'] = properties sys.modules['dophon.mq.properties'] = properties sys.modules['dophon.mq.properties.properties'] = properties PK!dophon_mq/remote/__init__.pyPK!X7.UU!dophon_mq/remote/remote_center.pyimport json from datetime import time from socketserver import ThreadingTCPServer, StreamRequestHandler from dophon_mq.utils import * from logging import Logger trace_manager = {} msg_queue = {} logger = Logger(__name__) def init_msg_queue(topic: str): """ 加载持久化消息 :return: """ for root, dirs, files in os.walk(remote_msg_pool + topic): if dirs: # 初始化标签 for d in dirs: msg_queue[d] = [] for r, ds, fs in os.walk(root + d): if fs: for f in fs: with open(root + d + os.path.sep + f, 'r') as msg_file: data = json.loads(msg_file.readline(), encoding='utf-8') msg_queue[d].append(data) class UnexpectedSocketError(Exception): pass class MsgCenter(ThreadingTCPServer): _p_name_l = [] _p_tunnel_cursor = {} def __init__(self, debug: bool = False, port: int = 58800, topic: str = ''): self._port = port init_msg_queue(topic) if debug: self.listen_p_book() super(MsgCenter, self).__init__(('0.0.0.0', port), SocketMsgHandler) self.start_server() # @threadable() def start_server(self): logger.info('监听端口 %s' % (str(self._port))) print('监听端口 %s' % (str(self._port))) self.serve_forever() @threadable() def listen_p_book(self): self.print_trace_manager() def print_trace_manager(self): while True: time.sleep(3) print(trace_manager) class SocketMsgHandler(StreamRequestHandler): """ 远程消息隧道处理类 """ def handle(self): conn = self.request self.wfile.write(bytes('连接远程消息处理', encoding='utf-8')) ret_bytes = '1' while ret_bytes: ret_bytes = conn.recv(1024).strip() ret_str = str(ret_bytes, encoding="utf-8") # print(ret_str) if ret_bytes and ret_str: try: data = eval(ret_str) if isinstance(data, dict): # 字典信息(生产信息) self.recive_remote_msg(data, conn) elif isinstance(data, list): # 列表形式(消费信息) self.push_remote_msg(data, conn) else: conn.send(bytes(json.dumps({ 'error': '不能识别的消息类型' }), encoding='utf-8')) except Exception as e: conn.sendall(bytes(json.dumps({ 'error': '远程消息中心发生错误', 'err_msg': str(e) }), encoding='utf-8')) raise e else: self.finish() def push_remote_msg(self, data, client_socket): for p_name in data: # 遍历消息信息 # 从缓存获取消息 if p_name in msg_queue and msg_queue[p_name]: msg_obj = msg_queue[p_name].pop(0) try: client_socket.sendall(bytes(json.dumps(msg_obj), encoding='utf-8')) ack_str = str(client_socket.recv(1024), encoding='utf-8') ack_info = decode_ack_info(ack_str) if ack_info['ack_code'] != '200': # 消息消费失败 raise Exception('消息消费失败: %s' % ack_info['ack_msg']) else: # 消息消费成功 file_name = ack_info['ack_mark'] file = remote_msg_pool + p_name + os.path.sep + file_name os.unlink(file) except PermissionError as pe: logger.info(pe) # 权限问题或操作冲突 msg_queue[p_name].append(msg_obj) except Exception as e: raise e else: client_socket.sendall(bytes('none', encoding='utf-8')) def recive_remote_msg(self, data, client_socket): # 处理消息 p_name = data['tag'] msg_mark = data['msg_mark'] # 写入自身消息缓存 if p_name in msg_queue: msg_queue[p_name].append({ msg_mark: data }) else: msg_queue[p_name] = [{ msg_mark: data }] # 写入本地文件 if not os.path.exists(remote_msg_pool + p_name): os.mkdir(remote_msg_pool + p_name) with open(remote_msg_pool + p_name + os.path.sep + msg_mark, 'w') as file: json.dump({msg_mark: data}, file, ensure_ascii=False) client_socket.send(bytes(json.dumps({ 'msg_mark': msg_mark }), encoding='utf-8')) PK!`edophon_mq/utils.py""" 常用工具 """ import datetime import os import random from threading import Thread from dophon_mq import properties from dophon_mq.function_unit.SizeableTPE import SizeableThreadPoolExecutor def singleton(cls): instances = {} def get_instance(*args, **kwargs): if cls not in instances: instances[cls] = cls(*args, **kwargs) return instances[cls] return get_instance def full_0(string: str, num_of_zero: int) -> str: if len(string) < num_of_zero: string = string.rjust(num_of_zero, '0') return string def get_msg_mark(): return datetime.datetime.now().strftime('%Y%m%d%H%M%S') + full_0( str(random.randint(0, 999999999999)), 6) # 消息池(初步为本地缓存目录) msg_pool = os.path.expanduser('~') + '/.dophon_msg_pool/' if not os.path.exists(msg_pool): os.mkdir(msg_pool) remote_msg_pool = os.path.expanduser('~') + '/.dophon_remote_msg_pool/' if not os.path.exists(remote_msg_pool): os.mkdir(remote_msg_pool) def join_threadable(f): def method(*args, **kwargs): Thread(target=f, args=args, kwargs=kwargs).start() return method max_workers = properties.msg_queue_max_num # pool = ThreadPoolExecutor(max_workers=max_workers) pool = SizeableThreadPoolExecutor(max_workers=max_workers) trace_manager = {} def threadable(): def method(f): def target_args(*args, **kwargs): # pool.update_worker_size() # 采用线程池操作,减缓cpu压力 # pool.submit(f, *args, **kwargs) # 采用新线程处理 Thread(target=f,args=args,kwargs=kwargs).start() return target_args return method def encode_ack_info(d: dict) -> str: """ 把确认信息字典编码 :param d: :return: """ res = [] for item in d.items(): res.append('%s:%s' % item) return ','.join(res) def decode_ack_info(s: str) -> dict: """ 把确认信息字典解码 :param s: :return: """ res = s.split(',') obj = {} for item in res: k, v = item.split(':') obj[k] = str(v) return obj def get_os_type(): return os.name == 'nt' PK!f+(('dophon_mq-1.0.0.post5.dist-info/LICENSEApache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "{}" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright 2018 CallMeE Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.PK!HnHTU%dophon_mq-1.0.0.post5.dist-info/WHEEL A н#Z;/"d&F[xzw@Zpy3Fv]\fi4WZ^EgM_-]#0(q7PK!HiV(dophon_mq-1.0.0.post5.dist-info/METADATAAk1&v A"Bzq7&Xҫeo#40:bO5p߱W4gyz'"_N P3H;Ey(&ǀ2XF',ۨ_'yǫLM)vXoZ,Jc/!S"fZ}~'C4 hվ lK0 +gIy+Õc'9Mޑ 'lQ Xw}ok{0ϳlgTUmHE[beA3_n p)x/clT}w{p PBq^.^Ŕ];Mfq(QI[KI2.+dj(S`ia2)>$3g,g0<JO50 &pw^/e/8mUxчGE|&!Զ0S{T$X/ޫi-wM)|kZppٵz$ɠ^5 PK!fdophon_mq/__init__.pyPK!)zhdophon_mq/bone_data.pyPK!콈"#dophon_mq/function_unit/__init__.pyPK!婈# dophon_mq/function_unit/Consumer.pyPK!ք襮#adophon_mq/function_unit/Producer.pyPK!t&Pdophon_mq/function_unit/SizeableTPE.pyPK!Mdophon_mq/local/__init__.pyPK!ƙ**dophon_mq/local/MsgCenter.pyPK! Adophon_mq/properties/__init__.pyPK!ɖƁ*Adophon_mq/properties/default_properties.pyPK!{(i"Bdophon_mq/properties/properties.pyPK!Fdophon_mq/remote/__init__.pyPK!X7.UU!Fdophon_mq/remote/remote_center.pyPK!`e[dophon_mq/utils.pyPK!f+(('ddophon_mq-1.0.0.post5.dist-info/LICENSEPK!HnHTU%ōdophon_mq-1.0.0.post5.dist-info/WHEELPK!HiV(\dophon_mq-1.0.0.post5.dist-info/METADATAPK!H0a&gdophon_mq-1.0.0.post5.dist-info/RECORDPKǒ