-
SimpleNamedDictField — A dict that also accepts a simple string set and builds a dict from that.
-
SimpleNamedNestedField — Return a union of a nested schema and an alternate field.
-
RoleField — Prettified Role Field.
-
PagesField — ComicInfo Pages.
comicbox.formats.base.fields.comicbox¶
source module comicbox.formats.base.fields.comicbox
Comicbox Fields.
Classes
source class SimpleNamedDictField(*args: Any, keys: Field | type[Field] = StringField, values: Field | type[Field] | None = None, allow_empty_values: bool = True, sort: bool = True, **kwargs: Any)
Bases : Union
A dict that also accepts a simple string set and builds a dict from that.
Create the union.
source class SimpleNamedNestedField(*args: Any, schema: type[BaseSubSchema] = IdentifiedNameSchema, field: Field | type[Field] = StringField, name_key: str = NAME_KEY, primitive_type: type = str, **kwargs: Any)
Bases : Union
Return a union of a nested schema and an alternate field.
Create the union.
Bases : PrettifiedStringField
Prettified Role Field.
source class PagesField(*args: Any, keys_as_string: bool = False, **kwargs: Any)