| Name | easy-tasks JSON |
| Version |
0.0.55
JSON |
| download |
| home_page | None |
| Summary | Normal python class tasks like sorting, closet/furthest value, dublicates, ... |
| upload_time | 2025-10-12 19:26:09 |
| 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/1a/51/cf17253e38f19e8533aa180a75b42f0be95d8048ee1b9dad9793c2687904/easy_tasks-0.0.55.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.55",
"project_urls": null,
"split_keywords": [
"python"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "5aae3d1a917d6cded088676522d9af404324dd8771223c6a28999f93722a57b0",
"md5": "25ce8815e15b58d77e0ea899154e3092",
"sha256": "3c8b0da0de7bd09c81d479728baa5fbf7d910b5fa474992a65ca5b24b19b3f79"
},
"downloads": -1,
"filename": "easy_tasks-0.0.55-py3-none-any.whl",
"has_sig": false,
"md5_digest": "25ce8815e15b58d77e0ea899154e3092",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 28373,
"upload_time": "2025-10-12T19:26:08",
"upload_time_iso_8601": "2025-10-12T19:26:08.075411Z",
"url": "https://files.pythonhosted.org/packages/5a/ae/3d1a917d6cded088676522d9af404324dd8771223c6a28999f93722a57b0/easy_tasks-0.0.55-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "1a51cf17253e38f19e8533aa180a75b42f0be95d8048ee1b9dad9793c2687904",
"md5": "11627f14b0e46bfb9b0732955af38726",
"sha256": "fd930c0849f6cc69fe8bfb1f29099f7ec789ca5712a0749c4fbf4702b9974ec2"
},
"downloads": -1,
"filename": "easy_tasks-0.0.55.tar.gz",
"has_sig": false,
"md5_digest": "11627f14b0e46bfb9b0732955af38726",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 26957,
"upload_time": "2025-10-12T19:26:09",
"upload_time_iso_8601": "2025-10-12T19:26:09.474053Z",
"url": "https://files.pythonhosted.org/packages/1a/51/cf17253e38f19e8533aa180a75b42f0be95d8048ee1b9dad9793c2687904/easy_tasks-0.0.55.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-12 19:26:09",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "easy-tasks"
}