This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# -*- coding: utf-8 -*-
"""Provide log symbols for various log levels."""
importplatform
fromenumimportEnum
fromcoloramaimportinit,deinit,Fore
init(autoreset=True)
_MAIN={
'info':'ℹ',
'success':'✔',
'warning':'⚠',
'error':'✖'
}
_FALLBACKS={
'info':'¡',
'success':'v',
'warning':'!!',
'error':'×'
}
defis_supported():
"""Check whether operating system supports main symbols or not.
Returns
-------
boolean
Whether operating system supports main symbols or not