Can now:
```python
import kafka
kafka.KafkaClient("localhost", 9092)
```
or
```python
from kafka.client import KafkaClient
KafkaClient("localhost", 9092)
```
or
```python
import kafka.client
kafka.client.KafkaClient("localhost", 9092)
```
12 lines
342 B
Python
12 lines
342 B
Python
__title__ = 'kafka'
|
|
__version__ = '0.1-alpha'
|
|
__author__ = 'David Arthur'
|
|
__license__ = 'Apache License 2.0'
|
|
__copyright__ = 'Copyright 2012, David Arthur under Apache License, v2.0'
|
|
|
|
from .client import (
|
|
KafkaClient, KafkaException,
|
|
Message, ProduceRequest, FetchRequest, OffsetRequest
|
|
)
|
|
from .codec import gzip_encode, gzip_decode
|