We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4c7c4b6 + 3e492f7 commit 9642419Copy full SHA for 9642419
pm4py/read.py
@@ -22,8 +22,6 @@
22
from typing import Tuple, Dict, Optional, Union
23
import os
24
25
-# NEW IMPORTS FOR URI SUPPORT
26
-import requests
27
import tempfile
28
import importlib.util
29
from urllib.parse import urlparse
@@ -56,6 +54,7 @@ def _resolve_path(file_path: str) -> str:
56
54
"""
57
55
parsed = urlparse(file_path)
58
if parsed.scheme in ("http", "https"):
+ import requests
59
response = requests.get(file_path)
60
response.raise_for_status()
61
# Infer the file extension from the URL (if available)
0 commit comments