Attention

This is the documentation for HARP Proxy, actually published as an early preview. Both the software and documentation are a work in progress, and although we already use it on various production servers, they may contain inaccuracies, typographical errors, huge mistakes and empty pages. We work hard to eradicate all mistakes and implement stuff, but it is a long and tedious process. We appreciate your patience and understanding. Of course, any help will be greatly appreciated.

harp_apps.dashboard.filters.base

class AbstractChoicesFacet[source]

Bases: AbstractFacet

filter(raw_data)[source]
Parameters:

raw_data (list)

filter_from_query(query)[source]
Parameters:

query (MultiDictProxy)

get_filter(raw_data)[source]
Parameters:

raw_data (list)

get_filter_from_query(query)[source]
Parameters:

query (MultiDictProxy)

choices: set | list = {}
exhaustive = True
property values
class AbstractFacet[source]

Bases: object

__init__()[source]
filter(raw_data)[source]
Parameters:

raw_data (list)

filter_from_query(query)[source]
Parameters:

query (MultiDictProxy)

get_filter(raw_data)[source]
Parameters:

raw_data (list)

get_filter_from_query(query)[source]
Parameters:

query (MultiDictProxy)

name = 'name'
property values
class AbstractMinMaxFacet[source]

Bases: AbstractFacet

__init__()[source]
filter(min, max)[source]
filter_from_query(query)[source]
Parameters:

query (MultiDictProxy)

get_filter(min, max)[source]
Parameters:
get_filter_from_query(query)[source]
Parameters:

query (MultiDictProxy)

max: float = 100.0
min: float = 0.0
property values
class FacetWithStorage[source]

Bases: AbstractChoicesFacet

__init__(*, storage)[source]
Parameters:

storage (Storage)

class NonExhaustiveFacet[source]

Bases: AbstractChoicesFacet

__init__()[source]
filter(raw_data)[source]
Parameters:

raw_data (list)

exhaustive = False
fallback_name = 'NULL'