phystool.tags

Module Contents

Classes

TagManager

Tags

Helper class that manages tags.

Data

logger

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 False if a category doesn’t share any tag between this instance and the other instance, otherwise, returns True

without_overlap(other: phystool.tags.Tags) bool

Returns False if a category shares at least one tag between this instance and the other instance, otherwise, returns True