summaryrefslogtreecommitdiff
path: root/kafka/producer/__init__.py
diff options
context:
space:
mode:
authorJeff Widman <jeff@jeffwidman.com>2019-10-11 12:03:22 -0700
committerGitHub <noreply@github.com>2019-10-11 12:03:22 -0700
commit3631bfa009a28767a2057c9beee470acaa6597d5 (patch)
treee10b73861a33d83a95b6496ef3074ee3caeaae41 /kafka/producer/__init__.py
parent6d3800ca9f45fd953689a1787fc90a5e566e34ea (diff)
downloadkafka-python-3631bfa009a28767a2057c9beee470acaa6597d5.tar.gz
Remove SimpleClient, Producer, Consumer, Unittest (#1196)
In the 2.0 release, we're removing: * `SimpleClient` * `SimpleConsumer` * `SimpleProducer` * Old partitioners used by `SimpleProducer`; these are superceded by the `DefaultPartitioner` These have been deprecated for several years in favor of `KafkaClient` / `KafkaConsumer` / `KafkaProducer`. Since 2.0 allows breaking changes, we are removing the deprecated classes. Additionally, since the only usage of `unittest` was in tests for these old Simple* clients, this also drops `unittest` from the library. All tests now run under `pytest`.
Diffstat (limited to 'kafka/producer/__init__.py')
-rw-r--r--kafka/producer/__init__.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/kafka/producer/__init__.py b/kafka/producer/__init__.py
index 54fd8d2..576c772 100644
--- a/kafka/producer/__init__.py
+++ b/kafka/producer/__init__.py
@@ -1,10 +1,7 @@
from __future__ import absolute_import
from kafka.producer.kafka import KafkaProducer
-from kafka.producer.simple import SimpleProducer
-from kafka.producer.keyed import KeyedProducer
__all__ = [
- 'KafkaProducer',
- 'SimpleProducer', 'KeyedProducer' # deprecated
+ 'KafkaProducer'
]