"""Entry point for histdatacom api

histdatacom(options)

Returns:
    data: returns a data frame or a list of data frames and metadata
"""
import sys
from . import histdata_com

__version__ = "0.76.9"
__author__ = 'David Midlo'

class Options(sys.modules[__name__].__class__):
    """Options. A Masquerade class.

    A class that extends sys.modules[__name__].__class__ (or the histdatacom class)
    extends/overwrites with a __call__ method to allow the module to be callable.

    Returns:
        data: returns a data frame or a list of data frames and metadata
    """
    def __call__(self, options):
        return histdata_com.main(options)

sys.modules[__name__].__class__ = Options
