dgkafka 1.0.0a8__tar.gz → 1.0.0a9__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dgkafka
3
- Version: 1.0.0a8
3
+ Version: 1.0.0a9
4
4
  Summary: Kafka clients
5
5
  Home-page: https://gitlab.com/gng-group/dgkafka.git
6
6
  Author: Malanris
@@ -38,7 +38,7 @@ class AvroKafkaConsumer(KafkaConsumer):
38
38
  self.logger.error(f"[x] Failed to initialize Avro consumer: {ex}")
39
39
  raise
40
40
 
41
- def consume(self, num_messages: int = 1, timeout: float = 10.0, **kwargs: Any) -> Iterator[str | bytes | Message | None]:
41
+ def consume(self, num_messages: int = 1, timeout: float = 1.0, **kwargs: Any) -> Iterator[str | bytes | Message | None]:
42
42
  """
43
43
  Consume Avro-encoded messages.
44
44
 
@@ -76,7 +76,7 @@ class KafkaConsumer:
76
76
  consumer.seek(topic_partition)
77
77
  self.logger.info(f"[*] Assigned to topic '{topic}' partition {partition} with offset {offset}")
78
78
 
79
- def consume(self, num_messages: int = 1, timeout: float = 10.0, decode_utf8: bool = False) -> Iterator[Message | str]:
79
+ def consume(self, num_messages: int = 1, timeout: float = 1.0, decode_utf8: bool = False) -> Iterator[Message | str]:
80
80
  """Consume messages"""
81
81
  consumer = self._ensure_consumer()
82
82
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dgkafka
3
- Version: 1.0.0a8
3
+ Version: 1.0.0a9
4
4
  Summary: Kafka clients
5
5
  Home-page: https://gitlab.com/gng-group/dgkafka.git
6
6
  Author: Malanris
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "dgkafka"
7
- version = "1.0.0a8"
7
+ version = "1.0.0a9"
8
8
  authors = [
9
9
  {name = "Roman Rasputin", email = "admin@roro.su"},
10
10
  ]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes