types-kafka-python 2.3.2.20260807__tar.gz → 3.0.9.20260813__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/CHANGELOG.md +4 -0
- {types_kafka_python-2.3.2.20260807/types_kafka_python.egg-info → types_kafka_python-3.0.9.20260813}/PKG-INFO +4 -3
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/README.md +3 -2
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/METADATA.toml +1 -1
- types_kafka_python-3.0.9.20260813/kafka-stubs/__init__.pyi +38 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/admin/__init__.pyi +68 -0
- types_kafka_python-2.3.2.20260807/kafka-stubs/admin/acl_resource.pyi → types_kafka_python-3.0.9.20260813/kafka-stubs/admin/_acls.pyi +42 -25
- types_kafka_python-3.0.9.20260813/kafka-stubs/admin/_cluster.pyi +27 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/admin/_configs.pyi +83 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/admin/_groups.pyi +64 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/admin/_partitions.pyi +32 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/admin/_topics.pyi +35 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/admin/_transactions.pyi +80 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/admin/_users.pyi +36 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/admin/client.pyi +77 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/__init__.pyi +6 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/__init__.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/acls/__init__.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/acls/common.pyi +8 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/acls/create.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/acls/delete.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/acls/describe.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/cluster/__init__.pyi +25 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/cluster/describe.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/cluster/describe_quorum.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/cluster/features.pyi +18 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/cluster/log_dirs.pyi +18 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/cluster/versions.pyi +18 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/configs/__init__.pyi +12 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/configs/alter.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/configs/common.pyi +7 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/configs/describe.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/configs/list.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/configs/reset.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/groups/__init__.pyi +29 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/groups/alter_offsets.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/groups/delete.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/groups/delete_offsets.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/groups/describe.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/groups/list.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/groups/list_offsets.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/groups/remove_members.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/groups/reset_offsets.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/partitions/__init__.pyi +26 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/partitions/alter_reassignments.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/partitions/create.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/partitions/delete_records.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/partitions/describe.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/partitions/elect_leaders.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/partitions/list_offsets.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/partitions/list_reassignments.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/topics/__init__.pyi +12 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/topics/create.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/topics/delete.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/topics/describe.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/topics/list.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/transactions/__init__.pyi +15 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/transactions/abort.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/transactions/describe.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/transactions/describe_producers.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/transactions/find_hanging.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/transactions/list.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/users/__init__.pyi +9 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/users/alter_user_scram_credentials.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/admin/users/describe_user_scram_credentials.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/common.pyi +11 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/consumer/__init__.pyi +6 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cli/producer/__init__.pyi +6 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/cluster.pyi +58 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/consumer/fetcher.pyi +16 -17
- types_kafka_python-3.0.9.20260813/kafka-stubs/consumer/group.pyi +148 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/consumer/subscription_state.pyi +54 -10
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/coordinator/assignors/abstract.pyi +6 -3
- types_kafka_python-3.0.9.20260813/kafka-stubs/coordinator/assignors/cooperative_sticky.pyi +14 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/coordinator/assignors/range.pyi +12 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/coordinator/assignors/roundrobin.pyi +12 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/coordinator/assignors/sticky/partition_movements.pyi +0 -2
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/coordinator/assignors/sticky/sticky_assignor.pyi +10 -19
- types_kafka_python-3.0.9.20260813/kafka-stubs/coordinator/assignors/sticky/user_data.pyi +6 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/coordinator/base.pyi +18 -33
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/coordinator/consumer.pyi +8 -9
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/coordinator/heartbeat.pyi +7 -9
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/coordinator/subscription.pyi +1 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/errors.pyi +53 -175
- types_kafka_python-3.0.9.20260813/kafka-stubs/future.pyi +21 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/compound_stat.pyi +3 -1
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/dict_reporter.pyi +1 -5
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/kafka_metric.pyi +1 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/metric_config.pyi +1 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/metric_name.pyi +1 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/metrics.pyi +0 -4
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/quota.pyi +1 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/stats/avg.pyi +1 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/stats/count.pyi +1 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/stats/histogram.pyi +3 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/stats/max_stat.pyi +1 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/stats/min_stat.pyi +1 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/stats/percentile.pyi +1 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/stats/percentiles.pyi +1 -1
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/stats/rate.pyi +2 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/stats/sampled_stat.pyi +1 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/stats/sensor.pyi +11 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/stats/total.pyi +1 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/net/__init__.pyi +26 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/net/compat.pyi +24 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/net/connection.pyi +57 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/net/http_connect.pyi +10 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/net/inet.pyi +16 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/net/manager.pyi +44 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/net/metrics.pyi +15 -0
- {types_kafka_python-2.3.2.20260807/kafka-stubs → types_kafka_python-3.0.9.20260813/kafka-stubs/net}/sasl/gssapi.pyi +1 -1
- {types_kafka_python-2.3.2.20260807/kafka-stubs → types_kafka_python-3.0.9.20260813/kafka-stubs/net}/sasl/msk.pyi +1 -3
- {types_kafka_python-2.3.2.20260807/kafka-stubs → types_kafka_python-3.0.9.20260813/kafka-stubs/net}/sasl/oauth.pyi +2 -6
- {types_kafka_python-2.3.2.20260807/kafka-stubs → types_kafka_python-3.0.9.20260813/kafka-stubs/net}/sasl/plain.pyi +1 -3
- {types_kafka_python-2.3.2.20260807/kafka-stubs → types_kafka_python-3.0.9.20260813/kafka-stubs/net}/sasl/scram.pyi +2 -4
- {types_kafka_python-2.3.2.20260807/kafka-stubs → types_kafka_python-3.0.9.20260813/kafka-stubs/net}/sasl/sspi.pyi +1 -3
- types_kafka_python-3.0.9.20260813/kafka-stubs/net/selector.pyi +73 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/net/socks5.pyi +22 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/net/transport.pyi +43 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/net/wakeup_notifier.pyi +4 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/partitioner/__init__.pyi +5 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/partitioner/abc.pyi +9 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/partitioner/default.pyi +6 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/partitioner/sticky.pyi +6 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/producer/future.pyi +4 -1
- types_kafka_python-3.0.9.20260813/kafka-stubs/producer/kafka.pyi +109 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/producer/producer_batch.pyi +18 -16
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/producer/record_accumulator.pyi +15 -15
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/producer/sender.pyi +3 -16
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/producer/transaction_manager.pyi +41 -18
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/admin/__init__.pyi +76 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/admin/acl.pyi +362 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/admin/client_quotas.pyi +210 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/admin/cluster.pyi +569 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/admin/configs.pyi +405 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/admin/groups.pyi +235 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/admin/topics.pyi +916 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/admin/transactions.pyi +284 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/admin/users.pyi +202 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/api_data.pyi +33 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/api_header.pyi +25 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/api_key.pyi +96 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/api_message.pyi +60 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/broker_version_data.pyi +20 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/consumer/__init__.pyi +37 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/consumer/fetch.pyi +272 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/consumer/group.pyi +799 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/consumer/metadata.pyi +82 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/consumer/offsets.pyi +278 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/data_container.pyi +27 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/generate_stubs.pyi +12 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/metadata/__init__.pyi +13 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/metadata/api_versions.pyi +111 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/metadata/find_coordinator.pyi +98 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/metadata/metadata.pyi +160 -0
- {types_kafka_python-2.3.2.20260807/kafka-stubs/protocol → types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old}/abstract.pyi +2 -0
- {types_kafka_python-2.3.2.20260807/kafka-stubs/protocol → types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old}/add_offsets_to_txn.pyi +1 -4
- {types_kafka_python-2.3.2.20260807/kafka-stubs/protocol → types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old}/add_partitions_to_txn.pyi +9 -3
- {types_kafka_python-2.3.2.20260807/kafka-stubs/protocol → types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old}/admin.pyi +37 -64
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old/api.pyi +66 -0
- {types_kafka_python-2.3.2.20260807/kafka-stubs/protocol → types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old}/api_versions.pyi +4 -7
- {types_kafka_python-2.3.2.20260807/kafka-stubs/protocol → types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old}/commit.pyi +15 -15
- types_kafka_python-2.3.2.20260807/kafka-stubs/coordinator/protocol.pyi → types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old/consumer_protocol.pyi +1 -1
- {types_kafka_python-2.3.2.20260807/kafka-stubs/protocol → types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old}/end_txn.pyi +1 -4
- {types_kafka_python-2.3.2.20260807/kafka-stubs/protocol → types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old}/fetch.pyi +25 -13
- {types_kafka_python-2.3.2.20260807/kafka-stubs/protocol → types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old}/find_coordinator.pyi +7 -4
- {types_kafka_python-2.3.2.20260807/kafka-stubs/protocol → types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old}/group.pyi +34 -24
- {types_kafka_python-2.3.2.20260807/kafka-stubs/protocol → types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old}/init_producer_id.pyi +1 -3
- {types_kafka_python-2.3.2.20260807/kafka-stubs/protocol → types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old}/list_offsets.pyi +3 -8
- {types_kafka_python-2.3.2.20260807/kafka-stubs/protocol → types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old}/metadata.pyi +1 -10
- {types_kafka_python-2.3.2.20260807/kafka-stubs/protocol → types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old}/offset_for_leader_epoch.pyi +1 -6
- {types_kafka_python-2.3.2.20260807/kafka-stubs/protocol → types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old}/produce.pyi +19 -10
- {types_kafka_python-2.3.2.20260807/kafka-stubs/protocol → types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old}/sasl_authenticate.pyi +1 -3
- {types_kafka_python-2.3.2.20260807/kafka-stubs/protocol → types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old}/sasl_handshake.pyi +3 -3
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old/struct.pyi +15 -0
- {types_kafka_python-2.3.2.20260807/kafka-stubs/protocol → types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old}/txn_offset_commit.pyi +1 -4
- {types_kafka_python-2.3.2.20260807/kafka-stubs/protocol → types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old}/types.pyi +21 -11
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/protocol/parser.pyi +2 -7
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/producer/__init__.pyi +19 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/producer/produce.pyi +185 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/producer/transaction.pyi +620 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/sasl.pyi +126 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/schemas/__init__.pyi +4 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/schemas/fields/__init__.pyi +7 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/schemas/fields/array.pyi +21 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/schemas/fields/base.pyi +39 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/schemas/fields/codecs/__init__.pyi +33 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/schemas/fields/codecs/encode_buffer.pyi +22 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/schemas/fields/codecs/tagged_fields.pyi +11 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/schemas/fields/codecs/types.pyi +138 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/schemas/fields/codegen.pyi +11 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/schemas/fields/simple.pyi +17 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/schemas/fields/struct.pyi +32 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/schemas/fields/struct_array.pyi +27 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/schemas/load_json.pyi +3 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/schemas/resources/__init__.pyi +0 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/py.typed +0 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/record/abc.pyi +4 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/record/default_records.pyi +2 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/record/legacy_records.pyi +5 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/record/memory_records.pyi +16 -1
- types_kafka_python-3.0.9.20260813/kafka-stubs/serializer/__init__.pyi +4 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/serializer/abstract.pyi +11 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/serializer/default.pyi +7 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/serializer/json.pyi +5 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/serializer/wrapper.pyi +13 -0
- types_kafka_python-3.0.9.20260813/kafka-stubs/structs.pyi +32 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/util.pyi +14 -5
- types_kafka_python-3.0.9.20260813/pyproject.toml +57 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813/types_kafka_python.egg-info}/PKG-INFO +4 -3
- types_kafka_python-3.0.9.20260813/types_kafka_python.egg-info/SOURCES.txt +236 -0
- types_kafka_python-2.3.2.20260807/kafka-stubs/__init__.pyi +0 -13
- types_kafka_python-2.3.2.20260807/kafka-stubs/admin/__init__.pyi +0 -30
- types_kafka_python-2.3.2.20260807/kafka-stubs/admin/client.pyi +0 -114
- types_kafka_python-2.3.2.20260807/kafka-stubs/admin/config_resource.pyi +0 -12
- types_kafka_python-2.3.2.20260807/kafka-stubs/admin/new_partitions.pyi +0 -6
- types_kafka_python-2.3.2.20260807/kafka-stubs/admin/new_topic.pyi +0 -16
- types_kafka_python-2.3.2.20260807/kafka-stubs/cli/admin/__init__.pyi +0 -3
- types_kafka_python-2.3.2.20260807/kafka-stubs/cli/admin/cluster/__init__.pyi +0 -3
- types_kafka_python-2.3.2.20260807/kafka-stubs/cli/admin/cluster/describe.pyi +0 -3
- types_kafka_python-2.3.2.20260807/kafka-stubs/cli/admin/configs/__init__.pyi +0 -3
- types_kafka_python-2.3.2.20260807/kafka-stubs/cli/admin/configs/describe.pyi +0 -5
- types_kafka_python-2.3.2.20260807/kafka-stubs/cli/admin/consumer_groups/__init__.pyi +0 -3
- types_kafka_python-2.3.2.20260807/kafka-stubs/cli/admin/consumer_groups/delete.pyi +0 -3
- types_kafka_python-2.3.2.20260807/kafka-stubs/cli/admin/consumer_groups/describe.pyi +0 -3
- types_kafka_python-2.3.2.20260807/kafka-stubs/cli/admin/consumer_groups/list.pyi +0 -3
- types_kafka_python-2.3.2.20260807/kafka-stubs/cli/admin/consumer_groups/list_offsets.pyi +0 -3
- types_kafka_python-2.3.2.20260807/kafka-stubs/cli/admin/log_dirs/__init__.pyi +0 -3
- types_kafka_python-2.3.2.20260807/kafka-stubs/cli/admin/log_dirs/describe.pyi +0 -3
- types_kafka_python-2.3.2.20260807/kafka-stubs/cli/admin/topics/__init__.pyi +0 -3
- types_kafka_python-2.3.2.20260807/kafka-stubs/cli/admin/topics/create.pyi +0 -5
- types_kafka_python-2.3.2.20260807/kafka-stubs/cli/admin/topics/delete.pyi +0 -3
- types_kafka_python-2.3.2.20260807/kafka-stubs/cli/admin/topics/describe.pyi +0 -3
- types_kafka_python-2.3.2.20260807/kafka-stubs/cli/admin/topics/list.pyi +0 -3
- types_kafka_python-2.3.2.20260807/kafka-stubs/cli/consumer/__init__.pyi +0 -3
- types_kafka_python-2.3.2.20260807/kafka-stubs/cli/producer/__init__.pyi +0 -3
- types_kafka_python-2.3.2.20260807/kafka-stubs/client_async.pyi +0 -56
- types_kafka_python-2.3.2.20260807/kafka-stubs/cluster.pyi +0 -36
- types_kafka_python-2.3.2.20260807/kafka-stubs/conn.pyi +0 -70
- types_kafka_python-2.3.2.20260807/kafka-stubs/consumer/group.pyi +0 -143
- types_kafka_python-2.3.2.20260807/kafka-stubs/coordinator/assignors/range.pyi +0 -15
- types_kafka_python-2.3.2.20260807/kafka-stubs/coordinator/assignors/roundrobin.pyi +0 -15
- types_kafka_python-2.3.2.20260807/kafka-stubs/future.pyi +0 -19
- types_kafka_python-2.3.2.20260807/kafka-stubs/partitioner/__init__.pyi +0 -3
- types_kafka_python-2.3.2.20260807/kafka-stubs/partitioner/default.pyi +0 -5
- types_kafka_python-2.3.2.20260807/kafka-stubs/producer/kafka.pyi +0 -110
- types_kafka_python-2.3.2.20260807/kafka-stubs/protocol/__init__.pyi +0 -3
- types_kafka_python-2.3.2.20260807/kafka-stubs/protocol/api.pyi +0 -37
- types_kafka_python-2.3.2.20260807/kafka-stubs/protocol/broker_api_versions.pyi +0 -3
- types_kafka_python-2.3.2.20260807/kafka-stubs/protocol/message.pyi +0 -43
- types_kafka_python-2.3.2.20260807/kafka-stubs/protocol/struct.pyi +0 -14
- types_kafka_python-2.3.2.20260807/kafka-stubs/serializer/__init__.pyi +0 -1
- types_kafka_python-2.3.2.20260807/kafka-stubs/serializer/abstract.pyi +0 -15
- types_kafka_python-2.3.2.20260807/kafka-stubs/socks5_wrapper.pyi +0 -25
- types_kafka_python-2.3.2.20260807/kafka-stubs/structs.pyi +0 -53
- types_kafka_python-2.3.2.20260807/pyproject.toml +0 -56
- types_kafka_python-2.3.2.20260807/types_kafka_python.egg-info/SOURCES.txt +0 -142
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/LICENSE +0 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/MANIFEST.in +0 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/codec.pyi +0 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/consumer/__init__.pyi +0 -0
- {types_kafka_python-2.3.2.20260807/kafka-stubs/cli → types_kafka_python-3.0.9.20260813/kafka-stubs/coordinator}/__init__.pyi +0 -0
- {types_kafka_python-2.3.2.20260807/kafka-stubs/coordinator → types_kafka_python-3.0.9.20260813/kafka-stubs/coordinator/assignors}/__init__.pyi +0 -0
- {types_kafka_python-2.3.2.20260807/kafka-stubs/coordinator/assignors → types_kafka_python-3.0.9.20260813/kafka-stubs/coordinator/assignors/sticky}/__init__.pyi +0 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/coordinator/assignors/sticky/sorted_set.pyi +0 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/__init__.pyi +0 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/measurable.pyi +0 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/measurable_stat.pyi +0 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/metrics_reporter.pyi +0 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/stat.pyi +0 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/metrics/stats/__init__.pyi +0 -0
- {types_kafka_python-2.3.2.20260807/kafka-stubs → types_kafka_python-3.0.9.20260813/kafka-stubs/net}/sasl/__init__.pyi +0 -0
- {types_kafka_python-2.3.2.20260807/kafka-stubs → types_kafka_python-3.0.9.20260813/kafka-stubs/net}/sasl/abc.pyi +0 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/producer/__init__.pyi +0 -0
- {types_kafka_python-2.3.2.20260807/kafka-stubs/coordinator/assignors/sticky → types_kafka_python-3.0.9.20260813/kafka-stubs/protocol}/__init__.pyi +0 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/protocol/frame.pyi +0 -0
- /types_kafka_python-2.3.2.20260807/kafka-stubs/py.typed → /types_kafka_python-3.0.9.20260813/kafka-stubs/protocol/old/__init__.pyi +0 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/record/__init__.pyi +0 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/record/_crc32c.pyi +0 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/record/util.pyi +0 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/version.pyi +0 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/setup.cfg +0 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/types_kafka_python.egg-info/dependency_links.txt +0 -0
- {types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/types_kafka_python.egg-info/top_level.txt +0 -0
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [3.0.9.20260813](https://pypi.org/project/types-kafka-python/3.0.9.20260813/) (2026-08-13)
|
|
2
|
+
|
|
3
|
+
* Update to 3.0.9 ([#16189](https://github.com/python/typeshed/pull/16189))
|
|
4
|
+
|
|
1
5
|
## [2.3.2.20260807](https://pypi.org/project/types-kafka-python/2.3.2.20260807/) (2026-08-07)
|
|
2
6
|
|
|
3
7
|
* Run Pyrefly on typeshed stubs in CI ([#16155](https://github.com/python/typeshed/pull/16155))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: types-kafka-python
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.9.20260813
|
|
4
4
|
Summary: Typing stubs for kafka-python
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
Project-URL: Homepage, https://github.com/python/typeshed
|
|
@@ -21,7 +21,7 @@ This is a [type stub package](https://typing.python.org/en/latest/tutorials/exte
|
|
|
21
21
|
for the [`kafka-python`](https://github.com/dpkp/kafka-python) package. It can be used by type checkers
|
|
22
22
|
to check code that uses `kafka-python`. This version of
|
|
23
23
|
`types-kafka-python` aims to provide accurate annotations for
|
|
24
|
-
`kafka-python==
|
|
24
|
+
`kafka-python==3.0.9`.
|
|
25
25
|
|
|
26
26
|
This package is part of the [typeshed project](https://github.com/python/typeshed).
|
|
27
27
|
All fixes for types and metadata should be contributed there.
|
|
@@ -32,8 +32,9 @@ directory.
|
|
|
32
32
|
|
|
33
33
|
This package was tested with the following type checkers:
|
|
34
34
|
* [mypy](https://github.com/python/mypy/) 2.3.0
|
|
35
|
+
* [pyrefly](https://pyrefly.org/) 1.3.0.dev1
|
|
35
36
|
* [pyright](https://github.com/microsoft/pyright) 1.1.411
|
|
36
37
|
* [ty](https://docs.astral.sh/ty/) 0.0.59
|
|
37
38
|
|
|
38
39
|
It was generated from typeshed commit
|
|
39
|
-
[`
|
|
40
|
+
[`b73f5c1a3b4a39ac7f1867e50a58c51c71cf0545`](https://github.com/python/typeshed/commit/b73f5c1a3b4a39ac7f1867e50a58c51c71cf0545).
|
|
@@ -4,7 +4,7 @@ This is a [type stub package](https://typing.python.org/en/latest/tutorials/exte
|
|
|
4
4
|
for the [`kafka-python`](https://github.com/dpkp/kafka-python) package. It can be used by type checkers
|
|
5
5
|
to check code that uses `kafka-python`. This version of
|
|
6
6
|
`types-kafka-python` aims to provide accurate annotations for
|
|
7
|
-
`kafka-python==
|
|
7
|
+
`kafka-python==3.0.9`.
|
|
8
8
|
|
|
9
9
|
This package is part of the [typeshed project](https://github.com/python/typeshed).
|
|
10
10
|
All fixes for types and metadata should be contributed there.
|
|
@@ -15,8 +15,9 @@ directory.
|
|
|
15
15
|
|
|
16
16
|
This package was tested with the following type checkers:
|
|
17
17
|
* [mypy](https://github.com/python/mypy/) 2.3.0
|
|
18
|
+
* [pyrefly](https://pyrefly.org/) 1.3.0.dev1
|
|
18
19
|
* [pyright](https://github.com/microsoft/pyright) 1.1.411
|
|
19
20
|
* [ty](https://docs.astral.sh/ty/) 0.0.59
|
|
20
21
|
|
|
21
22
|
It was generated from typeshed commit
|
|
22
|
-
[`
|
|
23
|
+
[`b73f5c1a3b4a39ac7f1867e50a58c51c71cf0545`](https://github.com/python/typeshed/commit/b73f5c1a3b4a39ac7f1867e50a58c51c71cf0545).
|
{types_kafka_python-2.3.2.20260807 → types_kafka_python-3.0.9.20260813}/kafka-stubs/METADATA.toml
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
version = "
|
|
1
|
+
version = "3.0.9"
|
|
2
2
|
upstream-repository = "https://github.com/dpkp/kafka-python"
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from kafka.admin import KafkaAdminClient as KafkaAdminClient
|
|
2
|
+
from kafka.consumer import KafkaConsumer as KafkaConsumer
|
|
3
|
+
from kafka.consumer.subscription_state import (
|
|
4
|
+
AsyncConsumerRebalanceListener as AsyncConsumerRebalanceListener,
|
|
5
|
+
ConsumerRebalanceListener as ConsumerRebalanceListener,
|
|
6
|
+
)
|
|
7
|
+
from kafka.producer import KafkaProducer as KafkaProducer
|
|
8
|
+
from kafka.protocol.consumer import IsolationLevel as IsolationLevel, OffsetSpec as OffsetSpec
|
|
9
|
+
from kafka.serializer import (
|
|
10
|
+
DefaultSerializer as DefaultSerializer,
|
|
11
|
+
Deserializer as Deserializer,
|
|
12
|
+
JsonSerializer as JsonSerializer,
|
|
13
|
+
Serializer as Serializer,
|
|
14
|
+
)
|
|
15
|
+
from kafka.structs import (
|
|
16
|
+
ConsumerGroupMetadata as ConsumerGroupMetadata,
|
|
17
|
+
OffsetAndMetadata as OffsetAndMetadata,
|
|
18
|
+
TopicPartition as TopicPartition,
|
|
19
|
+
TopicPartitionReplica as TopicPartitionReplica,
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
__all__ = [
|
|
23
|
+
"KafkaAdminClient",
|
|
24
|
+
"KafkaConsumer",
|
|
25
|
+
"KafkaProducer",
|
|
26
|
+
"AsyncConsumerRebalanceListener",
|
|
27
|
+
"ConsumerRebalanceListener",
|
|
28
|
+
"DefaultSerializer",
|
|
29
|
+
"JsonSerializer",
|
|
30
|
+
"Serializer",
|
|
31
|
+
"Deserializer",
|
|
32
|
+
"ConsumerGroupMetadata",
|
|
33
|
+
"OffsetAndMetadata",
|
|
34
|
+
"TopicPartition",
|
|
35
|
+
"TopicPartitionReplica",
|
|
36
|
+
"IsolationLevel",
|
|
37
|
+
"OffsetSpec",
|
|
38
|
+
]
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
from kafka.admin._acls import (
|
|
2
|
+
ACL as ACL,
|
|
3
|
+
ACLFilter as ACLFilter,
|
|
4
|
+
ACLOperation as ACLOperation,
|
|
5
|
+
ACLPermissionType as ACLPermissionType,
|
|
6
|
+
ACLResourcePatternType as ACLResourcePatternType,
|
|
7
|
+
ResourcePattern as ResourcePattern,
|
|
8
|
+
ResourcePatternFilter as ResourcePatternFilter,
|
|
9
|
+
ResourceType as ResourceType,
|
|
10
|
+
)
|
|
11
|
+
from kafka.admin._cluster import UpdateFeatureType as UpdateFeatureType
|
|
12
|
+
from kafka.admin._configs import (
|
|
13
|
+
AlterConfigOp as AlterConfigOp,
|
|
14
|
+
ConfigFilterType as ConfigFilterType,
|
|
15
|
+
ConfigResource as ConfigResource,
|
|
16
|
+
ConfigResourceType as ConfigResourceType,
|
|
17
|
+
ConfigSourceType as ConfigSourceType,
|
|
18
|
+
ConfigType as ConfigType,
|
|
19
|
+
)
|
|
20
|
+
from kafka.admin._groups import GroupState as GroupState, GroupType as GroupType, MemberToRemove as MemberToRemove
|
|
21
|
+
from kafka.admin._partitions import NewPartitions as NewPartitions, OffsetSpec as OffsetSpec, OffsetTimestamp as OffsetTimestamp
|
|
22
|
+
from kafka.admin._topics import NewTopic as NewTopic
|
|
23
|
+
from kafka.admin._transactions import (
|
|
24
|
+
AbortTransactionSpec as AbortTransactionSpec,
|
|
25
|
+
PartitionProducerState as PartitionProducerState,
|
|
26
|
+
ProducerState as ProducerState,
|
|
27
|
+
TransactionDescription as TransactionDescription,
|
|
28
|
+
TransactionListing as TransactionListing,
|
|
29
|
+
TransactionState as TransactionState,
|
|
30
|
+
)
|
|
31
|
+
from kafka.admin._users import (
|
|
32
|
+
ScramMechanism as ScramMechanism,
|
|
33
|
+
UserScramCredentialDeletion as UserScramCredentialDeletion,
|
|
34
|
+
UserScramCredentialUpsertion as UserScramCredentialUpsertion,
|
|
35
|
+
)
|
|
36
|
+
from kafka.admin.client import KafkaAdminClient as KafkaAdminClient
|
|
37
|
+
|
|
38
|
+
__all__ = [
|
|
39
|
+
"KafkaAdminClient",
|
|
40
|
+
"ACL",
|
|
41
|
+
"ACLFilter",
|
|
42
|
+
"ACLOperation",
|
|
43
|
+
"ACLPermissionType",
|
|
44
|
+
"ACLResourcePatternType",
|
|
45
|
+
"ResourceType",
|
|
46
|
+
"ResourcePattern",
|
|
47
|
+
"ResourcePatternFilter",
|
|
48
|
+
"AlterConfigOp",
|
|
49
|
+
"ConfigResource",
|
|
50
|
+
"ConfigResourceType",
|
|
51
|
+
"ConfigType",
|
|
52
|
+
"ConfigSourceType",
|
|
53
|
+
"UpdateFeatureType",
|
|
54
|
+
"GroupState",
|
|
55
|
+
"GroupType",
|
|
56
|
+
"MemberToRemove",
|
|
57
|
+
"OffsetSpec",
|
|
58
|
+
"OffsetTimestamp",
|
|
59
|
+
"AbortTransactionSpec",
|
|
60
|
+
"PartitionProducerState",
|
|
61
|
+
"ProducerState",
|
|
62
|
+
"TransactionDescription",
|
|
63
|
+
"TransactionListing",
|
|
64
|
+
"TransactionState",
|
|
65
|
+
"ScramMechanism",
|
|
66
|
+
"UserScramCredentialDeletion",
|
|
67
|
+
"UserScramCredentialUpsertion",
|
|
68
|
+
]
|
|
@@ -1,13 +1,30 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Sequence
|
|
1
3
|
from enum import IntEnum
|
|
4
|
+
from typing import TypedDict, type_check_only
|
|
5
|
+
|
|
6
|
+
from kafka.errors import KafkaError
|
|
7
|
+
|
|
8
|
+
@type_check_only
|
|
9
|
+
class _CreateAclsResult(TypedDict):
|
|
10
|
+
succeeded: list[ACL]
|
|
11
|
+
failed: list[type[KafkaError]]
|
|
12
|
+
|
|
13
|
+
class ACLAdminMixin:
|
|
14
|
+
config: dict[Incomplete, Incomplete]
|
|
15
|
+
def describe_acls(self, acl_filter: ACLFilter) -> tuple[list[ACL], type[KafkaError]]: ...
|
|
16
|
+
def create_acls(self, acls: Sequence[ACL]) -> _CreateAclsResult: ...
|
|
17
|
+
def delete_acls(self, acl_filters: Sequence[ACLFilter]) -> list[tuple[ACLFilter, list[ACL], type[KafkaError]]]: ...
|
|
2
18
|
|
|
3
19
|
class ResourceType(IntEnum):
|
|
4
20
|
UNKNOWN = 0
|
|
5
21
|
ANY = 1
|
|
6
|
-
CLUSTER = 4
|
|
7
|
-
DELEGATION_TOKEN = 6
|
|
8
|
-
GROUP = 3
|
|
9
22
|
TOPIC = 2
|
|
23
|
+
GROUP = 3
|
|
24
|
+
CLUSTER = 4
|
|
10
25
|
TRANSACTIONAL_ID = 5
|
|
26
|
+
DELEGATION_TOKEN = 6
|
|
27
|
+
USER = 7
|
|
11
28
|
|
|
12
29
|
class ACLOperation(IntEnum):
|
|
13
30
|
UNKNOWN = 0
|
|
@@ -24,7 +41,7 @@ class ACLOperation(IntEnum):
|
|
|
24
41
|
ALTER_CONFIGS = 11
|
|
25
42
|
IDEMPOTENT_WRITE = 12
|
|
26
43
|
CREATE_TOKENS = 13
|
|
27
|
-
DESCRIBE_TOKENS =
|
|
44
|
+
DESCRIBE_TOKENS = 14
|
|
28
45
|
|
|
29
46
|
class ACLPermissionType(IntEnum):
|
|
30
47
|
UNKNOWN = 0
|
|
@@ -39,6 +56,25 @@ class ACLResourcePatternType(IntEnum):
|
|
|
39
56
|
LITERAL = 3
|
|
40
57
|
PREFIXED = 4
|
|
41
58
|
|
|
59
|
+
class ResourcePatternFilter:
|
|
60
|
+
resource_type: ResourceType
|
|
61
|
+
resource_name: str | None
|
|
62
|
+
pattern_type: ACLResourcePatternType
|
|
63
|
+
def __init__(self, resource_type: ResourceType, resource_name: str | None, pattern_type: ACLResourcePatternType) -> None: ...
|
|
64
|
+
def validate(self) -> None: ...
|
|
65
|
+
def __eq__(self, other: ResourcePatternFilter) -> bool: ... # type: ignore[override]
|
|
66
|
+
def __hash__(self) -> int: ...
|
|
67
|
+
|
|
68
|
+
class ResourcePattern(ResourcePatternFilter):
|
|
69
|
+
resource_name: str
|
|
70
|
+
def __init__(
|
|
71
|
+
self,
|
|
72
|
+
resource_type: ResourceType,
|
|
73
|
+
resource_name: str,
|
|
74
|
+
pattern_type: ACLResourcePatternType = ACLResourcePatternType.LITERAL,
|
|
75
|
+
) -> None: ...
|
|
76
|
+
def validate(self) -> None: ...
|
|
77
|
+
|
|
42
78
|
class ACLFilter:
|
|
43
79
|
principal: str | None
|
|
44
80
|
host: str | None
|
|
@@ -54,8 +90,8 @@ class ACLFilter:
|
|
|
54
90
|
resource_pattern: ResourcePatternFilter,
|
|
55
91
|
) -> None: ...
|
|
56
92
|
def validate(self) -> None: ...
|
|
57
|
-
def __eq__(self, other): ...
|
|
58
|
-
def __hash__(self): ...
|
|
93
|
+
def __eq__(self, other: ACLFilter) -> bool: ... # type: ignore[override]
|
|
94
|
+
def __hash__(self) -> int: ...
|
|
59
95
|
|
|
60
96
|
class ACL(ACLFilter):
|
|
61
97
|
resource_pattern: ResourcePattern
|
|
@@ -69,23 +105,4 @@ class ACL(ACLFilter):
|
|
|
69
105
|
) -> None: ...
|
|
70
106
|
def validate(self) -> None: ...
|
|
71
107
|
|
|
72
|
-
class ResourcePatternFilter:
|
|
73
|
-
resource_type: ResourceType
|
|
74
|
-
resource_name: str | None
|
|
75
|
-
pattern_type: ACLResourcePatternType
|
|
76
|
-
def __init__(self, resource_type: ResourceType, resource_name: str | None, pattern_type: ACLResourcePatternType) -> None: ...
|
|
77
|
-
def validate(self) -> None: ...
|
|
78
|
-
def __eq__(self, other): ...
|
|
79
|
-
def __hash__(self): ...
|
|
80
|
-
|
|
81
|
-
class ResourcePattern(ResourcePatternFilter):
|
|
82
|
-
resource_name: str
|
|
83
|
-
def __init__(
|
|
84
|
-
self,
|
|
85
|
-
resource_type: ResourceType,
|
|
86
|
-
resource_name: str,
|
|
87
|
-
pattern_type: ACLResourcePatternType = ACLResourcePatternType.LITERAL,
|
|
88
|
-
) -> None: ...
|
|
89
|
-
def validate(self) -> None: ...
|
|
90
|
-
|
|
91
108
|
def valid_acl_operations(int_vals) -> set[ACLOperation]: ...
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from enum import IntEnum
|
|
3
|
+
|
|
4
|
+
from kafka.protocol.api_key import ApiKey
|
|
5
|
+
from kafka.util import EnumHelper
|
|
6
|
+
|
|
7
|
+
class ClusterAdminMixin:
|
|
8
|
+
def describe_cluster(self) -> dict[str, Incomplete]: ...
|
|
9
|
+
def describe_log_dirs(
|
|
10
|
+
self,
|
|
11
|
+
topic_partitions: dict[Incomplete, Incomplete] | list[Incomplete] | None = None,
|
|
12
|
+
brokers: list[Incomplete] | None = None,
|
|
13
|
+
) -> list[dict[str, Incomplete]]: ...
|
|
14
|
+
def alter_replica_log_dirs(self, replica_assignments): ...
|
|
15
|
+
def describe_metadata_quorum(self): ...
|
|
16
|
+
def get_broker_version_data(self, broker_id): ...
|
|
17
|
+
def api_versions(self) -> dict[ApiKey, tuple[int, int] | Incomplete]: ...
|
|
18
|
+
def describe_features(self, send_request_to_controller: bool = False) -> dict[str, Incomplete]: ...
|
|
19
|
+
def update_features(
|
|
20
|
+
self, feature_updates: dict[Incomplete, Incomplete], validate_only: bool = False, timeout_ms: int = 60000
|
|
21
|
+
) -> dict[Incomplete, Incomplete]: ...
|
|
22
|
+
|
|
23
|
+
class UpdateFeatureType(EnumHelper, IntEnum):
|
|
24
|
+
UNKNOWN = 0
|
|
25
|
+
UPGRADE = 1
|
|
26
|
+
SAFE_DOWNGRADE = 2
|
|
27
|
+
UNSAFE_DOWNGRADE = 3
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Mapping, Sequence
|
|
3
|
+
from enum import IntEnum
|
|
4
|
+
|
|
5
|
+
from kafka.util import EnumHelper
|
|
6
|
+
|
|
7
|
+
class ConfigAdminMixin:
|
|
8
|
+
config: dict[Incomplete, Incomplete]
|
|
9
|
+
def describe_configs(
|
|
10
|
+
self,
|
|
11
|
+
config_resources: Sequence[ConfigResource],
|
|
12
|
+
include_synonyms: bool = False,
|
|
13
|
+
config_filter: ConfigFilterType | str = "modified",
|
|
14
|
+
): ...
|
|
15
|
+
def list_config_resources(self, resource_types: Sequence[ConfigResourceType | str] | None = None): ...
|
|
16
|
+
def alter_configs(
|
|
17
|
+
self,
|
|
18
|
+
config_resources: Sequence[ConfigResource],
|
|
19
|
+
validate_only: bool = False,
|
|
20
|
+
raise_on_unknown: bool = True,
|
|
21
|
+
incremental: bool | None = None,
|
|
22
|
+
): ...
|
|
23
|
+
def reset_configs(
|
|
24
|
+
self,
|
|
25
|
+
config_resources: Sequence[ConfigResource],
|
|
26
|
+
validate_only: bool = False,
|
|
27
|
+
raise_on_unknown: bool = True,
|
|
28
|
+
incremental: bool | None = None,
|
|
29
|
+
): ...
|
|
30
|
+
|
|
31
|
+
class AlterConfigOp(EnumHelper, IntEnum):
|
|
32
|
+
SET = 0
|
|
33
|
+
DELETE = 1
|
|
34
|
+
APPEND = 2
|
|
35
|
+
SUBTRACT = 3
|
|
36
|
+
|
|
37
|
+
class ConfigFilterType(EnumHelper, IntEnum):
|
|
38
|
+
ALL = 0
|
|
39
|
+
DYNAMIC = 1
|
|
40
|
+
MODIFIED = 2
|
|
41
|
+
DEFAULT = 3
|
|
42
|
+
STATIC = 4
|
|
43
|
+
def should_skip(self, config_source: ConfigSourceType) -> bool: ...
|
|
44
|
+
|
|
45
|
+
class ConfigResourceType(EnumHelper, IntEnum):
|
|
46
|
+
UNKNOWN = 0
|
|
47
|
+
TOPIC = 2
|
|
48
|
+
BROKER = 4
|
|
49
|
+
BROKER_LOGGER = 8
|
|
50
|
+
CLIENT_METRICS = 16
|
|
51
|
+
GROUP = 32
|
|
52
|
+
|
|
53
|
+
class ConfigResource:
|
|
54
|
+
resource_type: ConfigResourceType
|
|
55
|
+
name: str
|
|
56
|
+
configs: Mapping[str, str] | None
|
|
57
|
+
def __init__(self, resource_type: ConfigResourceType | str, name: str, configs: Mapping[str, str] | None = None) -> None: ...
|
|
58
|
+
|
|
59
|
+
class ConfigType(EnumHelper, IntEnum):
|
|
60
|
+
UNKNOWN = 0
|
|
61
|
+
BOOLEAN = 1
|
|
62
|
+
STRING = 2
|
|
63
|
+
INT = 3
|
|
64
|
+
SHORT = 4
|
|
65
|
+
LONG = 5
|
|
66
|
+
DOUBLE = 6
|
|
67
|
+
LIST = 7
|
|
68
|
+
CLASS = 8
|
|
69
|
+
PASSWORD = 9
|
|
70
|
+
|
|
71
|
+
class ConfigSourceType(EnumHelper, IntEnum):
|
|
72
|
+
UNKNOWN = 0
|
|
73
|
+
DYNAMIC_TOPIC_CONFIG = 1
|
|
74
|
+
DYNAMIC_BROKER_CONFIG = 2
|
|
75
|
+
DYNAMIC_DEFAULT_BROKER_CONFIG = 3
|
|
76
|
+
STATIC_BROKER_CONFIG = 4
|
|
77
|
+
DEFAULT_CONFIG = 5
|
|
78
|
+
DYNAMIC_BROKER_LOGGER_CONFIG = 6
|
|
79
|
+
DYNAMIC_CLIENT_METRICS_CONFIG = 7
|
|
80
|
+
DYNAMIC_GROUP_CONFIG = 8
|
|
81
|
+
def is_modified(self) -> bool: ...
|
|
82
|
+
@classmethod
|
|
83
|
+
def dynamic_for_resource_type(cls, resource_type: ConfigResourceType) -> ConfigSourceType: ...
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
from _typeshed import Incomplete
|
|
3
|
+
|
|
4
|
+
from kafka.util import EnumHelper
|
|
5
|
+
|
|
6
|
+
class GroupAdminMixin:
|
|
7
|
+
config: dict[Incomplete, Incomplete]
|
|
8
|
+
def describe_groups(
|
|
9
|
+
self, group_ids, group_coordinator_id: int | None = None, include_authorized_operations: bool = False
|
|
10
|
+
): ...
|
|
11
|
+
def list_groups(self, broker_ids=None, states_filter=None, types_filter=None): ...
|
|
12
|
+
def list_group_offsets(self, group_specs): ...
|
|
13
|
+
def delete_groups(self, group_ids, group_coordinator_id: int | None = None): ...
|
|
14
|
+
def alter_group_offsets(self, group_id: str, offsets, group_coordinator_id: int | None = None): ...
|
|
15
|
+
def reset_group_offsets(self, group_id: str, offset_specs, group_coordinator_id: int | None = None): ...
|
|
16
|
+
def delete_group_offsets(self, group_id: str, partitions, group_coordinator_id: int | None = None): ...
|
|
17
|
+
def remove_group_members(self, group_id: str, members, group_coordinator_id: int | None = None): ...
|
|
18
|
+
|
|
19
|
+
class MemberToRemove:
|
|
20
|
+
__slots__ = ("member_id", "group_instance_id", "reason")
|
|
21
|
+
member_id: str | None
|
|
22
|
+
group_instance_id: str | None
|
|
23
|
+
reason: str | None
|
|
24
|
+
def __init__(self, member_id: str | None = None, group_instance_id: str | None = None, reason: str | None = None) -> None: ...
|
|
25
|
+
def __eq__(self, other: MemberToRemove) -> bool: ... # type: ignore[override]
|
|
26
|
+
def __hash__(self) -> int: ...
|
|
27
|
+
|
|
28
|
+
if sys.version_info >= (3, 11):
|
|
29
|
+
from enum import StrEnum
|
|
30
|
+
|
|
31
|
+
class GroupState(EnumHelper, StrEnum):
|
|
32
|
+
UNKNOWN = "Unknown"
|
|
33
|
+
PREPARING_REBALANCE = "PreparingRebalance"
|
|
34
|
+
COMPLETING_REBALANCE = "CompletingRebalance"
|
|
35
|
+
STABLE = "Stable"
|
|
36
|
+
DEAD = "Dead"
|
|
37
|
+
EMPTY = "Empty"
|
|
38
|
+
ASSIGNING = "Assigning"
|
|
39
|
+
RECONCILING = "Reconciling"
|
|
40
|
+
|
|
41
|
+
class GroupType(EnumHelper, StrEnum):
|
|
42
|
+
UNKNOWN = "Unknown"
|
|
43
|
+
CLASSIC = "classic"
|
|
44
|
+
CONSUMER = "consumer"
|
|
45
|
+
SHARE = "share"
|
|
46
|
+
|
|
47
|
+
else:
|
|
48
|
+
from enum import Enum
|
|
49
|
+
|
|
50
|
+
class GroupState(EnumHelper, str, Enum):
|
|
51
|
+
UNKNOWN = "Unknown"
|
|
52
|
+
PREPARING_REBALANCE = "PreparingRebalance"
|
|
53
|
+
COMPLETING_REBALANCE = "CompletingRebalance"
|
|
54
|
+
STABLE = "Stable"
|
|
55
|
+
DEAD = "Dead"
|
|
56
|
+
EMPTY = "Empty"
|
|
57
|
+
ASSIGNING = "Assigning"
|
|
58
|
+
RECONCILING = "Reconciling"
|
|
59
|
+
|
|
60
|
+
class GroupType(EnumHelper, str, Enum):
|
|
61
|
+
UNKNOWN = "Unknown"
|
|
62
|
+
CLASSIC = "classic"
|
|
63
|
+
CONSUMER = "consumer"
|
|
64
|
+
SHARE = "share"
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Mapping, Sequence
|
|
3
|
+
from typing_extensions import deprecated
|
|
4
|
+
|
|
5
|
+
from kafka.protocol.consumer import IsolationLevel, OffsetSpec as OffsetSpec, OffsetTimestamp as OffsetTimestamp
|
|
6
|
+
from kafka.structs import TopicPartition
|
|
7
|
+
|
|
8
|
+
class PartitionAdminMixin:
|
|
9
|
+
config: dict[Incomplete, Incomplete]
|
|
10
|
+
def create_partitions(
|
|
11
|
+
self,
|
|
12
|
+
topic_partitions: Mapping[str, int | dict[Incomplete, Incomplete] | NewPartitions],
|
|
13
|
+
timeout_ms: int | None = None,
|
|
14
|
+
validate_only: bool = False,
|
|
15
|
+
raise_errors: bool = True,
|
|
16
|
+
): ...
|
|
17
|
+
def delete_records(
|
|
18
|
+
self, records_to_delete: Mapping[TopicPartition, int], timeout_ms: float | None = None, partition_leader_id=None
|
|
19
|
+
) -> dict[TopicPartition, Incomplete]: ...
|
|
20
|
+
def elect_leaders(self, election_type, topic_partitions=None, timeout_ms=None, raise_errors: bool = True): ...
|
|
21
|
+
def alter_partition_reassignments(self, reassignments, timeout_ms=None): ...
|
|
22
|
+
def list_partition_reassignments(self, topic_partitions=None, timeout_ms=None): ...
|
|
23
|
+
def describe_topic_partitions(self, topics, response_partition_limit: int = 2000, cursor=None): ...
|
|
24
|
+
def list_partition_offsets(
|
|
25
|
+
self, topic_partition_specs, isolation_level: IsolationLevel = IsolationLevel.READ_UNCOMMITTED, timeout_ms=None
|
|
26
|
+
): ...
|
|
27
|
+
|
|
28
|
+
@deprecated("Deprecated since v3.0.0. Use simple `dict` instead.")
|
|
29
|
+
class NewPartitions:
|
|
30
|
+
total_count: int
|
|
31
|
+
new_assignments: Sequence[Sequence[int]] | None
|
|
32
|
+
def __init__(self, total_count: int, new_assignments: Sequence[Sequence[int]] | None = None) -> None: ...
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import uuid
|
|
2
|
+
from _typeshed import Incomplete
|
|
3
|
+
from collections.abc import Mapping, Sequence
|
|
4
|
+
from typing_extensions import deprecated
|
|
5
|
+
|
|
6
|
+
class TopicAdminMixin:
|
|
7
|
+
config: dict[Incomplete, Incomplete]
|
|
8
|
+
def list_topics(self) -> list[str]: ...
|
|
9
|
+
def describe_topics(self, topics: Sequence[str | uuid.UUID] | None = None) -> list[dict[str, Incomplete]]: ...
|
|
10
|
+
def create_topics(
|
|
11
|
+
self,
|
|
12
|
+
new_topics: dict[str, dict[Incomplete, Incomplete]] | Sequence[NewTopic],
|
|
13
|
+
timeout_ms: float | None = None,
|
|
14
|
+
validate_only: bool = False,
|
|
15
|
+
raise_errors: bool = True,
|
|
16
|
+
wait_for_metadata: bool = False,
|
|
17
|
+
): ...
|
|
18
|
+
def wait_for_topics(self, topic_names, timeout_ms: float | None = 10000): ...
|
|
19
|
+
def delete_topics(self, topics: Sequence[str | uuid.UUID], timeout_ms: float | None = None, raise_errors: bool = True): ...
|
|
20
|
+
|
|
21
|
+
@deprecated("Deprecated since v3.0.0. Use simple `dict` instead.")
|
|
22
|
+
class NewTopic:
|
|
23
|
+
name: str
|
|
24
|
+
num_partitions: int
|
|
25
|
+
replication_factor: int
|
|
26
|
+
replica_assignments: Mapping[int, Sequence[int]] | None
|
|
27
|
+
topic_configs: Mapping[str, str] | None
|
|
28
|
+
def __init__(
|
|
29
|
+
self,
|
|
30
|
+
name: str,
|
|
31
|
+
num_partitions: int = -1,
|
|
32
|
+
replication_factor: int = -1,
|
|
33
|
+
replica_assignments: Mapping[int, Sequence[int]] | None = None,
|
|
34
|
+
topic_configs: Mapping[str, str] | None = None,
|
|
35
|
+
) -> None: ...
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
from _typeshed import Incomplete
|
|
3
|
+
from typing import NamedTuple
|
|
4
|
+
|
|
5
|
+
from kafka.structs import TopicPartition
|
|
6
|
+
from kafka.util import EnumHelper
|
|
7
|
+
|
|
8
|
+
if sys.version_info >= (3, 11):
|
|
9
|
+
from enum import StrEnum
|
|
10
|
+
|
|
11
|
+
class TransactionState(EnumHelper, StrEnum):
|
|
12
|
+
EMPTY = "Empty"
|
|
13
|
+
ONGOING = "Ongoing"
|
|
14
|
+
PREPARE_COMMIT = "PrepareCommit"
|
|
15
|
+
PREPARE_ABORT = "PrepareAbort"
|
|
16
|
+
COMPLETE_COMMIT = "CompleteCommit"
|
|
17
|
+
COMPLETE_ABORT = "CompleteAbort"
|
|
18
|
+
DEAD = "Dead"
|
|
19
|
+
PREPARE_EPOCH_FENCE = "PrepareEpochFence"
|
|
20
|
+
UNKNOWN = "Unknown"
|
|
21
|
+
|
|
22
|
+
else:
|
|
23
|
+
from enum import Enum
|
|
24
|
+
|
|
25
|
+
class TransactionState(EnumHelper, str, Enum):
|
|
26
|
+
EMPTY = "Empty"
|
|
27
|
+
ONGOING = "Ongoing"
|
|
28
|
+
PREPARE_COMMIT = "PrepareCommit"
|
|
29
|
+
PREPARE_ABORT = "PrepareAbort"
|
|
30
|
+
COMPLETE_COMMIT = "CompleteCommit"
|
|
31
|
+
COMPLETE_ABORT = "CompleteAbort"
|
|
32
|
+
DEAD = "Dead"
|
|
33
|
+
PREPARE_EPOCH_FENCE = "PrepareEpochFence"
|
|
34
|
+
UNKNOWN = "Unknown"
|
|
35
|
+
|
|
36
|
+
class TransactionListing(NamedTuple):
|
|
37
|
+
transactional_id: str
|
|
38
|
+
producer_id: int
|
|
39
|
+
state: TransactionState
|
|
40
|
+
|
|
41
|
+
class TransactionDescription(NamedTuple):
|
|
42
|
+
coordinator_id: int
|
|
43
|
+
state: TransactionState
|
|
44
|
+
producer_id: int
|
|
45
|
+
producer_epoch: int
|
|
46
|
+
transaction_timeout_ms: int
|
|
47
|
+
transaction_start_time_ms: int
|
|
48
|
+
topic_partitions: set[TopicPartition]
|
|
49
|
+
|
|
50
|
+
class ProducerState(NamedTuple):
|
|
51
|
+
producer_id: int
|
|
52
|
+
producer_epoch: int
|
|
53
|
+
last_sequence: int
|
|
54
|
+
last_timestamp: int
|
|
55
|
+
coordinator_epoch: int
|
|
56
|
+
current_transaction_start_offset: int
|
|
57
|
+
|
|
58
|
+
class PartitionProducerState(NamedTuple):
|
|
59
|
+
active_producers: list[ProducerState]
|
|
60
|
+
|
|
61
|
+
class AbortTransactionSpec(NamedTuple):
|
|
62
|
+
topic_partition: TopicPartition
|
|
63
|
+
producer_id: int
|
|
64
|
+
producer_epoch: int
|
|
65
|
+
coordinator_epoch: int = -1
|
|
66
|
+
|
|
67
|
+
class TransactionsAdminMixin:
|
|
68
|
+
config: dict[Incomplete, Incomplete]
|
|
69
|
+
def list_transactions(
|
|
70
|
+
self,
|
|
71
|
+
broker_ids=None,
|
|
72
|
+
producer_id_filters=None,
|
|
73
|
+
state_filters=None,
|
|
74
|
+
duration_filter_ms: float | None = None,
|
|
75
|
+
transactional_id_pattern: str | None = None,
|
|
76
|
+
): ...
|
|
77
|
+
def describe_transactions(self, transactional_ids): ...
|
|
78
|
+
def describe_producers(self, partitions, broker_id: int | None = None): ...
|
|
79
|
+
def abort_transaction(self, spec): ...
|
|
80
|
+
def find_hanging_transactions(self, broker_ids=None, max_transaction_timeout_ms: float = 900000): ...
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from _typeshed import ReadableBuffer
|
|
2
|
+
from collections.abc import Sequence
|
|
3
|
+
from enum import IntEnum
|
|
4
|
+
from typing import Final
|
|
5
|
+
|
|
6
|
+
class UserAdminMixin:
|
|
7
|
+
def alter_user_scram_credentials(self, alterations: Sequence[UserScramCredentialDeletion | UserScramCredentialUpsertion]): ...
|
|
8
|
+
def describe_user_scram_credentials(self, users: Sequence[str] | None = None): ...
|
|
9
|
+
|
|
10
|
+
class ScramMechanism(IntEnum):
|
|
11
|
+
UNKNOWN = 0
|
|
12
|
+
SCRAM_SHA_256 = 1
|
|
13
|
+
SCRAM_SHA_512 = 2
|
|
14
|
+
@property
|
|
15
|
+
def hash_name(self) -> str: ...
|
|
16
|
+
|
|
17
|
+
class UserScramCredentialDeletion:
|
|
18
|
+
user: str
|
|
19
|
+
mechanism: ScramMechanism
|
|
20
|
+
def __init__(self, user: str, mechanism: ScramMechanism | int | str) -> None: ...
|
|
21
|
+
|
|
22
|
+
class UserScramCredentialUpsertion:
|
|
23
|
+
DEFAULT_ITERATIONS: Final = 4096
|
|
24
|
+
user: str
|
|
25
|
+
mechanism: ScramMechanism
|
|
26
|
+
iterations: int
|
|
27
|
+
salt: ReadableBuffer
|
|
28
|
+
salted_password: bytes
|
|
29
|
+
def __init__(
|
|
30
|
+
self,
|
|
31
|
+
user: str,
|
|
32
|
+
mechanism: ScramMechanism | int | str,
|
|
33
|
+
password: str | ReadableBuffer,
|
|
34
|
+
iterations: int | None = None,
|
|
35
|
+
salt: ReadableBuffer | None = None,
|
|
36
|
+
) -> None: ...
|