functions
Tu sa nachádzajú funkcie, ktoré sa vedia hodiť počas hladanie hesiel a netreba ich tým pádom nanovo programovať.
from susi_lib.functions import *
# takto sa importujú všetky funkcie odtiaľto
Contains some useful functions
- class susi_lib.functions.functions.Encoding(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Enumclass to specify encoding forencode().- BRAILLE = 2
Encode to braille
- MORSE = 1
Encode to morse
- NUMBERS = 4
Encode to numbers
- SEMAPHORE = 3
Encode to semaphore
- susi_lib.functions.functions.decode(string: str) str[source]
Decodes a given value.
Supported encodings are
Braille,Numbers,MorseandSemaphore. Encoding should be the same as the strings returned by__str__()method of classes insusi_lib.types.
- susi_lib.functions.functions.encode(string: str, encoding: Encoding, base: int = 10) str[source]
Encode the given string into desired encoding
- susi_lib.functions.functions.find_anagrams(word: str, word_list: list[str]) list[str][source]
Function for finding anagrams of a word from a specified list.