Skip to content

rs_rich.ext.redact

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

rs_rich.ext.redact: masking secrets in text, ANSI text and rendered output (rich_ext::redact; experimental).

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

REDACT_DETECTORS module-attribute

REDACT_DETECTORS: List[Any]

DETECTORS module-attribute

DETECTORS = REDACT_DETECTORS

Redactor

is_empty property

is_empty: Any

capture

capture(renderable: Any, *, width: Any = ..., color: Any = ...) -> Any

export_html

export_html(renderable: Any, *, width: Any = ..., inline_styles: Any = ...) -> Any

export_svg

export_svg(renderable: Any, *, width: Any = ..., title: Any = ..., unique_id: Any = ...) -> Any

export_text

export_text(renderable: Any, *, width: Any = ...) -> Any

find

find(line: Any) -> Any

redact

redact(text: Any) -> Any

redact_ansi

redact_ansi(text: Any) -> Any

redact_args

redact_args(args: Any) -> Any

redact_byte_chunks

redact_byte_chunks(chunks: Any) -> Any

redact_chunks

redact_chunks(chunks: Any) -> Any

redact_segments

redact_segments(segments: Any) -> Any

secrets staticmethod

secrets() -> Any

RedactMatch

end property

end: Any

kind property

kind: Any

start property

start: Any

Redacted

RedactPatternError

Bases: ExtError

is_secret_key

is_secret_key(key: Any) -> Any