config

config is an instance of apicore.config.Config

class apicore.config.Config(configFile='conf/config.yaml')

Manage configuration values. To use by importing the instance :

exemple:
from apicore import config

print(config.server_name)
isDefined(name)

Check whether configuration directive is defined or not

Parameters:string (str) – Name of configuration directive
Return boolean:True is directive is defined
load(confFile='config.yaml')

Load config file from filesystem.

Parameters:string (str) – Path to config file.