polars.io.external_reader.ReaderCapabilities#

class polars.io.external_reader.ReaderCapabilities(
row_index: bool = False,
pre_slice: bool = False,
negative_pre_slice: bool = False,
supported_filter: Literal['partial', 'full'] | None = None,
)[source]#

Reader capabilities.

Determines which parameters will be passed to the reader.

Warning

This functionality is considered unstable. It may be changed at any point without it being considered a breaking change.

Parameters:
row_index

The reader supports applying a row index.

pre_slice

The reader supports slicing the data.

negative_pre_slice

The reader supports slicing the data with a negative offset (offset relative to end of file).

supported_filter

The reader supports applying filters:

  • “partial” - Filters are not fully applied; polars will evaluate / filter rows returned by the reader.

  • “full” - Filters are fully applied; polars will not evaluate the filter on rows returned by the reader.

__init__(
row_index: bool = False,
pre_slice: bool = False,
negative_pre_slice: bool = False,
supported_filter: Literal['partial', 'full'] | None = None,
) → None[source]#

Methods

__init__([row_index, pre_slice, ...])

Attributes

negative_pre_slice

pre_slice

row_index

supported_filter