Host resolution¶
pysepal_api.host ¶
Resolve and normalize the SEPAL base URL.
Precedence (highest first):
- Explicit
base_url=(handled by the caller; a bare host is accepted). SEPAL_ENDPOINTenv var, treated as a full URL.SEPAL_HOSTenv var, treated as a bare host.
normalize_base_url ¶
normalize_base_url(value: str) -> str
Accept a bare host or full URL; return a full URL without trailing slash.
Source code in src/pysepal_api/host.py
17 18 19 20 21 22 | |
detect_base_url ¶
detect_base_url() -> str
Source code in src/pysepal_api/host.py
25 26 27 28 29 30 31 32 33 34 | |