Name | easy-tasks JSON |
Version |
0.0.54
JSON |
| download |
home_page | None |
Summary | Normal python class tasks like sorting, closet/furthest value, dublicates, ... |
upload_time | 2025-08-18 12:41:53 |
maintainer | None |
docs_url | None |
author | André Herber |
requires_python | None |
license | None |
keywords |
python
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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_list`
Function returning the closest number of a list to a given value
- `closest_value_in_list`
Function returning the closest number of a list to a given value
- `furthest_value_in_dict`
Function returning the closest number of a dicts values to a given value
- `closest_value_in_dict`
Function returning the closest number of a dicts values to a given value
- `find_dublicates`
Function returning a list of Dubs objects which have the properties: *value*, *number_of_dublicates* and *indices*
- `remove_dublicates`
Function returning a copy of the given list in which only the first occurrence of every value remains
- `get_percentage_as_fitted_string`
Function 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_printer`
Better 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_printer`
Basically the progress_printer with one susbprocess.
- `upper_case_first_letter_of_word`
Function returning a string in which the word begins with an upper case letter.
- `upper_case_first_letter_of_words`
Function returning a string in which every word begins with an upper case letter.
- `unpack_list`
Dissolve inner lists and tuples of nested list and tuples.
- `ProgressBar`
Create 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
[GitHub](https://github.com/ICreedenI/easy_tasks) | [PyPI](https://pypi.org/project/easy-tasks/)
Raw data
{
"_id": null,
"home_page": null,
"name": "easy-tasks",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "python",
"author": "Andr\u00e9 Herber",
"author_email": "andre.herber.programming@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/f0/a3/a3b31dbe4473c258ddcb14cddff4327c2a608dcd3317514f1512fdade963/easy_tasks-0.0.54.tar.gz",
"platform": null,
"description": "\r\n# easy_taks\r\r\n\r\r\nTo not get annoyed by simple recurring tasks I created this small library. \r\r\n\r\r\n## Content\r\r\n- Installation\r\r\n- Usage \r\r\n\r\r\n## Installation\r\r\n- `pip install easy-tasks`\r\r\n- 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.\r\r\n\r\r\n## Usage\r\r\n- `furthest_value_in_list` \r\r\n Function returning the closest number of a list to a given value\r\r\n\r\r\n- `closest_value_in_list` \r\r\n Function returning the closest number of a list to a given value\r\r\n\r\r\n- `furthest_value_in_dict` \r\r\n Function returning the closest number of a dicts values to a given value\r\r\n\r\r\n- `closest_value_in_dict` \r\r\n Function returning the closest number of a dicts values to a given value\r\r\n\r\r\n- `find_dublicates` \r\r\n Function returning a list of Dubs objects which have the properties: *value*, *number_of_dublicates* and *indices*\r\r\n\r\r\n- `remove_dublicates` \r\r\n Function returning a copy of the given list in which only the first occurrence of every value remains\r\r\n\r\r\n- `get_percentage_as_fitted_string` \r\r\n Function returning the calculated percentage from the inout count and total fittet to the string lenght of 100.00 % \r\r\n args:\r\r\n - count: current counting value\r\r\n - total: total value \r\r\n - round_to: rounding digits, default: 2\r\r\n - with_percentage_symbol: boolean, adds ' %' if True\r\r\n\r\r\n- `progress_printer` \r\r\n Better use ProgressBar instead\r\r\n Call this funciton in a loop with index+1 as count to monitor your progress. \r\r\n Will automatically switch to a new line when 100 % is reached.\r\r\n Remember to call print once if you break since the cursor will not move to the next line till 100 % are reached.\r\r\n\r\r\n- `main_and_sub_progress_printer` \r\r\n Basically the progress_printer with one susbprocess. \r\r\n\r\r\n- `upper_case_first_letter_of_word` \r\r\n Function returning a string in which the word begins with an upper case letter.\r\r\n\r\r\n- `upper_case_first_letter_of_words` \r\r\n Function returning a string in which every word begins with an upper case letter.\r\r\n\r\r\n- `unpack_list` \r\r\n Dissolve inner lists and tuples of nested list and tuples.\r\r\n\r\r\n- `ProgressBar`\r\r\n Create progress bar with poossible subprogresses, exception handling, early termination handling, early completion handling and many options for customization.\r\r\n Simply use as `with ProgressBar(total) as prg:` and look at the class parameters and methods.\r\r\n\r\r\n## Links\r\r\n[GitHub](https://github.com/ICreedenI/easy_tasks) | [PyPI](https://pypi.org/project/easy-tasks/)\r\n",
"bugtrack_url": null,
"license": null,
"summary": "Normal python class tasks like sorting, closet/furthest value, dublicates, ...",
"version": "0.0.54",
"project_urls": null,
"split_keywords": [
"python"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "f5c168a32f3e2a9833e54d36fa14fc438d09eb05b945f52e54486ad76c1dcace",
"md5": "9ae3b3849d23f1854b09d107213b79e9",
"sha256": "17975811c16ec728637efb556a99c5096cb9b34453c3a270e4afd47d23b2cd24"
},
"downloads": -1,
"filename": "easy_tasks-0.0.54-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9ae3b3849d23f1854b09d107213b79e9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 28430,
"upload_time": "2025-08-18T12:41:52",
"upload_time_iso_8601": "2025-08-18T12:41:52.693676Z",
"url": "https://files.pythonhosted.org/packages/f5/c1/68a32f3e2a9833e54d36fa14fc438d09eb05b945f52e54486ad76c1dcace/easy_tasks-0.0.54-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "f0a3a3b31dbe4473c258ddcb14cddff4327c2a608dcd3317514f1512fdade963",
"md5": "5b6db54475832a5a9d55e41358ba40ae",
"sha256": "6515f60f73c471ea28e27fa1e540014e7ca845ddff4c7038f01ce1ab36d316aa"
},
"downloads": -1,
"filename": "easy_tasks-0.0.54.tar.gz",
"has_sig": false,
"md5_digest": "5b6db54475832a5a9d55e41358ba40ae",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 26999,
"upload_time": "2025-08-18T12:41:53",
"upload_time_iso_8601": "2025-08-18T12:41:53.913847Z",
"url": "https://files.pythonhosted.org/packages/f0/a3/a3b31dbe4473c258ddcb14cddff4327c2a608dcd3317514f1512fdade963/easy_tasks-0.0.54.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-18 12:41:53",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "easy-tasks"
}