Skip to content

rs_rich.ext.data

Generated from the type stubs by scripts/gen_python_api.py; do not edit.

rs_rich.ext.data: structured data: one document tree for JSON, YAML, TOML, XML, INI and dotenv (rich_ext::data).

No Rich counterpart: this is the port's own rs-rich-ext crate.

DATA_FORMATS module-attribute

DATA_FORMATS: List[Any]

SECRET_KEYS module-attribute

SECRET_KEYS: List[Any]

parse module-attribute

parse = parse_data

Node module-attribute

Node = DataNode

diff module-attribute

diff = diff_data

DiffView module-attribute

DiffView = DataDiffView

Change module-attribute

Change = DataChange

json module-attribute

json = DataJson

FORMATS module-attribute

FORMATS = DATA_FORMATS

DataNode

alias property

alias: Any

anchor property

anchor: Any

comment property

comment: Any

is_container property

is_container: Any

position property

position: Any

type_name property

type_name: Any

value property

value: Any

xml_kind property

xml_kind: Any

at

at(path: Any) -> Any

from_python staticmethod

from_python(value: Any) -> Any

get

get(key: Any, default: Any = ...) -> Any

keys

keys() -> Any

redacted

redacted(redaction: Any) -> Any

to_json

to_json(*, indent: Any = ...) -> Any

to_python

to_python() -> Any

walk

walk() -> Any

Explorer

max_depth property writable

max_depth: Any

max_length property writable

max_length: Any

max_string property writable

max_string: Any

node property

node: Any

root_label property writable

root_label: Any

show_paths property writable

show_paths: Any

show_types property writable

show_types: Any

view property writable

view: Any

fold

fold(at: Any) -> Any

highlight

highlight(at: Any, style: Any) -> Any

TableView

FlatView

SearchQuery

SearchMatch

matched_on property

matched_on: Any

node property

node: Any

path property

path: Any

SearchResults

DataChange

kind property

kind: Any

new property

new: Any

old property

old: Any

path property

path: Any

DataDiffView

Redaction

matches_key

matches_key(key: Any) -> Any

secrets staticmethod

secrets() -> Any

ConfigFileView

DataJson

Document

highlights property

highlights: Any

label property

label: Any

node property

node: Any

explorer

explorer() -> Any

Select

expression property

expression: Any

apply

apply(document: Any) -> Any

Filter

expression property

expression: Any

apply

apply(document: Any) -> Any

Highlight

expression property

expression: Any

apply

apply(document: Any) -> Any

Redact

apply

apply(document: Any) -> Any

DataError

Bases: ExtError

SelectError

Bases: ExtError

parse_data

parse_data(content: Any, format: Any = ..., *, name: Any = ...) -> Any

detect_format

detect_format(content: Any, name: Any = ...) -> Any

format_for

format_for(file_name: Any) -> Any

flatten

flatten(data: Any) -> Any

unflatten

unflatten(leaves: Any) -> Any

search

search(data: Any, query: Any = ..., **kwargs: Any) -> Any

select

select(data: Any, expression: Any, *, backend: Any = ...) -> Any

selector_backends

selector_backends() -> Any

diff_data

diff_data(old: Any, new: Any) -> Any