summaryrefslogtreecommitdiff
path: root/kafka/partitioner/hashed.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove SimpleClient, Producer, Consumer, Unittest (#1196)Jeff Widman2019-10-111-118/+0
| | | | | | | | | | | | | | | | | | 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-061-1/+1
|
* Fix murmur2 bug handling python2 bytes that do not ascii encode (#815)Dana Powers2016-10-221-9/+7
| | | | | | * 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-281-1/+9
|
* Vendor six 1.10.0sixDana Powers2016-08-011-1/+3
|
* 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-101-1/+95
|
* make partitions arg optional in *Partitioner.partition, defaulting to ↵Dana Powers2015-02-091-1/+3
| | | | self.partitions from init
* Separate consumers/producers/partitionersDana Powers2014-09-101-0/+12