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
Release history Release notifications | RSS feed
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 details)
Built Distribution
brig-0.0.1-py3-none-any.whl
(14.9 kB
view details)
File details
Details for the file brig-0.0.1.tar.gz
.
File metadata
- Download URL: brig-0.0.1.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.8 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13fc7af841566177ab433d59705d3210306cf0d3b2a53757994df92ff2f54132 |
|
MD5 | 9f4fca8979acb47336444cd690b1216f |
|
BLAKE2b-256 | 4828750259a118f304ac83d1d13322f23e76b32da4eee11d287507409acce431 |
File details
Details for the file brig-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: brig-0.0.1-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.8 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f5923babe3b0a8704020a3ac53e48f92887565b4c1016f401e27aaf3e03718c |
|
MD5 | d2c4f9205cd7db303f43ca841d5845d2 |
|
BLAKE2b-256 | 5f86ff2de49c74c6d06508cb2faa7f97d5159d26d8a28f4269b2151b38eb7a81 |