Skip to main content

It is a repository for all modified functions and classes.

Project description

BRIG

It is a repository for all modified functions and classes.

Installation

pip install brig

Usage

PoolExecutor

It is a modified function of a Poolexecutor function in python to support 'tqdm' progress bar and showing error in thread. Below is the example code to import it,

import time
from brig.PoolExecutor import ThreadPool

def sleep(a, b, c, d):
    time.sleep(1) 

prog = tqdm.tqdm(total=300)
with ThreadPool(max_workers=20, progressor=prog) as pool:
    for i in range(300):
        pool.submit(sleep, 1, 2, 3, 4)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brig-0.0.1.tar.gz (14.0 kB view hashes)

Uploaded Source

Built Distribution

brig-0.0.1-py3-none-any.whl (14.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page