module documentation

FiftyOne Server view.

Copyright 2017-2025, Voxel51, Inc.

Class ExtendedViewForm Undocumented
Function extend_view Adds the given extended stages to the view.
Function get_extended_view Create an extended view with the provided filters.
Function get_view Gets the view defined by the given request parameters.
Function handle_group_filter Handle a group filter for App view requests.
Async Function load_view Undocumented
Function _add_frame_label_tags Undocumented
Function _add_frame_labels_tags Undocumented
Function _add_label_tags Undocumented
Function _add_labels_tags Undocumented
Function _add_labels_tags_counts Undocumented
Function _apply_none Undocumented
Function _apply_others Undocumented
Function _count_list_items Undocumented
Function _is_datetime Undocumented
Function _is_label_type Undocumented
Function _is_support Undocumented
Function _iter_paths Undocumented
Function _make_field_filter_stages Undocumented
Function _make_keypoint_list_filter Undocumented
Function _make_label_filter_stages Undocumented
Function _make_match_stage Undocumented
Function _make_query Undocumented
Function _make_range_query Undocumented
Function _make_scalar_expression Undocumented
Function _match_label_tags Undocumented
Function _project_pagination_paths Undocumented
Constant _LABEL_TAGS Undocumented
Constant _NONFINITES Undocumented
def extend_view(view, extended_stages): (source)

Adds the given extended stages to the view.

Parameters
viewa fiftyone.core.collections.SampleCollection
extended_stagesan extended stages dict
Returns
a fiftyone.core.view.DatasetView
def get_extended_view(view, filters=None, extended_stages=None, pagination_data=False, media_types=None): (source)

Create an extended view with the provided filters.

Parameters
viewa fiftyone.core.collections.SampleCollection
filtersan optional dict of App defined filters
extended_stages:Noneextended view stages
pagination_data:Falsefilters label data
media_types:Nonethe media types to consider
Returns
a fiftyone.core.view.DatasetView
def get_view(dataset, view_name=None, stages=None, filters=None, pagination_data=False, extended_stages=None, sample_filter=None, reload=True, awaitable=False): (source)

Gets the view defined by the given request parameters.

Parameters
datasetthe dataset name or fiftyone.core.dataset.Dataset instance
view_name:Nonethe name of a saved view to load
stages:Nonean optional list of serialized fiftyone.core.stages.ViewStage instances
filters:Nonean optional dict of App defined filters
pagination_data:Falsewhether process samples as pagination data - excludes all fiftyone.core.fields.DictField values - filters label fields
extended_stages:Noneextended view stages
sample_filter:Nonean optional fiftyone.server.filters.SampleFilter
reload:Truewhether to reload the dataset
awaitable:Falsewhether to return an awaitable coroutine
Returns
a fiftyone.core.view.DatasetView
async def load_view(dataset_name: str, serialized_view: BSONArray, form: ExtendedViewForm, view_name: str | None = None) -> foc.SampleCollection: (source)

Undocumented

def _add_frame_label_tags(path, field, view): (source)

Undocumented

def _add_frame_labels_tags(path, field, view): (source)

Undocumented

def _add_label_tags(path, field, view): (source)

Undocumented

def _add_labels_tags(path, field, view): (source)

Undocumented

def _add_labels_tags_counts(view): (source)

Undocumented

def _apply_none(expr, f, none): (source)

Undocumented

def _apply_others(expr, f, args, is_label): (source)

Undocumented

def _count_list_items(path, view): (source)

Undocumented

def _is_datetime(field): (source)

Undocumented

def _is_label_type(field): (source)

Undocumented

def _is_support(field): (source)

Undocumented

def _iter_paths(view, filters, label_types=None): (source)

Undocumented

def _make_field_filter_stages(view, filters): (source)

Undocumented

def _make_keypoint_list_filter(args, view, path, field): (source)

Undocumented

def _make_label_filter_stages(view, filters): (source)

Undocumented

def _make_match_stage(view, filters): (source)

Undocumented

def _make_query(path: str, field: fof.Field, args): (source)

Undocumented

def _make_range_query(path: str, field: fof.Field, args): (source)

Undocumented

def _make_scalar_expression(f, args, field, list_field=None, is_label=False): (source)

Undocumented

def _match_label_tags(view: foc.SampleCollection, label_tags): (source)

Undocumented

def _project_pagination_paths(view: foc.SampleCollection, media_types: tuple[str] | None = None): (source)

Undocumented

_LABEL_TAGS: str = (source)

Undocumented

Value
'_label_tags'
_NONFINITES = (source)

Undocumented

Value
{'inf': float('inf'), 'nan': float('nan'), 'ninf': float('-inf'), 'none': None}