Skip to content

Commit c8deb0c

Browse files
author
Dana Powers
committed
Reorg kafka imports
- kafka.KafkaClient is new async client - kafka.SimpleClient is old sync client - update copyright / author info - add BrokerConnection; drop KafkaConnection
1 parent 31c3d59 commit c8deb0c

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

kafka/__init__.py

+12-11
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
__title__ = 'kafka'
22
from .version import __version__
3-
__author__ = 'David Arthur'
3+
__author__ = 'Dana Powers'
44
__license__ = 'Apache License 2.0'
5-
__copyright__ = 'Copyright 2015, David Arthur under Apache License, v2.0'
5+
__copyright__ = 'Copyright 2016 Dana Powers, David Arthur, and Contributors'
66

7-
from kafka.client import KafkaClient
8-
from kafka.conn import KafkaConnection
7+
from kafka.client import KafkaClient as SimpleClient
8+
from kafka.client_async import KafkaClient
9+
from kafka.conn import BrokerConnection
910
from kafka.protocol import (
10-
create_message, create_gzip_message, create_snappy_message
11-
)
11+
create_message, create_gzip_message, create_snappy_message)
1212
from kafka.producer import SimpleProducer, KeyedProducer
1313
from kafka.partitioner import RoundRobinPartitioner, HashedPartitioner, Murmur2Partitioner
14-
from kafka.consumer import SimpleConsumer, MultiProcessConsumer, KafkaConsumer
14+
from kafka.consumer import KafkaConsumer, SimpleConsumer, MultiProcessConsumer
1515

1616
__all__ = [
17-
'KafkaClient', 'KafkaConnection', 'SimpleProducer', 'KeyedProducer',
18-
'RoundRobinPartitioner', 'HashedPartitioner', 'SimpleConsumer',
19-
'MultiProcessConsumer', 'create_message', 'create_gzip_message',
20-
'create_snappy_message', 'KafkaConsumer',
17+
'KafkaConsumer', 'KafkaClient', 'BrokerConnection',
18+
'SimpleClient', 'SimpleProducer', 'KeyedProducer',
19+
'RoundRobinPartitioner', 'HashedPartitioner',
20+
'create_message', 'create_gzip_message', 'create_snappy_message',
21+
'SimpleConsumer', 'MultiProcessConsumer',
2122
]

0 commit comments

Comments
 (0)