# Path: termicoder/utils/logging.py



import click
import os
import yaml
    from yaml import CLoader as Loader, CDumper as Dumper
    from yaml import Loader, Dumper
from .logging import logger
try:
except ImportError:


def read(file_path, key=None, safe=False):
    if(not os.path.exists(file_path)):
        return None

    data_file = click.open_file(file_path)
    value = None
    try:
        data = yaml.load(data_file, Loader=Loader)
        data_file.close()
        logger.debug("read data from file %s" % file_path)

# Path: termicoder/utils/logging.py



# Path: termicoder/utils/yaml.py
import click
import os
import yaml
    from yaml import CLoader as Loader, CDumper as Dumper
    from yaml import Loader, Dumper
from .logging import logger

try:
except ImportError:


def read(file_path, key=None, safe=False):
    if(not os.path.exists(file_path)):
        return None

    data_file = click.open_file(file_path)
    value = None
    try:
        data = yaml.load(data_file, Loader=Loader)
        data_file.close()
        logger.debug("read data from file %s" % file_path)

        logger.debug(data)