Utils ⚙#

Where all the utils live.

Utils Reference#

class novauniverse.utils.search.Search(id: str | int)[source]#
class novauniverse.utils.search.Search(name: str)

Bases: object

A util that allows you to search within an interface by id or name if supported.

get_query() str | int | None[source]#

Returns the query.

not_supported(interface: object) NoReturn[source]#

Raises error to warn user this interface does not support searching by id/name.

class novauniverse.utils.search.SearchBy(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: Enum

ID = 1#
NAME = 2#
exception novauniverse.utils.search.SearchGotNoArgs[source]#

Bases: NovaError

exception novauniverse.utils.search.SearchNotCompletelySupported(searched_by, interface: object)[source]#

Bases: NovaError