httk.core.datastream.network_policy¶
Policy and timeout helpers for network-backed datastream opens.
Attributes¶
Default timeout for each network open; read freshly for every open, or |
|
Schemes treated as network access; |
Functions¶
Future seam for an opt-in network policy; currently all implicit access is refused. |
|
|
Return an explicit timeout or the current module default. |
Module Contents¶
- httk.core.datastream.network_policy.DEFAULT_NETWORK_TIMEOUT: float | None = 30.0¶
Default timeout for each network open; read freshly for every open, or
Noneto disable.
- httk.core.datastream.network_policy.NETWORK_SCHEMES¶
Schemes treated as network access;
fileis local I/O and deliberately absent.
- httk.core.datastream.network_policy.require_network_consent(url)¶
Future seam for an opt-in network policy; currently all implicit access is refused.
- Parameters:
url (str) – URL whose implicit access was requested.
- Raises:
PermissionError – Always for implicit network access.