phystool.tags
Module Contents
Classes
Helper class that manages tags. |
Data
API
- phystool.tags.logger
“getLogger(…)”
- class phystool.tags.TagManager
Initialization
- property tags: phystool.tags.Tags
- from_ids(tag_ids: set[int]) → phystool.tags.Tags
- get_id(category_name: str, tag_name: str) → int
- reload_from_db() → None
- class phystool.tags.Tags(tags: dict[str, set[str]])
Helper class that manages tags.
- Paramètres:
tags – tags sorted by category
Initialization
- manager
“TagManager(…)”
- display() → None
- as_ids() → set[int]
- with_overlap(other: phystool.tags.Tags) → bool
Returns
Falseif a category doesn’t share any tag between this instance and the other instance, otherwise, returnsTrue
- without_overlap(other: phystool.tags.Tags) → bool
Returns
Falseif a category shares at least one tag between this instance and the other instance, otherwise, returnsTrue