Symbol#

class nominal.core.Symbol(kind: SymbolKind, value: str)#

Bases: object

A symbol used to identify a resource in the Nominal app.

Construct with Symbol.icon, Symbol.emoji, or Symbol.image rather than calling the constructor directly.

kind: SymbolKind#
value: str#
classmethod emoji(name: str) → Self#

A symbol from an emoji name, e.g. :castle:.

classmethod icon(name: str) → Self#

A symbol from a named icon, e.g. castle.

classmethod image(url: str) → Self#

A symbol from the URL of an image.