httk.core.datastream.textstream_url_view

Classes

TextstreamURLView

A view presenting an underlying data streaming backend via a URL string.

Module Contents

class httk.core.datastream.textstream_url_view.TextstreamURLView(obj, **hints)

Bases: httk.core.datastream.textstream_view.TextstreamView, str

A view presenting an underlying data streaming backend via a URL string. This view is mostly useful for providing a URL to functions that will open it. Note: this view is not lazy (this is impossible for views inheriting str, since str is immutable).

Raises TypeError if created with a streaming data source that does not come with a URL.

Parameters:
Raises:

TypeError – If the source has no URL.

unwrap()

Return the raw representation of the wrapped backend.

Returns:

The backend’s most raw available representation.

Return type:

Any