Name | easy-tasks JSON |
Version |
0.0.36
JSON |
| download |
home_page | None |
Summary | Normal python class tasks like sorting, closet/furthest value, dublicates, ... |
upload_time | 2024-03-24 21:23:23 |
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`
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.
## 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/c9/f4/35eff47698a6b4f4fc90af358e0c76329208ed91b0ae46cf2103526a13a6/easy_tasks-0.0.36.tar.gz",
"platform": null,
"description": "\n# easy_taks\n\n\n\nTo not get annoyed by simple recurring tasks I created this small library. \n\n\n\n## Content\n\n- Installation\n\n- Usage \n\n\n\n## Installation\n\n- `pip install easy-tasks`\n\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.\n\n\n\n## Usage\n\n- `furthest_value_in_list` \n\n Function returning the closest number of a list to a given value\n\n\n\n- `closest_value_in_list` \n\n Function returning the closest number of a list to a given value\n\n\n\n- `furthest_value_in_dict` \n\n Function returning the closest number of a dicts values to a given value\n\n\n\n- `closest_value_in_dict` \n\n Function returning the closest number of a dicts values to a given value\n\n\n\n- `find_dublicates` \n\n Function returning a list of Dubs objects which have the properties: *value*, *number_of_dublicates* and *indices*\n\n\n\n- `remove_dublicates` \n\n Function returning a copy of the given list in which only the first occurrence of every value remains\n\n\n\n- `get_percentage_as_fitted_string` \n\n Function returning the calculated percentage from the inout count and total fittet to the string lenght of 100.00 % \n\n args:\n\n - count: current counting value\n\n - total: total value \n\n - round_to: rounding digits, default: 2\n\n - with_percentage_symbol: boolean, adds ' %' if True\n\n\n\n- `progress_printer` \n\n Call this funciton in a loop with index+1 as count to monitor your progress. \n\n Will automatically switch to a new line when 100 % is reached.\n\n Remember to call print once if you break since the cursor will not move to the next line till 100 % are reached.\n\n\n\n- `main_and_sub_progress_printer` \n\n Basically the progress_printer with one susbprocess. \n\n\n\n- `upper_case_first_letter_of_word` \n\n Function returning a string in which the word begins with an upper case letter.\n\n\n\n- `upper_case_first_letter_of_words` \n\n Function returning a string in which every word begins with an upper case letter.\n\n\n\n- `unpack_list` \n\n Dissolve inner lists and tuples of nested list and tuples.\n\n\n\n\n\n## Links\n\n[GitHub](https://github.com/ICreedenI/easy_tasks) | [PyPI](https://pypi.org/project/easy-tasks/)\n",
"bugtrack_url": null,
"license": null,
"summary": "Normal python class tasks like sorting, closet/furthest value, dublicates, ...",
"version": "0.0.36",
"project_urls": null,
"split_keywords": [
"python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "bdc9799d8d7f55af76211f8ae8c29d352f7272e25d7d61a6ca97de0dcc475ae0",
"md5": "563c0c262365416401410cc19c29eb54",
"sha256": "675094a5b77d794379736e91ee4e4e946e7cc34981038e6887e8b2ce1dd3ac20"
},
"downloads": -1,
"filename": "easy_tasks-0.0.36-py3-none-any.whl",
"has_sig": false,
"md5_digest": "563c0c262365416401410cc19c29eb54",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 21122,
"upload_time": "2024-03-24T21:23:21",
"upload_time_iso_8601": "2024-03-24T21:23:21.469484Z",
"url": "https://files.pythonhosted.org/packages/bd/c9/799d8d7f55af76211f8ae8c29d352f7272e25d7d61a6ca97de0dcc475ae0/easy_tasks-0.0.36-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c9f435eff47698a6b4f4fc90af358e0c76329208ed91b0ae46cf2103526a13a6",
"md5": "4f86bb7843293fe0b8bb47be8fa08b7b",
"sha256": "cbacd54bdbc09dfd8b2109b3e8a9d935f185ab09f99da2a50a1ea21e4d63dda9"
},
"downloads": -1,
"filename": "easy_tasks-0.0.36.tar.gz",
"has_sig": false,
"md5_digest": "4f86bb7843293fe0b8bb47be8fa08b7b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 29930,
"upload_time": "2024-03-24T21:23:23",
"upload_time_iso_8601": "2024-03-24T21:23:23.476868Z",
"url": "https://files.pythonhosted.org/packages/c9/f4/35eff47698a6b4f4fc90af358e0c76329208ed91b0ae46cf2103526a13a6/easy_tasks-0.0.36.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-24 21:23:23",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "easy-tasks"
}