summaryrefslogtreecommitdiff
path: root/kafka/structs.py
Commit message (Collapse)AuthorAgeFilesLines
* Enhancement for Kafka Admin Client's "Describe Consumer Group" (#2035)Apurva0072020-09-161-0/+5
| | | | | | Adding namedtuples for DescribeConsumerGroup response; Adding Serialization of MemberData and MemberAssignment for the response Co-authored-by: Apurva Telang <atelang@paypal.com> Co-authored-by: Jeff Widman <jeff@jeffwidman.com>
* Add kafka.structs docstrings (#2080)Mostafa-Elmenbawy2020-09-071-3/+58
| | | Co-authored-by: MostafaElmenabawy <momenabawy@synapse-analytics.io>
* Remove SimpleClient, Producer, Consumer, Unittest (#1196)Jeff Widman2019-10-111-69/+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`.
* Add list_consumer_group_offsets()Jeff Widman2018-11-181-0/+1
| | | | | | | | | | | | | | | | | | | | | Support fetching the offsets of a consumer group. Note: As far as I can tell (the Java code is a little inscrutable), the Java AdminClient doesn't allow specifying the `coordinator_id` or the `partitions`. But I decided to include them because they provide a lot of additional flexibility: 1. allowing users to specify the partitions allows this method to be used even for older brokers that don't support the OffsetFetchRequest_v2 2. allowing users to specify the coordinator ID gives them a way to bypass a network round trip. This method will frequently be used for monitoring, and if you've got 1,000 consumer groups that are being monitored once a minute, that's ~1.5M requests a day that are unnecessarily duplicated as the coordinator doesn't change unless there's an error.
* Don't use `kafka.common` internally1.3.5Jeff Widman2018-06-051-4/+0
| | | | This finishes the split from `kafka.common` to `kafka.errors`/`kafka.structs`.
* Added basic support for offsets_for_times API. Still needs to group by nodes ↵Taras Voinarovskiy2017-08-071-0/+3
| | | | and send in parallel.
* Add send_list_offset_request for searching offset by timestamp (#1001)charsyam2017-03-021-0/+6
|
* Always absolute_importabsolute_importDana Powers2016-08-021-0/+2
|
* Add rack to BrokerMetadata - it is always None when using MetadataRequest v0Dana Powers2016-07-161-1/+1
|
* Split kafka.common into kafka.structs and kafka.errorsDana Powers2016-04-051-0/+88