Name | easy-tasks JSON |
Version |
0.0.44
JSON |
| download |
home_page | None |
Summary | Normal python class tasks like sorting, closet/furthest value, dublicates, ... |
upload_time | 2024-08-09 20:36:00 |
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/98/75/1994c500bab40465d96c59edc6eaec68f18634aca9290a7b1e50db96d674/easy_tasks-0.0.44.tar.gz",
"platform": null,
"description": "\r\n# easy_taks\r\n\r\n\r\n\r\nTo not get annoyed by simple recurring tasks I created this small library. \r\n\r\n\r\n\r\n## Content\r\n\r\n- Installation\r\n\r\n- Usage \r\n\r\n\r\n\r\n## Installation\r\n\r\n- `pip install easy-tasks`\r\n\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\n\r\n\r\n\r\n## Usage\r\n\r\n- `furthest_value_in_list` \r\n\r\n Function returning the closest number of a list to a given value\r\n\r\n\r\n\r\n- `closest_value_in_list` \r\n\r\n Function returning the closest number of a list to a given value\r\n\r\n\r\n\r\n- `furthest_value_in_dict` \r\n\r\n Function returning the closest number of a dicts values to a given value\r\n\r\n\r\n\r\n- `closest_value_in_dict` \r\n\r\n Function returning the closest number of a dicts values to a given value\r\n\r\n\r\n\r\n- `find_dublicates` \r\n\r\n Function returning a list of Dubs objects which have the properties: *value*, *number_of_dublicates* and *indices*\r\n\r\n\r\n\r\n- `remove_dublicates` \r\n\r\n Function returning a copy of the given list in which only the first occurrence of every value remains\r\n\r\n\r\n\r\n- `get_percentage_as_fitted_string` \r\n\r\n Function returning the calculated percentage from the inout count and total fittet to the string lenght of 100.00 % \r\n\r\n args:\r\n\r\n - count: current counting value\r\n\r\n - total: total value \r\n\r\n - round_to: rounding digits, default: 2\r\n\r\n - with_percentage_symbol: boolean, adds ' %' if True\r\n\r\n\r\n\r\n- `progress_printer` \r\n\r\n Better use ProgressBar instead\r\n\r\n Call this funciton in a loop with index+1 as count to monitor your progress. \r\n\r\n Will automatically switch to a new line when 100 % is reached.\r\n\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\n\r\n\r\n\r\n- `main_and_sub_progress_printer` \r\n\r\n Basically the progress_printer with one susbprocess. \r\n\r\n\r\n\r\n- `upper_case_first_letter_of_word` \r\n\r\n Function returning a string in which the word begins with an upper case letter.\r\n\r\n\r\n\r\n- `upper_case_first_letter_of_words` \r\n\r\n Function returning a string in which every word begins with an upper case letter.\r\n\r\n\r\n\r\n- `unpack_list` \r\n\r\n Dissolve inner lists and tuples of nested list and tuples.\r\n\r\n\r\n\r\n- `ProgressBar`\r\n\r\n Create progress bar with poossible subprogresses, exception handling, early termination handling, early completion handling and many options for customization.\r\n\r\n Simply use as `with ProgressBar(total) as prg:` and look at the class parameters and methods.\r\n\r\n\r\n\r\n## Links\r\n\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.44",
"project_urls": null,
"split_keywords": [
"python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "59e4f6acad5db0eadd085cc5669a1ecf84506903acd557bbda31dc71d3478f42",
"md5": "4ee123a7c44f7ed6fb1f5a957b2651c2",
"sha256": "dec0b81be834d51a9260fc778cdbc56e1317b793e13d8511f606e31a31cd7c1c"
},
"downloads": -1,
"filename": "easy_tasks-0.0.44-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4ee123a7c44f7ed6fb1f5a957b2651c2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 22859,
"upload_time": "2024-08-09T20:35:58",
"upload_time_iso_8601": "2024-08-09T20:35:58.942028Z",
"url": "https://files.pythonhosted.org/packages/59/e4/f6acad5db0eadd085cc5669a1ecf84506903acd557bbda31dc71d3478f42/easy_tasks-0.0.44-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "98751994c500bab40465d96c59edc6eaec68f18634aca9290a7b1e50db96d674",
"md5": "b60ad3d5d57abd7bf237a5e7bd6bad2f",
"sha256": "e68a6293552807f8fc0ec97ff51d2956030d89c7258aaeab8ee2c4b262e7a613"
},
"downloads": -1,
"filename": "easy_tasks-0.0.44.tar.gz",
"has_sig": false,
"md5_digest": "b60ad3d5d57abd7bf237a5e7bd6bad2f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 21461,
"upload_time": "2024-08-09T20:36:00",
"upload_time_iso_8601": "2024-08-09T20:36:00.507839Z",
"url": "https://files.pythonhosted.org/packages/98/75/1994c500bab40465d96c59edc6eaec68f18634aca9290a7b1e50db96d674/easy_tasks-0.0.44.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-09 20:36:00",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "easy-tasks"
}