# Path: nowtrade/logger.py
# CRITICAL = logging.CRITICAL
# ERROR = logging.ERROR
# WARNING = logging.WARNING
# INFO = logging.INFO
# DEBUG = logging.DEBUG
# class Logger(object):
#     def __init__(self, name, log_file=configuration.LOG_FILE, \
#                  console_lvl=configuration.LOGGING_DEFAULT_CONSOLE, \
#                  file_lvl=configuration.LOGGING_DEFAULT_FILE):
#     def get_logger_level(self, name, default, out):
#     def get_console_level(self, name, default):
#     def get_file_level(self, name, default):
#     def set_file_level(self, lvl):
#     def set_console_level(self, lvl):
#     def debug(self, message):
#     def info(self, message):
#     def warning(self, message):
#     def error(self, message):
#     def critical(self, message):
#     def exception(self, message):
#     def __getstate__(self):
#     def __setstate__(self, data):


import urllib2
import zipfile
import datetime
import pandas_datareader.data as web
import pandas as pd
        import oandapy # pylint: disable=import-error
        import MySQLdb
        import time
    import nowtrade.dataset
    import nowtrade.dataset
from StringIO import StringIO
from pandas import read_csv
from nowtrade import logger
        from pymongo import MongoClient
        from pymongo import ASCENDING
"""
A nowtrade module to enables pulling stock/currency data from external sources.
Also makes it easy to store this data locally for future strategy testing.
"""

class NoDataException(Exception):
    """
    Exception used when no data could be gathered from a data connection.
    """
    pass

class DataConnection(object):
    """
    Base class for all data connections.
    """
    def __init__(self):
        self.logger = logger.Logger(self.__class__.__name__)

# Path: nowtrade/logger.py
# CRITICAL = logging.CRITICAL
# ERROR = logging.ERROR
# WARNING = logging.WARNING
# INFO = logging.INFO
# DEBUG = logging.DEBUG
# class Logger(object):
#     def __init__(self, name, log_file=configuration.LOG_FILE, \
#                  console_lvl=configuration.LOGGING_DEFAULT_CONSOLE, \
#                  file_lvl=configuration.LOGGING_DEFAULT_FILE):
#     def get_logger_level(self, name, default, out):
#     def get_console_level(self, name, default):
#     def get_file_level(self, name, default):
#     def set_file_level(self, lvl):
#     def set_console_level(self, lvl):
#     def debug(self, message):
#     def info(self, message):
#     def warning(self, message):
#     def error(self, message):
#     def critical(self, message):
#     def exception(self, message):
#     def __getstate__(self):
#     def __setstate__(self, data):


# Path: nowtrade/data_connection.py
import urllib2
import zipfile
import datetime
import pandas_datareader.data as web
import pandas as pd
        import oandapy # pylint: disable=import-error
        import MySQLdb
        import time
    import nowtrade.dataset
    import nowtrade.dataset
from StringIO import StringIO
from pandas import read_csv
from nowtrade import logger
        from pymongo import MongoClient
        from pymongo import ASCENDING

"""
A nowtrade module to enables pulling stock/currency data from external sources.
Also makes it easy to store this data locally for future strategy testing.
"""

class NoDataException(Exception):
    """
    Exception used when no data could be gathered from a data connection.
    """
    pass

class DataConnection(object):
    """
    Base class for all data connections.
    """
    def __init__(self):
        self.logger = logger.Logger(self.__class__.__name__)

        self.logger.info('Initialized')