nbproject.dev.MetaContainer

class nbproject.dev.MetaContainer(**data)

Bases: BaseModel

The metadata stored in the notebook file.

Attributes

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'allow'}

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

property model_extra: dict[str, Any] | None

Get extra fields set during validation.

Returns:

A dictionary of extra fields, or None if config.extra is not set to "allow".

model_fields: ClassVar[dict[str, FieldInfo]] = {'id': FieldInfo(annotation=str, required=True), 'parent': FieldInfo(annotation=Union[str, List[str], NoneType], required=False, default=None), 'pypackage': FieldInfo(annotation=Union[Mapping[str, str], NoneType], required=False, default=None), 'time_init': FieldInfo(annotation=str, required=True), 'user_handle': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'user_id': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'user_name': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'version': FieldInfo(annotation=str, required=False, default='1')}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

property model_fields_set: set[str]

Returns the set of fields that have been explicitly set on this model instance.

Returns:

A set of strings representing the fields that have been set,

i.e. that were not filled from defaults.

Methods