-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for confluent python lib (#1042)
* Use our own ConsumerRecord * Replace aiokafka ConsumerRecord with custom one * Update api docs * Use _missing from local * Move ConsumerRecord to separate file * WIP: Add custom producer using Confluent Kafka It still behaves like sync. Asyncify? * Remove unnecessary line * Add one more config param * Fix patching in security tests * Update tests for kafka security * Add acks param * WIP: Add consumer * Add separate ConfluentKafkaBroker and tests for it * WIP: Integrate confluent async consumer to wrappers * Use aiokafka's ConsumerRecord and fix mypy issues as much as possible * Update docstring * Update security tests * Update docs * Revert back old changes * Use confluent kafka consumer * WIP: Debug tests * Catch confluent_kafka's KafkaException also * Remove using AbstractPartitionAssignor from aiokafka in confluent_broker * Ad confluent_broker.pyi * Use confluent_kafka.Message instead of ConsumerRecord in AsyncConfluentConsumer * Use only necessary config params for AdminClient * Add docstring at missing places * refactor: refactor confluent get_data methods * WIP: Separate kafka and confluent * WIP: Lint * Separate out confluent as standalone broker * Update API docs * Pass sasl params only if sasl_mechanism is provided * linting... * linting... * WIP: Reformat tests * Update import * Fix mypy issues * WIP: more mypy fixes * Use warning instead of warn * Enable confluent security tests * Add security tests * Fix mypy issue * Add tests for router * Fix ruff linting issues * Fix some mypy issues * Fix import issues * Fix typo and update similar to main changes * enable CI on the branch * enable CI on the branch * fixing pre-commit * Install confluent dependency in workflows * Add test-confluent-smoke workflow * Add 'not confluent' in workflow * Add 'not confluent' in workflow * Disable test which is getting stuck randomly * Commit and close confluent consumer, Enable problematic tests * Add docs for confluent KafkaBroker * Install pytest-retry above 3.8 version and update tests * Revert fastapi test changes * Bump version to 0.4.0rc0 --------- Co-authored-by: Sternakt <[email protected]> Co-authored-by: Nikita Pastukhov <[email protected]> Co-authored-by: Davor Runje <[email protected]>
- Loading branch information
1 parent
d391563
commit 5cac95b
Showing
118 changed files
with
7,658 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dependant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
# 0.5 - API | ||
# 2 - Release | ||
# 3 - Contributing | ||
# 5 - Template Page | ||
# 10 - Default | ||
search: | ||
boost: 0.5 | ||
--- | ||
|
||
::: faststream.confluent.KafkaBroker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
# 0.5 - API | ||
# 2 - Release | ||
# 3 - Contributing | ||
# 5 - Template Page | ||
# 10 - Default | ||
search: | ||
boost: 0.5 | ||
--- | ||
|
||
::: faststream.broker.router.BrokerRoute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
# 0.5 - API | ||
# 2 - Release | ||
# 3 - Contributing | ||
# 5 - Template Page | ||
# 10 - Default | ||
search: | ||
boost: 0.5 | ||
--- | ||
|
||
::: faststream.confluent.KafkaRouter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
# 0.5 - API | ||
# 2 - Release | ||
# 3 - Contributing | ||
# 5 - Template Page | ||
# 10 - Default | ||
search: | ||
boost: 0.5 | ||
--- | ||
|
||
::: faststream.broker.test.TestApp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
# 0.5 - API | ||
# 2 - Release | ||
# 3 - Contributing | ||
# 5 - Template Page | ||
# 10 - Default | ||
search: | ||
boost: 0.5 | ||
--- | ||
|
||
::: faststream.confluent.TestKafkaBroker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
# 0.5 - API | ||
# 2 - Release | ||
# 3 - Contributing | ||
# 5 - Template Page | ||
# 10 - Default | ||
search: | ||
boost: 0.5 | ||
--- | ||
|
||
::: faststream.confluent.asyncapi.Handler |
11 changes: 11 additions & 0 deletions
11
docs/docs/en/api/faststream/confluent/asyncapi/Publisher.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
# 0.5 - API | ||
# 2 - Release | ||
# 3 - Contributing | ||
# 5 - Template Page | ||
# 10 - Default | ||
search: | ||
boost: 0.5 | ||
--- | ||
|
||
::: faststream.confluent.asyncapi.Publisher |
11 changes: 11 additions & 0 deletions
11
docs/docs/en/api/faststream/confluent/broker/KafkaBroker.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
# 0.5 - API | ||
# 2 - Release | ||
# 3 - Contributing | ||
# 5 - Template Page | ||
# 10 - Default | ||
search: | ||
boost: 0.5 | ||
--- | ||
|
||
::: faststream.confluent.broker.KafkaBroker |
11 changes: 11 additions & 0 deletions
11
docs/docs/en/api/faststream/confluent/client/AsyncConfluentConsumer.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
# 0.5 - API | ||
# 2 - Release | ||
# 3 - Contributing | ||
# 5 - Template Page | ||
# 10 - Default | ||
search: | ||
boost: 0.5 | ||
--- | ||
|
||
::: faststream.confluent.client.AsyncConfluentConsumer |
Oops, something went wrong.