How to use the databand.dbnd_config.load_system_configs function in databand

To help you get started, we’ve selected a few databand examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github databand-ai / dbnd / modules / dbnd / src / dbnd / _core / context / bootstrap.py View on Github external
def dbnd_system_bootstrap():
    global _dbnd_system_bootstrap
    if _dbnd_system_bootstrap:
        return
    try:
        _dbnd_system_bootstrap = True
        # prevent recursive call, problematic on exception

        init_databand_env()

        if not in_quiet_mode():
            logger.info("Starting Databand %s!\n%s", dbnd.__version__, _env_banner())
        from databand import dbnd_config

        dbnd_config.load_system_configs()
    except Exception:
        _dbnd_system_bootstrap = False
        raise