cottax.pytree.consumers.visualization module¶
Registers how a key path is drawn (PlaceDrawing); offers NoFormat, jax’s spelling, chosen as a drawing’s formatter=.
- class PathDrawing[source]¶
Bases:
PlaceDrawingA key path, written plainly, as jax spells it, minted under a Mint, grouped by its leading string keys.
- spell_plain(path: Path)[source]¶
A string key as itself, dot-joined – [‘mda’][‘y1’] is mda.y1, ^cond[‘y1’] is ^cond.y1. Any other key (an index, an attribute, a kind no surface mints) is written as jax writes it, so a name is never mis-written.
- Return type:
str
- spelling(path: Path)[source]¶
A name as its own kind writes it in full, in a one-line summary or a refusal.
- Return type:
str