CSVProgressBar
This package provides a progress bar wrapper for the standard csv library
Usage
To use csv reader you must specify ProgressBar object, witch must have update method:
from csv_progress_bar import read_with_pbar
pbar = MyPbar(...)
with open('my_file.csv') as csvfile:
reader = read_with_pbar(csvfile, pbar)
for row in reader:
...
When reading a csv file, the reader calls the update method of the progerss bar, where the argument is the number of readed bytes. So set the progressbar total as the file size in bytes.
Personally, I like to use tqdm:
import os
from csv_progress_bar import read_with_pbar
from tqdm import tqdm
path = 'my_file.csv'
total_size = os.path.getsize(path)
pbar = tqdm(total= total_size)
with open(path) as csvfile:
reader = read_with_pbar(csvfile, pbar)
for row in reader:
...
Performance
Unfortunately, due to frequent iterations and additional function calls, reading is **~ 30% slower**
Cooming soon
- readers objecs for pupular progressbars
- progressbar for pandas reader!
Metadata
Release files for csv-progressbar 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| csv_progressbar-0.1.tar.gz | 3.3 kB | Without provenance | Details for csv_progressbar-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| csv_progressbar-0.1-py3-none-any.whl | Python 3 | none | any | Details for csv_progressbar-0.1-py3-none-any.whl |
Total release size: 7.4 kB
Release files / csv_progressbar-0.1.tar.gz
| Download URL | csv_progressbar-0.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad58202915337b8f7343da81fc5518b7d2c8761f5b5cd6a47298427babebbf66
|
|
BLAKE2b-256 checksum How to use checksums |
c9b01566f4b4981775421c26ad2b035dcb3da31df6ae6fe559ddcc1ac2f8b3cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / csv_progressbar-0.1-py3-none-any.whl
| Download URL | csv_progressbar-0.1-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
568c6470c297e42c84e3e78bd1439c4b4e2c8f0600e0e631bfe0482afb7fca61
|
|
BLAKE2b-256 checksum How to use checksums |
0871714b2cbb56c30b17aa84c762e1f2823652e641f1cd028c2823221aa66a11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Security for csv-progressbar 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.