finchan.env

runtime Environment

the env object is a global singleton object, other modules/extensions can access by just import it and can access/set attributes to env .

Env

class finchan.env.Env(*args, **kwargs)[source]

Global environment

now

current datetime, wraps for dispatcher.now

log is not permitted

Return type:datetime
dispatcher

the dispatcher manager object

Return type:Dispatcher
ext_manager

the extension manager object

Return type:ExtManager
set_dispatcher(dispatcher)[source]

set dispatcher object

Return type:bool
set_ext_manager(ext_manager)[source]

set extension manager object

Return type:bool
get_ext_options(ext_name)[source]

get options for extension named ext in configure file

Return type:Dict[~KT, ~VT]
run()[source]

wraps dispatcher’s run

load_exts(*exts)[source]

load all the extensions in *exts list

Return type:None

env

A global Env object.