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.0.tar.gz
(16.6 kB
view details)
Built Distribution
LassaLib-2.0.0-py3-none-any.whl
(16.7 kB
view details)
File details
Details for the file LassaLib-2.0.0.tar.gz
.
File metadata
- Download URL: LassaLib-2.0.0.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc77e40111ffbe5ee1ecd99cc1daa353700a4265a368f9dae57cf0d6044d57a0 |
|
MD5 | ae27002f3e41154c95f5a3865bfec4ae |
|
BLAKE2b-256 | 4270459cec82398e5b15e1f9e69a16bbf003841c696749b9b136663abe5bebab |
File details
Details for the file LassaLib-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: LassaLib-2.0.0-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e03f386945a9df35d113808f2fa64ba28a4ed83f59c68e392442c39540e4f780 |
|
MD5 | b34787a5d1b47e30ebb41ea695c4dc70 |
|
BLAKE2b-256 | c5c1fb9b67cb089d25105cea458f1703071602daaf6dd2b8196aa7fd522c51f4 |