mads.kernel

module loading.

class Kernel(*args, **kwargs)[source]

Bases: mads.handler.Handler, mads.storage.Storage

announce(txt)[source]

announce txt on all fleet bots.

boot(name='MADS', version=78, txt='FRAMEWORK TO PROGRAM BOTS, JSON BACKEND, MIT LICENSE.', **kwargs)[source]

start the kernel.

callcb(event)[source]
cmnd(txt)[source]

execute a command based on txt.

direct(name, package=None)[source]

import a module directly, not storing it in the cache.

dispatch(event)[source]

dispatch an event.

get_funcs(cmnd)[source]

search for a function registered by command.

init(modname)[source]

initialize a module.

list(name)[source]

list all functions found in a module.

load_mod(modname, force=True)[source]

load a module and if force is sset to True, put in in the cache,

loading(modname, force=True)[source]

load a module.

modules(name='')[source]

return a list of modules in the named packages or cfg.packages if no module name is provided.

once(txt)[source]

run once command.

path = 'runtime/kernel'
register(key, value, force=True)[source]

register handlers.

reload(name, force=False, event=None)[source]

reload module.

shutdown(*args, **kwargs)
walk(name, init=False, force=False)[source]

return all modules in a package.