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 | list) -> int | None

  • Return the index of the last iteration on string.
    • iteration_text (str) : The searched iteration
    • txt (str or list) : The variable 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-2.0.1.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

LassaLib-2.0.1-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file LassaLib-2.0.1.tar.gz.

File metadata

  • Download URL: LassaLib-2.0.1.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for LassaLib-2.0.1.tar.gz
Algorithm Hash digest
SHA256 37fbf668c0b7670eba126cc67f04f26362b0c95e6f89c0717c9fd1cd197f2bef
MD5 2df94fc1bed0e474e8178fa18c9696d1
BLAKE2b-256 3ae1e59dc0bc29ad593b524f0650087fc33d817ee20c3be69cf06f98f8a5a747

See more details on using hashes here.

File details

Details for the file LassaLib-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: LassaLib-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for LassaLib-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b33a1f4f629b1e69d76cdcd88001d5dd5130cb288310bc823be7086c09b1116f
MD5 72a7e3b20300653f027184ae17c1bb12
BLAKE2b-256 62fcafbb49d52106347ad2f7fb7654548529b5391d926f36b016d232700a442e

See more details on using hashes here.

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