Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ requires-python = ">=3.10"
[project.optional-dependencies]
amqp = []
kafka = ["aiokafka>=0.13.0,<0.14.0"]
nats = ["nats-py>=2.14.0,<3.0.0"]
pubsub = [
"google-auth>=2.43.0",
"grpcio>=1.76.0"
Expand Down
5 changes: 5 additions & 0 deletions repid/connections/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,8 @@
from repid.connections.pubsub import PubsubServer

__all__ += ["PubsubServer"]

if is_installed("nats"):
from repid.connections.nats import NatsServer

__all__ += ["NatsServer"]
1 change: 1 addition & 0 deletions repid/connections/nats/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from repid.connections.nats.message_broker import NatsServer as NatsServer
Loading
Loading