easy_taks
To not get annoyed by simple recurring tasks I created this small library.
Content
-
Installation
-
Usage
Installation
-
pip install easy-tasks -
You will need to install to_precision from github to use all the percentage stuff. For this visit https://github.com/BebeSparkelSparkel/to-precision, go to the latest release, which might be https://github.com/BebeSparkelSparkel/to-precision/releases/tag/0.0.1, and download the .tar.gz. With
pip install <path to .tar.gz>you can finish your installation.
Usage
-
furthest_value_in_listFunction returning the closest number of a list to a given value
-
closest_value_in_listFunction returning the closest number of a list to a given value
-
furthest_value_in_dictFunction returning the closest number of a dicts values to a given value
-
closest_value_in_dictFunction returning the closest number of a dicts values to a given value
-
find_dublicatesFunction returning a list of Dubs objects which have the properties: value, number_of_dublicates and indices
-
remove_dublicatesFunction returning a copy of the given list in which only the first occurrence of every value remains
-
get_percentage_as_fitted_stringFunction returning the calculated percentage from the inout count and total fittet to the string lenght of 100.00 %
args:
-
count: current counting value
-
total: total value
-
round_to: rounding digits, default: 2
-
with_percentage_symbol: boolean, adds ' %' if True
-
-
progress_printerBetter use ProgressBar instead
Call this funciton in a loop with index+1 as count to monitor your progress.
Will automatically switch to a new line when 100 % is reached.
Remember to call print once if you break since the cursor will not move to the next line till 100 % are reached.
-
main_and_sub_progress_printerBasically the progress_printer with one susbprocess.
-
upper_case_first_letter_of_wordFunction returning a string in which the word begins with an upper case letter.
-
upper_case_first_letter_of_wordsFunction returning a string in which every word begins with an upper case letter.
-
unpack_listDissolve inner lists and tuples of nested list and tuples.
-
ProgressBarCreate progress bar with poossible subprogresses, exception handling, early termination handling, early completion handling and many options for customization.
Simply use as
with ProgressBar(total) as prg:and look at the class parameters and methods.
Links
Metadata
Release files for easy-tasks 0.0.59
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 |
|---|---|---|---|---|
| easy_tasks-0.0.59.tar.gz | 27.6 kB | Without provenance | Details for easy_tasks-0.0.59.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| easy_tasks-0.0.59-py3-none-any.whl | Python 3 | none | any | Details for easy_tasks-0.0.59-py3-none-any.whl |
Total release size: 56.5 kB
Release files / easy_tasks-0.0.59.tar.gz
| Download URL | easy_tasks-0.0.59.tar.gz |
|---|---|
| Size | 27.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44bcee532b6cca75558aba39cabb53b8c73f79c8cf8d316450d767c305e1d136
|
|
BLAKE2b-256 checksum How to use checksums |
0761b4d33edbcb28826a433bc3cb50bb2e2f86abbd527ebda72994e0ef4ec628
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.0
|
Release files / easy_tasks-0.0.59-py3-none-any.whl
| Download URL | easy_tasks-0.0.59-py3-none-any.whl |
|---|---|
| Size | 29.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45fcf244d9767572ef0de8187664b40beb6807990c7246f1e8e3a09ec87a0223
|
|
BLAKE2b-256 checksum How to use checksums |
ad0a01216a0f92226d6f11518e657cc800c9eb9fb1e6179a422f99e15ffd2fdd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.0
|
Security for easy-tasks 0.0.59
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.