[docs]classAnimuClient(BaseClient):"""Represents the "Animu" endpoint. This class is not meant to be instantiated you. Instead, access it through the :attr:`~somerandomapi.Client.animu` attribute of the :class:`~somerandomapi.Client` class. """
[docs]asyncdefget(self,animu_type:ValidAnimu|AnimuEnum,/)->str:"""Get a random animu image. Parameters ---------- animu_type: Union[:class:`~somerandomapi.Animu`, :class:`str`] The type of animu image to get. Can be one of the :class:`~somerandomapi.Animu` enum values or a string representing the action. Returns ------- :class:`str` The URL of the random animu image. """res=awaitself._http.request(AnimuEndpoint.from_enum(_utils._str_or_enum(animu_type,AnimuEnum)))returnres["link"]
[docs]asyncdefrandom_quote(self)->AnimuQuote:"""Get a random quote from a random animu. Returns ------- :class:`~somerandomapi.AnimuQuote` Object containing the quote and other information. Use the ``.quote`` attribute to get the quote string. """response=awaitself._http.request(_Endpoint.ANIMU_QUOTE)returnAnimuQuote(**response)
[docs]@BaseClient._proxy_to(get,pre_args=((0,AnimuEnum.HUG),))asyncdefhug(self)->str:"""Shortcut for :meth:`~AnimuClient.get` with :attr:`.Animu.HUG`."""...
[docs]@BaseClient._proxy_to(get,pre_args=((0,AnimuEnum.PAT),))asyncdefpat(self)->str:"""Shortcut for :meth:`~AnimuClient.get` with :attr:`.Animu.PAT`."""...
[docs]@BaseClient._proxy_to(get,pre_args=((0,AnimuEnum.NOM),))asyncdefnom(self)->str:"""Shortcut for :meth:`~AnimuClient.get` with :attr:`.Animu.NOM`."""...
[docs]@BaseClient._proxy_to(get,pre_args=((0,AnimuEnum.CRY),))asyncdefcry(self)->str:"""Shortcut for :meth:`~AnimuClient.get` with :attr:`.Animu.CRY`."""...
[docs]@BaseClient._proxy_to(get,pre_args=((0,AnimuEnum.KISS),))asyncdefkiss(self)->str:"""Shortcut for :meth:`~AnimuClient.get` with :attr:`.Animu.KISS`."""...
[docs]@BaseClient._proxy_to(get,pre_args=((0,AnimuEnum.POKE),))asyncdefpoke(self)->str:"""Shortcut for :meth:`~AnimuClient.get` with :attr:`.Animu.POKE`."""...