model_to_line

function of dascore.utils.display source

model_to_line(
    model ,
    skip = (),
    style = None,
    extra = None,
)-> ‘Text’

Get a one-line summary of a pydantic model.

Shaped like a coordinate’s repr: the class name, then each field the model states. Containers of other models show how many they hold.

Parameters

Parameter Description
model The pydantic model to summarize.
skip Field names to leave out, e.g. children the caller lists itself.
style A rich style for the class name.
extra Derived values to state after the fields, such as an interval a
model computes rather than stores.