# messagebroker-client **Repository Path**: svenqi/messagebroker-client ## Basic Information - **Project Name**: messagebroker-client - **Description**: No description available - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-11-16 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 钱咖消息中间件 Python 客户端 SDK ``` pip install -e git+ssh://git@git.corp.qianka.com/chenlei/messagebroker-client@master#egg=messagebroker ``` ## 使用示例 ```python # -*- coding: utf-8 -*- import time from messagebroker.v3 import MessageBrokerClientV3 client = MessageBrokerClientV3() o = { 'type': 'mb object', 'time': int(time.time()), } _ = client.send( connection='default', exchange='amq.topic', routing_key='mb_hello', o=o, marshal=MessageBrokerClientV3.MARSHAL_MSGPACK, compress=MessageBrokerClientV3.COMPRESS_ZLIB, ) print(_) ```