Skip to content

View

linpipe.View

Bases: object

A base class of all LinPipe views.

A view provides access to the data of a layer; it refers to the layer, so the layer must outlive it.

type

type() -> str

Return the type of the view.

Returns:

  • str –

    the view type, e.g., plain_text.

model

model() -> str

Return the model which created the underlying layer.

Returns:

  • str –

    the model of the layer, or an empty string.

license

license() -> str

Return the license of the underlying layer data.

Returns:

  • str –

    the license of the layer, or an empty string.

timestamp

timestamp() -> str

Return the creation time of the underlying layer.

Returns:

  • str –

    the timestamp of the layer as an ISO 8601 date-time in UTC, or an empty string.