pycons
Class info¶
🛈 DocStrings¶
Pycons: main package.
Icon utilities (Material Design icons & similar).
get_icon
async
¶
get_icon(icon_name: str) -> Icon
Get a font icon, downloading the font on first use.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
icon_name
|
str
|
Name in format "prefix.name" (e.g. "fa.heart") |
required |
Returns:
| Type | Description |
|---|---|
Icon
|
Icon with the Unicode character and the path to the font file |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the prefix is unknown or the icon does not exist |