Add exports in __init__
This commit is contained in:
@@ -9,10 +9,12 @@ from kafka.conn import KafkaConnection
|
||||
from kafka.protocol import (
|
||||
create_message, create_gzip_message, create_snappy_message
|
||||
)
|
||||
from kafka.producer import SimpleProducer
|
||||
from kafka.producer import SimpleProducer, KeyedProducer
|
||||
from kafka.partitioner import RoundRobinPartitioner, HashedPartitioner
|
||||
from kafka.consumer import SimpleConsumer
|
||||
|
||||
__all__ = [
|
||||
'KafkaClient', 'KafkaConnection', 'SimpleProducer', 'SimpleConsumer',
|
||||
'KafkaClient', 'KafkaConnection', 'SimpleProducer', 'KeyedProducer',
|
||||
'RoundRobinPartitioner', 'HashedPartitioner', 'SimpleConsumer',
|
||||
'create_message', 'create_gzip_message', 'create_snappy_message'
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user