API Reference

The following section outlines the API of disnake.

Note

This module uses the Python logging module to log diagnostic and errors in an output independent way.

Modules

thelib

Routines for working with triangles.

thelib.lumache

Lumache - Python library for cooks and food lovers.

thelib.other

other - Python library for cooks and food lovers.

Lumache functions

thelib.lumache.get_random_ingredients(kind=None)

Return a list of random ingredients as strings.

Parameters

kind (list[str] or None) – Optional “kind” of ingredients.

Raises

lumache.InvalidKindError – If the kind is invalid.

Returns

The ingredients list.

Return type

list[str]

Lumache classes

class thelib.lumache.MyClass(s_name='MyName')

A new Object

do_stuff(s_str1, n_value)

A demo method.

Parameters
  • s_str1 (str) – string to print.

  • n_value (float) – value to print.

Returns

a concatenated string

Return type

str