A drop-in replacement for the popular tqdm library, accelerated with C bindings
Project description
cqdm
A drop-in replacement for the popular tqdm library, accelerated with C bindings.
Usage
Install with pip install cqdm
.
Replace usages of tqdm.tqdm
with cqdm.cqdm
. This can be done
succinctly by changing your import
statement:
# was: from tqdm import tqdm
from cqdm import cqdm as tqdm
Performance
This library has about 1/3 the overhead of standard tqdm
:
This graph was generated by running performance.py
.
Developing
- Create a fresh
venv
- Install
tqdm
withpip install tqdm
- Install
matplotlib
withpython3 -m pip install matplotlib
- If on linux, then it might be necessary to install a gui backend for
plt.show()
to function. Do so withsudo apt-get install python3-tk
- Build the C-extension with
python setup.py build
- Install it with
python setup.py install
- Run the demo with
python scratch.py
- Generate the performance graph with
python performance.py
TODO
- Look into Python bytecode (compare with/without our "hack")
- Speed up C extension
- look into debugging/profiling C extensions
- Otherwise clean up project (combining with the base tqdm library/repo)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for cqdm-1.0.2-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e3b4cf5f4bf8745b8f19d3497999e18dc7773b163d2909b04321815bbcc9da3 |
|
MD5 | a105bbbf32a39bdb827da736d042501b |
|
BLAKE2b-256 | fa325406b01ffbb2eba4411bd597d902ae23601d7bade5e30e38c58e47bb81ff |
Close
Hashes for cqdm-1.0.2-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74ac383020966184435bd64e98559610828983190bb040a120ddd0aac3b3b695 |
|
MD5 | 7d81ce5f903051999452119425018390 |
|
BLAKE2b-256 | 8d5aa3ac3b3cc394246ab50e0ff02d42798677d4d1e179f992488faf1f784424 |
Close
Hashes for cqdm-1.0.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 176502545ad366067ec2f55980cb48649447d653ff71a153db99731723d1332e |
|
MD5 | 87d8534fe241d60de7c9fd102b552b23 |
|
BLAKE2b-256 | 4c296331124da1da27f822a42d55bb202df4586703ea81f489276518132e7541 |
Close
Hashes for cqdm-1.0.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a96df54b68d10f0c8a90c7434cf7d0db452b757acb3eacd9d241ec4751f788f6 |
|
MD5 | 5cb6175581da5ab9de355b91aca1deca |
|
BLAKE2b-256 | 5aed1de93e06f1ec5de945826e6d5100c1f1d303afb7f46a0f1fd0fbe3630f92 |
Close
Hashes for cqdm-1.0.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f02c0d26af8edd5c8c457f01f8fea763c00de8e2a393f2abcb0d87f1c96ec3cc |
|
MD5 | ad1cca418d52568cd8143a6f29fd38c5 |
|
BLAKE2b-256 | 423e5eb406483b9dc2449e715aa5eed8bd13fb91c67d30a54cc694aeaf79d2dd |
Close
Hashes for cqdm-1.0.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b775410ea865b26e04b8a695d373db06deeb29f8aec33e98588329027472dd2a |
|
MD5 | d38cb2e944e1987ae809e47bbc8d9db6 |
|
BLAKE2b-256 | f1861232b41687213c69602097b02329076b8d077740c5208f210bc01fc62a52 |
Close
Hashes for cqdm-1.0.2-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0498592047cfa8afa2fa99933d4371bd0c62432392fcca3e0e8e709271037798 |
|
MD5 | 935ed62229fd8e6e3a26a17e83272541 |
|
BLAKE2b-256 | abb2e571c11ebb1e6785abaea89cec5d88a5daadc39c373bb5227b5e5759e745 |