TopicPartition should be importable from top-level module

This commit is contained in:
Dana Powers
2016-02-15 12:45:50 -08:00
parent 7c779b31db
commit c0d6273419

View File

@@ -22,6 +22,7 @@ from kafka.conn import BrokerConnection
from kafka.protocol import ( from kafka.protocol import (
create_message, create_gzip_message, create_snappy_message) create_message, create_gzip_message, create_snappy_message)
from kafka.partitioner import RoundRobinPartitioner, HashedPartitioner, Murmur2Partitioner from kafka.partitioner import RoundRobinPartitioner, HashedPartitioner, Murmur2Partitioner
from kafka.common import TopicPartition
# To be deprecated when KafkaProducer interface is released # To be deprecated when KafkaProducer interface is released
from kafka.client import SimpleClient from kafka.client import SimpleClient