KafkaSenderSDK.py 416 B

1234567891011121314151617181920
  1. # -*- coding: utf-8 -*-
  2. # @Time : 2021/6/18 19:58
  3. # @Author : XuJiakai
  4. # @File : KafkaSenderSDK
  5. # @Software: PyCharm
  6. from kafka import KafkaProducer
  7. from log import get_log
  8. from sdk.WinhcAllClient import WinhcAllClient
  9. log = get_log('KafkaSenderSDK')
  10. class KafkaSenderSDK:
  11. def __init__(self, topic_name, consumer_id):
  12. hosts = WinhcAllClient().get_kafka_sender()
  13. if __name__ == '__main__':
  14. pass