Skip to main content

Convenient function set.

Project description

LassaLib

Convenient function set.

Python library by LassaInora.


Summary


Contacts


Methods:

enter(__prompt: str = '', __type: type = int) -> typing.Any

  • This function allows to input any type.
    • __prompt (str) : Text to print before recovery.
    • __type (type) : The type to recover.
  • Can return:
    • Any type.

str_object(obj: typing.Any) -> str

  • Create a string of all info about an object regardless of its class.
    • obj (Any) : An object from Any type or class.
  • Can return:
    • str

show_value(value: typing.Any, tab_number: int = 0) -> None

  • Prints in the terminal all the elements of a list, a dictionary or a tuple and its sub-elements.
    Prints in the terminal the other types and class.
    • value (Any) : A value of any type or class.
    • tab_number (int) : The default number of tabs to put in front of the printout.
  • Can return:
    • None

space_number(number: typing.Union[int, float], spacing: str = ' ') -> str

  • Separate with character defines the number entered every 3 digits.
    • number (int or float) : A value.
    • spacing (str) : A character.
  • Can return:
    • str

last_iteration(iteration_text: str, txt: str) -> int | None

  • Return the index of the last iteration on string.
    • iteration_text (str) : The searched iteration
    • txt (str) : The text to search in.
  • Can return:
    • int
    • None

replace_last(sub_string: str, new_string: str, string: str) -> str

  • Replaces the last iteration of the substring entered with the string chosen in the quoted string.
    • sub_string (str) : The substring entered.
    • new_string (str) : The string chosen.
    • string (str) : The quoted string.
  • Can return:
    • str

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

LassaLib-1.2.1.tar.gz (16.1 kB view hashes)

Uploaded Source

Built Distribution

LassaLib-1.2.1-py3-none-any.whl (16.5 kB view hashes)

Uploaded Python 3

Supported by

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