Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/pathwaycom/pathway
/ optional_imports
Function
optional_imports
python/pathway/optional_import.py:7–11 ·
view source on GitHub ↗
(extra: str)
Source
from the content-addressed store, hash-verified
5
6
@contextmanager
7
def
optional_imports(extra: str):
8
try
:
9
yield
10
except
ImportError
as
e:
11
raise
ImportError(f
"{e}. Consider installing 'pathway[{extra}]'"
)
Callers
15
create_source
Function · 0.90
_parser_utils.py
File · 0.90
parse_image_details
Function · 0.90
__init__
Method · 0.90
__init__
Method · 0.90
__init__
Method · 0.90
__init__
Method · 0.90
__init__
Method · 0.90
__init__
Method · 0.90
__init__
Method · 0.90
_monkeypatch_openai_async
Function · 0.90
__init__
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected