# Copyright (c) 2015-2018. Mount Sinai School of Medicine
#
# 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
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# 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.

from __future__ import print_function, division, absolute_import

from .download import fetch_file, fetch_and_transform, fetch_csv_dataframe
from .database_helpers import (
    db_from_dataframe,
    db_from_dataframes,
    db_from_dataframes_with_absolute_path,
    fetch_csv_db,
    connect_if_correct_version
)
from .common import (
    ensure_dir,
    get_data_dir,
    build_path,
    clear_cache,
    build_local_filename
)
from .cache import Cache

__version__ = '1.1.5'

__all__ = [
    'fetch_file',
    'fetch_and_transform',
    'fetch_csv_dataframe',
    'db_from_dataframe',
    'db_from_dataframes',
    'db_from_dataframes_with_absolute_path',
    'fetch_csv_db',
    'connect_if_correct_version',
    'ensure_dir',
    'get_data_dir',
    'build_path',
    'clear_cache',
    'build_local_filename',
    'Cache',
]
