snowmobile.core.tag

Container for the attributes parsed from a Tag.

Module Contents

Classes

Attrs

Extended dictionary for attribute storage.

class snowmobile.core.tag.Attrs(sn: Optional[Snowmobile] = None, raw: Optional[str] = None, args: Optional[str] = None, index: Optional[int] = None, **connection_kwargs)

Bases: dict

Extended dictionary for attribute storage.

Initialize self. See help(type(self)) for accurate signature.

sn :Snowmobile

Connection / configuration.

Type

Optional[snowmobile.Snowmobile]

index :int

Index position within the script.

Type

int

tag(self, raw: bool = False, namespace: bool = False, wrap: bool = False)Union[str, Dict, Attrs]

Explicit accessor for self.

property is_tagged(self)bool

Statement has a prepended tag.

property is_multiline(self)bool

Contains multiline wrap.