Skip to content

Commit 49202be

Browse files
authored
feat: Rename streaming_kafka_consumer to arroyo (#1953)
1 parent ea829c7 commit 49202be

82 files changed

Lines changed: 251 additions & 315 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
pip install pytest==6.1.2
4343
- name: Run mypy
4444
run: |
45-
mypy --config-file mypy.ini --ignore-missing-imports --strict --warn-unreachable snuba streaming_kafka_consumer
45+
mypy --config-file mypy.ini --ignore-missing-imports --strict --warn-unreachable snuba arroyo
4646
4747
tests:
4848
needs: linting

arroyo/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from arroyo.metrics import configure_metrics
2+
from arroyo.types import Message, Partition, Topic
3+
4+
__all__ = [
5+
"Message",
6+
"Partition",
7+
"Topic",
8+
"configure_metrics",
9+
]
File renamed without changes.

streaming_kafka_consumer/backends/abstract.py renamed to arroyo/backends/abstract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from concurrent.futures import Future
66
from typing import Callable, Generic, Mapping, Optional, Sequence, Union
77

8-
from streaming_kafka_consumer.types import Message, Partition, Topic, TPayload
8+
from arroyo.types import Message, Partition, Topic, TPayload
99

1010
logger = logging.getLogger(__name__)
1111

File renamed without changes.

streaming_kafka_consumer/backends/kafka/configuration.py renamed to arroyo/backends/kafka/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import logging
33
from typing import Any, Dict, Mapping, Optional, Sequence
44

5-
from streaming_kafka_consumer.logging import pylog_to_syslog_level
5+
from arroyo.logging import pylog_to_syslog_level
66

77
logger = logging.getLogger(__name__)
88

streaming_kafka_consumer/backends/kafka/consumer.py renamed to arroyo/backends/kafka/consumer.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@
2222
Union,
2323
)
2424

25+
from arroyo.backends.abstract import Consumer, Producer
26+
from arroyo.concurrent import execute
27+
from arroyo.errors import (
28+
ConsumerError,
29+
EndOfPartition,
30+
OffsetOutOfRange,
31+
TransportError,
32+
)
33+
from arroyo.retries import NoRetryPolicy, RetryPolicy
34+
from arroyo.types import Message, Partition, Topic
2535
from confluent_kafka import (
2636
OFFSET_BEGINNING,
2737
OFFSET_END,
@@ -34,16 +44,6 @@
3444
from confluent_kafka import Message as ConfluentMessage
3545
from confluent_kafka import Producer as ConfluentProducer
3646
from confluent_kafka import TopicPartition as ConfluentTopicPartition
37-
from streaming_kafka_consumer.backends.abstract import Consumer, Producer
38-
from streaming_kafka_consumer.concurrent import execute
39-
from streaming_kafka_consumer.errors import (
40-
ConsumerError,
41-
EndOfPartition,
42-
OffsetOutOfRange,
43-
TransportError,
44-
)
45-
from streaming_kafka_consumer.retries import NoRetryPolicy, RetryPolicy
46-
from streaming_kafka_consumer.types import Message, Partition, Topic
4747

4848
logger = logging.getLogger(__name__)
4949

File renamed without changes.

streaming_kafka_consumer/backends/local/backend.py renamed to arroyo/backends/local/backend.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
Union,
2121
)
2222

23-
from streaming_kafka_consumer.backends.abstract import Consumer, Producer
24-
from streaming_kafka_consumer.backends.local.storages.abstract import MessageStorage
25-
from streaming_kafka_consumer.clock import Clock, SystemClock
26-
from streaming_kafka_consumer.errors import ConsumerError, EndOfPartition
27-
from streaming_kafka_consumer.types import Message, Partition, Topic, TPayload
23+
from arroyo.backends.abstract import Consumer, Producer
24+
from arroyo.backends.local.storages.abstract import MessageStorage
25+
from arroyo.clock import Clock, SystemClock
26+
from arroyo.errors import ConsumerError, EndOfPartition
27+
from arroyo.types import Message, Partition, Topic, TPayload
2828

2929

3030
class LocalBroker(Generic[TPayload]):
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from arroyo.backends.local.storages.abstract import MessageStorage
2+
3+
__all__ = [
4+
"MessageStorage",
5+
]

0 commit comments

Comments
 (0)