dp3.bin.shcmd.entity.common ¶
Shared helpers for entity commands in the shell-oriented DP3 CLI.
suppress_completion ¶
add_time_range_args ¶
Add common time-range arguments to a parser.
Source code in dp3/bin/shcmd/entity/common.py
add_page_args ¶
Add common paging arguments to a parser.
Source code in dp3/bin/shcmd/entity/common.py
add_ndjson_format_arg ¶
Add common JSON/NDJSON output selection.
Source code in dp3/bin/shcmd/entity/common.py
add_raw_filter_args ¶
Add common raw datapoint filters to a parser.
Source code in dp3/bin/shcmd/entity/common.py
add_type_filter_args ¶
add_type_filter_args(parser: ArgumentParser, *, include_paging: bool, default_limit: int = 20) -> None
Add common entity-type filters to a parser.
Source code in dp3/bin/shcmd/entity/common.py
build_has_attr_filter ¶
Build a generic-filter clause for entities with data present for one attribute.
Source code in dp3/bin/shcmd/entity/common.py
build_generic_filter_param ¶
Build the generic-filter query parameter for entity type queries.
Source code in dp3/bin/shcmd/entity/common.py
build_type_query_params ¶
Build query parameters shared by list and count operations.
Source code in dp3/bin/shcmd/entity/common.py
build_raw_params ¶
Build raw-datapoint query parameters.
Source code in dp3/bin/shcmd/entity/common.py
handle_raw ¶
Browse current raw datapoints for one type or one entity.
Source code in dp3/bin/shcmd/entity/common.py
handle_attr_set_request ¶
Set one current entity attribute value.
Source code in dp3/bin/shcmd/entity/common.py
add_entity_attr_set_args ¶
Add the value argument for entity attribute updates.
Source code in dp3/bin/shcmd/entity/common.py
build_time_page_params ¶
Build query parameters for time-ranged, paged entity resources.
complete_entity_selector ¶
Complete entity types for the path-like entity command.
Source code in dp3/bin/shcmd/entity/common.py
complete_entity_attr_names ¶
Complete attribute names for one entity type.
Source code in dp3/bin/shcmd/entity/common.py
complete_entity_rest ¶
Complete type-scope and single-entity commands under entity.