-
Notifications
You must be signed in to change notification settings - Fork 933
Moved async into experimental package for regular release #2089
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,6 +49,7 @@ | |
| __all__ = [ | ||
| "admin", | ||
| "Consumer", | ||
| "experimental", | ||
| "KafkaError", | ||
| "KafkaException", | ||
| "kafkatest", | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # Copyright 2025 Confluent Inc. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| """ | ||
| Experimental APIs for confluent_kafka. | ||
| These APIs are subject to change and may be removed or modified in | ||
| incompatible ways in future releases. | ||
| """ | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -15,7 +15,7 @@ | |||
| import asyncio | ||||
| import concurrent.futures | ||||
| import confluent_kafka | ||||
| import confluent_kafka.aio._common as _common | ||||
| from . import _common as _common | ||||
|
|
||||
|
|
||||
| class AIOConsumer: | ||||
|
|
@@ -153,3 +153,5 @@ async def get_watermark_offsets(self, *args, **kwargs): | |||
|
|
||||
| async def offsets_for_times(self, *args, **kwargs): | ||||
| return await self._call(self._consumer.offsets_for_times, *args, **kwargs) | ||||
|
|
||||
|
|
||||
|
||||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -14,4 +14,7 @@ | |||
|
|
||||
| from ._AIOConsumer import AIOConsumer | ||||
| from .producer import AIOProducer | ||||
|
|
||||
| __all__ = ['AIOConsumer', 'AIOProducer'] | ||||
|
|
||||
|
|
||||
|
||||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -75,3 +75,5 @@ def wrap_common_callbacks(loop, conf): | |||
| wrap_conf_callback(loop, conf, 'stats_cb') | ||||
| wrap_conf_callback(loop, conf, 'oauth_cb') | ||||
| wrap_conf_logger(loop, conf) | ||||
|
|
||||
|
|
||||
|
||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # Copyright 2025 Confluent Inc. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| """ | ||
| Confluent Kafka Experimental AIOProducer Module | ||
|
|
||
| This module contains all the components for the async Kafka producer. | ||
| """ | ||
|
|
||
| from ._AIOProducer import AIOProducer | ||
|
|
||
| __all__ = ['AIOProducer'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Unnecessary trailing blank line at the end of the file. Consider removing it.