gnomish_army_knife.macro package#
Submodules#
gnomish_army_knife.macro.category module#
A module implementing an interface for macro categories.
- class gnomish_army_knife.macro.category.MacroCategory(data: dict[str, str | int | float | bool | None | dict[str, str | int | float | bool | None] | list[str | int | float | bool | None]] = None, schemas: SchemaMap = None, dest_attr: str = 'data', verify: bool = True)[source]#
Bases:
BasicGakCodecA class implementing an interface for macros.
gnomish_army_knife.macro.database module#
A module implementing a macro database structure.
- class gnomish_army_knife.macro.database.MacroDatabase(data: dict[str, str | int | float | bool | None | dict[str, str | int | float | bool | None] | list[str | int | float | bool | None]] = None, schemas: SchemaMap = None, dest_attr: str = 'data', verify: bool = True)[source]#
Bases:
BasicGakCodecA class implementing an interface for macros.
- init(data: dict[str, str | int | float | bool | None | dict[str, str | int | float | bool | None] | list[str | int | float | bool | None]]) None[source]#
Perform implementation-specific initialization.
- static load(path: Path | str = 'package://gnomish_army_knife/macros.yaml') MacroDatabase[source]#
Load a macro database from disk.
gnomish_army_knife.macro.group module#
A module implementing an interface for macro groups.
- class gnomish_army_knife.macro.group.MacroGroup(data: dict[str, str | int | float | bool | None | dict[str, str | int | float | bool | None] | list[str | int | float | bool | None]] = None, schemas: SchemaMap = None, dest_attr: str = 'data', verify: bool = True)[source]#
Bases:
BasicGakCodecA class implementing an interface for macros.
Module contents#
A module implementing macro interfaces.
- class gnomish_army_knife.macro.Macro(data: dict[str, str | int | float | bool | None | dict[str, str | int | float | bool | None] | list[str | int | float | bool | None]] = None, schemas: SchemaMap = None, dest_attr: str = 'data', verify: bool = True)[source]#
Bases:
GakDictCodec,BasicDictCodecA class implementing an interface for macros.
- init(data: dict[str, str | int | float | bool | None | dict[str, str | int | float | bool | None] | list[str | int | float | bool | None]]) None[source]#
Perform implementation-specific initialization.
- short_markdown: str#