Skip to main content

Convenient function set

Project description

LassaLib

Convenient function set

Author:

License:

  • GNU General Public License v3.0

Version:

  • 3.0.0

Summary


Links


Methods

  • detailed_object

    Shows information about an object.

    Parameters:

    • value (Any) : A value of any type or class.
    • detailed (bool) : Should the function send detailed content?
    • __tab_number (int) : The default number of tabs to put in front of the printout.
  • display_iterable

    Displays iterables in a human-readable way.

    Parameters:

    • iterable (list or tuple or set or dict) : An iterable.
    • __tab_number (int) : The default number of tabs to put in front of the printout.

    Return:

    • None : Print the iterable to the console
  • enter

    This function allows to input any type.

    Parameters:

    • __prompt (str) : Text to print before recovery.
    • __tab_number (int) : The default number of tabs to put in front of the printout.

    Raise:

    • TypeError : If __type is not in return type.

    Return:

    • bool or complex or float or int or list or set or slice or str : Print the iterable to the console
  • last_iteration

    Return the index of the last iteration on list.

    Parameters:

    • list_of_think (str/list/tuple) : The searched iteration.
    • obj (Any) : The object to search in.

    Return:

    • int : The index of last iteration.
  • menu

    Create a menu.

    Parameters:

    • choices (list) : The liste of choice.
    • title (str) : Title of menu.
    • desc (str) : Description of menu.
    • prompt (str) : The prompt before choice.
    • can_back (bool) : Menu affiche back choice at 0)?

    Return:

    • int: The index of choice with 'Back' in index 0 and other index + 1.
  • position

    Push in the position the text with correct length.

    Parameters:

    • pos (str) : left, center or right.
    • txt (str) : The text to move.
    • length (int) : The length of the final string.
    • fill (str) : String filler.

    Return:

    • str : The string filled.
  • replace_last

    Replaces the last iteration of the substring entered with the string chosen in the quoted string.

    Parameters:

    • sub_string (str) : The substring entered.
    • new_string (str) : The string chosen.
    • string (str) : The quoted string.

    Return:

    • str : The quoted string with the last iteration of the substring replaced by the chosen string.
  • space_number

    Separate with character defines the number entered every 3 digits.

    Parameters:

    • number (int, float) : A value.
    • separator (str) : A character.

    Return:

    • str : A string of number separate.

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-3.0.0.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

lassalib-3.0.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file lassalib-3.0.0.tar.gz.

File metadata

  • Download URL: lassalib-3.0.0.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for lassalib-3.0.0.tar.gz
Algorithm Hash digest
SHA256 50396aba34450d61c3ce4abeea8c45c91faedc063beaf206c5f3162039dc8ae4
MD5 b409f4b136c970823bf0b1dacea9f61d
BLAKE2b-256 f740fc6e7ed5b03160686d78c0909e089c4bcf862840bc49f1f3e627930058e5

See more details on using hashes here.

File details

Details for the file lassalib-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: lassalib-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for lassalib-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a383f28138610fab55de1c8d811c57b8b5828f5d9c24cf9a5f21e67bb0b034ce
MD5 978245f86739c4afe14a225156047df7
BLAKE2b-256 a71b25d8381ccbf55079259a552a9e2003931845301ff24f245d5227cdba1508

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