# Path: lib/sentry/sentry.py

# 
# Path: lib/clint/progress.py
# STREAM = sys.stdout
# BAR_TEMPLATE = '[\x1b[93m+\x1b[0m] %s [%s%s] [%3.2f%%] - %s\r'
# BAR_FILLED_CHAR = '\033[01m#\033[0m'
# BAR_EMPTY_CHAR = ' '
# ETA_INTERVAL = 1
# ETA_SMA_WINDOW = 9
# class Bar(object):
#     def __enter__(self):
#     def __exit__(self, exc_type, exc_val, exc_tb):
#     def __init__(self, label='', width=32, hide=None, empty_char=BAR_EMPTY_CHAR,
#                  filled_char=BAR_FILLED_CHAR, expected_size=None, every=1):
#     def show(self, progress, count=None):
#     def done(self):
#     def format_time(self, seconds):
# def bar(it, label='', width=32, hide=None, empty_char=BAR_EMPTY_CHAR,
#         filled_char=BAR_FILLED_CHAR, expected_size=None, every=1):


import os
import shutil
import os.path
import tarfile
import requests
from sys import exit
from bs4 import BeautifulSoup
from ...base import *
from ...sentry import sentry
from ...clint import progress
            if inst_module_norm in os.listdir():
                shutil.rmtree(inst_module_norm)
            shutil.move(inst_module, inst_module_norm)
            print(color.info.info(color.info.success("Installation completed")))
            return 1
        except Exception as e:
            print(color.info.info(color.info.fail("Installation failed")))
            print(color.info.error(e))
            return 0

    def download(self, url, path):
        '''
        Download module from [url] to [path]
        '''
        # get name of file to downaload
        local_filename = url.split('/')[-1]
        try:
            stream = requests.get(url, stream=True)
            total_length = int(stream.headers['Content-Length'])
        except requests.exceptions.RequestException as e:
            print(color.info.error(e))
            return
        # change to downlaod dir
        try:
            os.chdir(path)
        except Exception as e:
            print(color.info.error(e))
            return
        # write on file
        with open(local_filename, 'wb') as f:

# Path: lib/sentry/sentry.py

# 
# Path: lib/clint/progress.py
# STREAM = sys.stdout
# BAR_TEMPLATE = '[\x1b[93m+\x1b[0m] %s [%s%s] [%3.2f%%] - %s\r'
# BAR_FILLED_CHAR = '\033[01m#\033[0m'
# BAR_EMPTY_CHAR = ' '
# ETA_INTERVAL = 1
# ETA_SMA_WINDOW = 9
# class Bar(object):
#     def __enter__(self):
#     def __exit__(self, exc_type, exc_val, exc_tb):
#     def __init__(self, label='', width=32, hide=None, empty_char=BAR_EMPTY_CHAR,
#                  filled_char=BAR_FILLED_CHAR, expected_size=None, every=1):
#     def show(self, progress, count=None):
#     def done(self):
#     def format_time(self, seconds):
# def bar(it, label='', width=32, hide=None, empty_char=BAR_EMPTY_CHAR,
#         filled_char=BAR_FILLED_CHAR, expected_size=None, every=1):


# Path: lib/bbro/core/update.py
import os
import shutil
import os.path
import tarfile
import requests
from sys import exit
from bs4 import BeautifulSoup
from ...base import *
from ...sentry import sentry
from ...clint import progress

            if inst_module_norm in os.listdir():
                shutil.rmtree(inst_module_norm)
            shutil.move(inst_module, inst_module_norm)
            print(color.info.info(color.info.success("Installation completed")))
            return 1
        except Exception as e:
            print(color.info.info(color.info.fail("Installation failed")))
            print(color.info.error(e))
            return 0

    def download(self, url, path):
        '''
        Download module from [url] to [path]
        '''
        # get name of file to downaload
        local_filename = url.split('/')[-1]
        try:
            stream = requests.get(url, stream=True)
            total_length = int(stream.headers['Content-Length'])
        except requests.exceptions.RequestException as e:
            print(color.info.error(e))
            return
        # change to downlaod dir
        try:
            os.chdir(path)
        except Exception as e:
            print(color.info.error(e))
            return
        # write on file
        with open(local_filename, 'wb') as f:

            for chunk in progress.bar(stream.iter_content(chunk_size=1024), 