ptera.tags
Tag system for variables.
Variables can be tagged as e.g. x: ptera.tag.Important and the
selectors x:Important or *:Important would match it.
Alternatively, Ptera recognizes x: "@Important" as referring
to these tags.
- class ptera.tags.Tag(name)
Tag for a variable, to be used as an annotation.
- Parameters
name – The name of the tag.
- class ptera.tags.TagSet(members)
Set of multiple tags.
- ptera.tags.get_tags(*tags)
Build a Tag or TagSet from strings.
- ptera.tags.match_tag(to_match, tg)
Return whether two Tags or TagSets match.
Only tg can be a TagSet.