imgutils.tagging.blacklist
- Overview:
Detect and drop some blacklisted tags, which are listed here.
is_blacklisted
- imgutils.tagging.blacklist.is_blacklisted(tag: str) bool [source]
Check if any of the given tags are blacklisted.
- Parameters:
tag (str) – Tags to be checked.
- Returns:
True if any tag is blacklisted, False otherwise.
- Return type:
bool
- Examples::
>>> from imgutils.tagging import is_blacklisted >>> >>> is_blacklisted('cosplay') True >>> is_blacklisted('no_eyewear') True >>> is_blacklisted('no eyewear') # span does not matter True >>> is_blacklisted('red_hair') False