from pathlib import Path


def get_immediate_directories(directory_path):
    """Gets the immediate sub-directories within a directory

    Args:
        directory_path (str): path to the directory

    Returns:
        list(str): list of sub-directories
    """
    p = Path(directory_path)
    return [f for f in p.iterdir() if f.is_dir() and not f.name.startswith(".")]