Endian banner

endian.status package

Submodules

endian.status.notifications module

exception NotFoundError

Bases: exceptions.Exception

getNotifications(service, type, *argl, **args)
getNotifications()

Fetches notification data from notifications logger json file. The json file contains log messages posted with ‘info()’ or ‘error()’.

Parameters:
  • service (string) – Specifies the service of which to fetch notifications
  • type – Accepts one of: ‘status’, ‘history’, ‘error’ in order to decide which json file to fetch. ‘status’ contains the current status, history contains all messages since start notified through the logger method ‘info()’ and ‘error’ contains the error messages posted with error().
Service type:

string

endian.status.status module

init(root=None)
test(force=False, msg='', *argl, **args)
test()

Test status interface

Is a sample for a function of the EMI status interface. This text is multiline since it describes what exactly does this function.

In this example the function does nothing of interest, it simple returns a python structure with some example values and parameters if supplied, which then are going to be serialized as JSON by the status EMI module.

This text is only so long and says nothing in the end because I want to test the docstring parser with it and therefore I would like to have some paragraphs, which are separated by empty newlines.

Parameters:
  • force (boolean) – Forces something if True, otherwise does not force at all.
  • msg (string) – Specify a cool message

Table Of Contents

Previous topic

endian.smsnotifications.web package

Next topic

endian.status.web package