Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Make console script exit if required imports aren't found
  • Loading branch information
km-64 committed Sep 28, 2025
commit b3c39efdf5dd7cfe8c5baa2a5be7621af32d031c
2 changes: 2 additions & 0 deletions rsocket/cli/command.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import asyncio
import logging
import ssl
import sys
from contextlib import asynccontextmanager
from dataclasses import dataclass
from enum import Enum, unique
Expand All @@ -12,6 +13,7 @@
except ImportError:
print("This command requires the CLI extra.")
print("Install with: pip install rsocket[cli]")
sys.exit(1)

from rsocket.awaitable.awaitable_rsocket import AwaitableRSocket
from rsocket.extensions.helpers import route, composite, authenticate_simple, authenticate_bearer
Expand Down
Loading