httk.core.datastream.datastream_url

Explicit URL intent for lazy datastream consumers.

Classes

DatastreamURL

An explicit network-consent value carrying a URL and optional timeout for lazy consumers, which resolve it through the existing

Module Contents

class httk.core.datastream.datastream_url.DatastreamURL(url, *, timeout=None)

An explicit network-consent value carrying a URL and optional timeout for lazy consumers, which resolve it through the existing fetch/loader machinery; constructing it performs no network I/O.

Parameters:
  • url (str) – URL whose explicit use permits network-backed lazy access.

  • timeout (float | None) – Optional timeout to apply when the URL is opened.

Raises:

ValueError – If the URL uses an unsupported scheme.

property url: str

Return the explicit URL.

property timeout: float | None

Return the timeout to use when opening the URL.