summaryrefslogtreecommitdiff
path: root/kafka/partitioner
Commit message (Collapse)AuthorAgeFilesLines
* Remove SimpleClient, Producer, Consumer, Unittest (#1196)Jeff Widman2019-10-115-221/+74
| | | | | | | | | | | | | | | | | | 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`.
* use absolute imports everywhere (#1362)Kevin Tindall2018-02-064-6/+6
|
* Sort partitions before calling partitioner (#905)ms7s2016-12-191-0/+7
|
* Fix murmur2 bug handling python2 bytes that do not ascii encode (#815)Dana Powers2016-10-222-12/+11
| | | | | | * Add test for murmur2 py2 bytes bug * Fix murmur2 handling of python2 bytes * Drop bytearray / str / unicode MurmurPartitioner tests -- no longer supported * Make DefaultPartitioner importable from kafka.partitioner
* Update Partitioners for use with KafkaProducer (#827)barrotsteindev2016-09-283-24/+77
|
* Always absolute_importabsolute_importDana Powers2016-08-024-0/+9
|
* Vendor six 1.10.0sixDana Powers2016-08-011-1/+3
|
* DefaultPartitioner - implements java client logicDana Powers2016-01-241-0/+23
|
* Fix translation of Java murmur2 code, fix byte encoding for Python 3.Chris Chamberlin2015-07-281-10/+12
| | | | | | Avoid further type changes when Murmur2Partitioner is passed a byte array. Change leftover-bytes logic to match the Java switch statement, and add tests to verify that partition selection matches Java implementation.
* Use MurmurHash2 for key partition hashingDana Powers2015-06-102-3/+98
|
* make partitions arg optional in *Partitioner.partition, defaulting to ↵Dana Powers2015-02-093-7/+8
| | | | self.partitions from init
* Add Sphinx API docsWill Daly2015-01-151-4/+6
|
* Separate consumers/producers/partitionersDana Powers2014-09-104-0/+64