# -*- coding: utf-8 -*-

__all__ = ['FETCHERS', 'FETCHERS_DATASETS']

FETCHERS = {}
FETCHERS_DATASETS = {}

try:
    from dlstats.fetchers.bis import BIS, DATASETS as DATASETS_BIS
    FETCHERS['BIS'] = BIS
    FETCHERS_DATASETS['BIS'] = DATASETS_BIS.copy()
    __all__.append('BIS')
except ImportError:
    pass

#try:
#    from dlstats.fetchers.oecd import OECD, DATASETS as DATASETS_OECD
#    FETCHERS['OECD'] = OECD
#    FETCHERS_DATASETS['OECD'] = DATASETS_OECD.copy()
#    __all__.append('OECD')
#except ImportError:
#    pass

try:
    from dlstats.fetchers.eurostat import Eurostat
    FETCHERS['EUROSTAT'] = Eurostat
    #TODO: FETCHERS_DATASETS['EUROSTAT'] = None
    __all__.append('Eurostat')
except ImportError:
    pass

#try:
#    from dlstats.fetchers.world_bank import WorldBank
#    FETCHERS['WORLDBANK'] = WorldBank
#    #TODO: FETCHERS_DATASETS['WB'] = None
#    __all__.append('WorldBank')
#except ImportError:
#    pass

try:
    from dlstats.fetchers.imf import IMF
    FETCHERS['IMF'] = IMF
    __all__.append('IMF')
except ImportError:
    pass

#try:
#    from dlstats.fetchers.bea import BEA
#    FETCHERS['BEA'] = BEA
#    #TODO: FETCHERS_DATASETS['BEA'] = None
#    __all__.append('BEA')
#except ImportError:
#    pass

try:
    from dlstats.fetchers.ecb import ECB
    FETCHERS['ECB'] = ECB
    #TODO: FETCHERS_DATASETS['ECB'] = None
    __all__.append('ECB')
except ImportError:
    pass

try:
    from dlstats.fetchers.esri import Esri
    FETCHERS['ESRI'] = Esri
    #TODO: FETCHERS_DATASETS['ESRI'] = None
    __all__.append('Esri')
except ImportError:
    pass

try:
    from dlstats.fetchers.insee import INSEE
    FETCHERS['INSEE'] = INSEE
    __all__.append('INSEE')
except ImportError:
    pass

#try:
#    from dlstats.fetchers.destatis import DESTATIS
#    FETCHERS['DESTATIS'] = DESTATIS
#    __all__.append('DESTATIS')
#except ImportError:
#    pass

try:
    from dlstats.fetchers.fed import FED
    FETCHERS['FED'] = FED
    __all__.append('FED')
except ImportError:
    pass

# -*- coding: utf-8 -*-

__all__ = ['FETCHERS']

FETCHERS = {}

try:
    from dlstats.fetchers.bis import BIS
    FETCHERS['BIS'] = BIS
    __all__.append('BIS')
except ImportError:
    pass

#try:
#    from dlstats.fetchers.oecd import OECD
#    FETCHERS['OECD'] = OECD
#    __all__.append('OECD')
#except ImportError:
#    pass

try:
    from dlstats.fetchers.eurostat import Eurostat
    FETCHERS['EUROSTAT'] = Eurostat
    __all__.append('Eurostat')
except ImportError:
    pass

#try:
#    from dlstats.fetchers.world_bank import WorldBank
#    FETCHERS['WORLDBANK'] = WorldBank
#    __all__.append('WorldBank')
#except ImportError:
#    pass

try:
    from dlstats.fetchers.imf import IMF
    FETCHERS['IMF'] = IMF
    __all__.append('IMF')
except ImportError:
    pass

#try:
#    from dlstats.fetchers.bea import BEA
#    FETCHERS['BEA'] = BEA
#    __all__.append('BEA')
#except ImportError:
#    pass

try:
    from dlstats.fetchers.ecb import ECB
    FETCHERS['ECB'] = ECB
    __all__.append('ECB')
except ImportError:
    pass

try:
    from dlstats.fetchers.esri import Esri
    FETCHERS['ESRI'] = Esri
    __all__.append('Esri')
except ImportError:
    pass

try:
    from dlstats.fetchers.insee import INSEE
    FETCHERS['INSEE'] = INSEE
    __all__.append('INSEE')
except ImportError:
    pass

#try:
#    from dlstats.fetchers.destatis import DESTATIS
#    FETCHERS['DESTATIS'] = DESTATIS
#    __all__.append('DESTATIS')
#except ImportError:
#    pass

try:
    from dlstats.fetchers.fed import FED
    FETCHERS['FED'] = FED
    __all__.append('FED')
except ImportError:
    pass

remove unused FETCHERS_DATASETS