# Path: src/myaas/utils/container.py
# def list_containers(all=True):
#     client = docker.Client()
#     return client.containers(all=all)


import logging
import importlib
from .. import settings
from .container import list_containers


logger = logging.getLogger(__name__)


def get_enabled_backend():
    return importlib.import_module(settings.BACKEND)


def get_myaas_containers():
    return filter(_is_database_container, list_containers())


def list_databases():

# Path: src/myaas/utils/container.py
# def list_containers(all=True):
#     client = docker.Client()
#     return client.containers(all=all)


# Path: src/myaas/utils/database.py
import logging
import importlib
from .. import settings
from .container import list_containers



logger = logging.getLogger(__name__)


def get_enabled_backend():
    return importlib.import_module(settings.BACKEND)


def get_myaas_containers():
    return filter(_is_database_container, list_containers())


def list_databases():

    containers = filter(_is_database_container, list_containers())