Convenient function set.
Project description
LassaLib
Convenient function set.
Python library by LassaInora.
Summary
- Links
- Contacts
- Methods
- enter(__prompt: str = '', __type: type = int) -> typing.Any
- str_object(obj: typing.Any) -> str
- show_value(value: typing.Any, tab_number: int = 0) -> None
- space_number(number: typing.Union[int, float], spacing: str = ' ') -> str
- last_iteration(iteration_text: str, txt: str) -> int | None
- replace_last(sub_string: str, new_string: str, string: str) -> str
Links
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
Release history Release notifications | RSS feed
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.2.tar.gz
(16.4 kB
view details)
Built Distribution
LassaLib-2.0.2-py3-none-any.whl
(16.7 kB
view details)
File details
Details for the file LassaLib-2.0.2.tar.gz
.
File metadata
- Download URL: LassaLib-2.0.2.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8771f76192723b8cf2294e9c552cd59e402dc7a51d648fdbd12064901149bade |
|
MD5 | f281812af614419da5ae1025e8ab95f0 |
|
BLAKE2b-256 | 0fb65ff16214fdc0c44b12d14cd1d4702f716957d6ac2405ac545e8a88d432dc |
File details
Details for the file LassaLib-2.0.2-py3-none-any.whl
.
File metadata
- Download URL: LassaLib-2.0.2-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea5c3c4e040f7805b215be1bbaa9378c4b221be4933d4a0d987f774017d27090 |
|
MD5 | 197ec92fb85e6ed05355af9fbfdf0745 |
|
BLAKE2b-256 | a3328e6d0937759666cfc040864f54c4848d1d75dcef93989d8684f7ac567040 |