# Path: cryptofolio/api/Logger.py
# class Logger:
#     def __init__(self, root):
#         self.logger = logging.getLogger(root)
#         self.logger.setLevel(logging.DEBUG)
#         ch = logging.StreamHandler()
#         ch.setLevel(logging.DEBUG)
#         formatter = logging.Formatter(
#             '%(asctime)s - %(name)s - %(levelname)s - %(message)s')
#         ch.setFormatter(formatter)
#         self.logger.addHandler(ch)
# 
#     def log(self, message):
#         self.logger.debug(message)


import requests
from time import sleep
from .Logger import Logger



class Blockchain:
    def __init__(self):
        self.logger = Logger(__name__)

    def getBalance(self, address):

# Path: cryptofolio/api/Logger.py
# class Logger:
#     def __init__(self, root):
#         self.logger = logging.getLogger(root)
#         self.logger.setLevel(logging.DEBUG)
#         ch = logging.StreamHandler()
#         ch.setLevel(logging.DEBUG)
#         formatter = logging.Formatter(
#             '%(asctime)s - %(name)s - %(levelname)s - %(message)s')
#         ch.setFormatter(formatter)
#         self.logger.addHandler(ch)
# 
#     def log(self, message):
#         self.logger.debug(message)


# Path: cryptofolio/api/Blockchain.py
import requests
from time import sleep
from .Logger import Logger




class Blockchain:
    def __init__(self):
        self.logger = Logger(__name__)

    def getBalance(self, address):

        req_url = 'https://blockchain.info/q/addressbalance/' + address