Skip to main content

Normal python class tasks like sorting, closet/furthest value, dublicates, ...

Project description

easy_taks

To not get annoyed by simple recurring tasks I created this small library.

Content

  • Installation

  • Usage

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 | PyPI

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easy_tasks-0.0.49.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

easy_tasks-0.0.49-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

Details for the file easy_tasks-0.0.49.tar.gz.

File metadata

  • Download URL: easy_tasks-0.0.49.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for easy_tasks-0.0.49.tar.gz
Algorithm Hash digest
SHA256 54ead6a537da0f24b90d166a3dc1fe3fff9d8cd636c7725ce12d499c5f3711d1
MD5 6e6ccba7453a3d47c5e4f9f8127fc493
BLAKE2b-256 c74242910cab703cd799bccac828df684e006e6c5e11ce2469d517b568c941fd

See more details on using hashes here.

File details

Details for the file easy_tasks-0.0.49-py3-none-any.whl.

File metadata

  • Download URL: easy_tasks-0.0.49-py3-none-any.whl
  • Upload date:
  • Size: 27.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for easy_tasks-0.0.49-py3-none-any.whl
Algorithm Hash digest
SHA256 a9bbd4d2236a2eaf5c7af7d7d1472bc4da4b8241f14c4e1f2f2a8d8af98858fc
MD5 900f80f3ede51ac9739dc1861d003658
BLAKE2b-256 bbc8b009c8738566e56c32deeb37b0774e7d7bea68ad9eaeab9dfebfcc057043

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page