module mokadi.mokadi_info

Inheritance diagram of botadi.mokadi.mokadi_info

Short summary

module botadi.mokadi.mokadi_info

Defines results for mokadi.

source on GitHub

Classes

class

truncated documentation

MokadiInfo

Defines results for Mokadi.

Properties

property

truncated documentation

error

property

has_image

Tells if there is an image.

has_sound

Tells if there is sound.

has_url

Tells if there is an image.

image

retrieve the image

info

property

sound

retrieve the sound

status

property

Url

retrieve the url

Methods

method

truncated documentation

__init__

Constructor

__repr__

message to string

__str__

message to string

_repr_html_

for notebooks

Documentation

Defines results for mokadi.

source on GitHub

class botadi.mokadi.mokadi_info.MokadiInfo(status: str, info='', error='', image=None, sound=None, url=None)

Bases: object

Defines results for Mokadi.

source on GitHub

Constructor

Parameters
  • status – message (string)

  • info – text to display

  • error – error message

  • image – image name

  • sound – sound

  • url – one URL

source on GitHub

property Url

retrieve the url

source on GitHub

__init__(status: str, info='', error='', image=None, sound=None, url=None)

Constructor

Parameters
  • status – message (string)

  • info – text to display

  • error – error message

  • image – image name

  • sound – sound

  • url – one URL

source on GitHub

__repr__()

message to string

source on GitHub

__str__()

message to string

source on GitHub

_allowed_status = {'empty', 'error', 'ok'}
_repr_html_()

for notebooks

source on GitHub

property error

property

source on GitHub

property has_image

Tells if there is an image.

source on GitHub

property has_sound

Tells if there is sound.

source on GitHub

property has_url

Tells if there is an image.

source on GitHub

property image

retrieve the image

source on GitHub

property info

property

source on GitHub

property sound

retrieve the sound

source on GitHub

property status

property

source on GitHub