bbc1.core.bbc_config module

Copyright (c) 2017

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

class bbc1.core.bbc_config.BBcConfig(directory=None, file=None, default_confpath=None)[source]

Bases: object

System configuration


Return config dictionary

get_domain_config(domain_id, create_if_new=False)[source]

Return the part of specified domain_id in the config dictionary


Get config in json format


Read config file


Remove the part of specified domain_id in the config dictionary


Write config to file (config.json)

bbc1.core.bbc_config.update_deep(d, u)[source]

Utility for updating nested dictionary