models

Base and meta model classes.

class mio.models.models.Container

Root model for models intended to be used as runtime data containers, eg. those that actually carry data from a buffer, rather than those that configure positions within a header.

See also: MiniscopeConfig

model_config = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class mio.models.models.MiniscopeConfig

Root model for all configuration models, eg. those that are effectively static at runtime.

Note

Not named Config or BaseConfig because those are both in use already.

See also: Container

model_config = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class mio.models.models.MiniscopeIOModel

Root model for all mio models

model_config = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class mio.models.models.Table(*args, **kwargs)

Root model for metadata tables. Each table should have a corresponding record model for its individual rows

class Config
name: str | None = 'Table'

name of schema

classmethod read_csv(path: Path, **kwargs: dict[str, Any]) DataFrame[Self]

Read and validate a table as a csv