richcat.modules package
Subpackages
Submodules
richcat.modules.help module
richcat.modules.utils module
- richcat.modules.utils.calc_max_line_length(file_contents)[source]
The function calculate max line length
- Parameters
file_contents (str) – file contents
- Returns
max line length
- Return type
int
- richcat.modules.utils.count_line_length(file_contents)[source]
The function count line length
- Parameters
file_contents (str) – file contents
- Returns
list of line length
- Return type
list[int]
- richcat.modules.utils.extract_extension(path)[source]
The function extract file extension from filepath
- Parameters
path (str) – filepath
- Returns
file extension
- Return type
str
- richcat.modules.utils.extract_filename(path)[source]
The function extract filename from filepath
- Parameters
path (str) – filepath
- Returns
filename
- Return type
str
- richcat.modules.utils.import_module_with_existence_confirmation(module_name)[source]
The function to check if the module is installed and import the moduleto check if the library is installed
- Parameters
module_name (str) – module name
- Returns
imported module. None if the module is not installed.
- Return type
ModuleType or None
Module contents
This is richcat/modules module. This has most of basic functions of richcat.