progress-keeper
This module is for keeping track of progress. It's useful for idempotent multi-part processes. If a process is interrupted or quits unexpectantly this can be used to keep track of the progress so that the next time the process is run, it can pick up where it left off.
Install
pip install progress_keeper
Usage
To create a progress object you need to define the following args:
- fp (str): file path of file to save progress into
- vars (list(str), optional): list of variables to include in progress file and keep track of. If undefined then it will assume only one var and use the default name - 'last_index_processed'.
When you create a progress object the module will check if the 'fp' exists and either use the values in that file if it does exist or create a new file (and set progress values to 0) if it does not exist.
fp = 'tmp/my-progress.cfg'
vars = ['process_abc','sub_process_a']
# create progress object
progress = Progress(fp, vars)
# increment progress 'var' by 1
progress.increment('process_abc')
# get value of progress 'var'
progress.values['progress_abc']
# reset value of progress
progress.reset('process_abc')
# delete progress file
progress.delete()
Metadata
Release files for progress-keeper 0.1.5
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 |
|---|---|---|---|---|
| progress_keeper-0.1.5.tar.gz | 2.8 kB | Without provenance | Details for progress_keeper-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| progress_keeper-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for progress_keeper-0.1.5-py3-none-any.whl |
Total release size: 7.4 kB
Release files / progress_keeper-0.1.5.tar.gz
| Download URL | progress_keeper-0.1.5.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d77407f1baca35b05264f3c696105df8952c85981e9eb2180b684c7e86c748c2
|
|
BLAKE2b-256 checksum How to use checksums |
0bff9216645c41dc5ab623a39582a2f65c2f018e00441db5fcfdb4263657c0ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.3
|
Release files / progress_keeper-0.1.5-py3-none-any.whl
| Download URL | progress_keeper-0.1.5-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e36f76f66811bd5ccf5123d066e6d4d21f1b7f8b5606bd80a9462d2f06739bf
|
|
BLAKE2b-256 checksum How to use checksums |
85a41ca456a922c76a0d3c5f1e0e2d1724150a28a43cb0a6c6947cf9138bb55b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.3
|
Security for progress-keeper 0.1.5
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.