yoda_powers.toolbox Package¶
Handy functions common for many scripts to easy check file/directory, load file info, …
Functions¶
|
Function to compare two list and return common, uniq1 and uniq2 |
|
‘Type’ for argparse - checks that file exists and return the absolute path as PosixPath() with pathlib |
|
Check file exist and return a |
|
Check file exist and return a |
|
Check file exist and return a |
|
Check file exist and create generator with no line break file can be a gzip file with ‘.gz’ extension |
|
Check file exist and create generator with only selected column with no line break file can be a gzip file with ‘.gz’ extension |
|
Function return the key of max value in dico values() |
|
‘Type’ for argparse - checks that directory exists and if readable, then return the absolute path as PosixPath() with pathlib |
|
Function that take a dictionnary and text variable and return text variable with replace ‘Key’ from dictionnary with ‘Value’. |
|
Sort a |
|
use this Decorator to add information to scripts with arguments |
Classes¶
Implementation of perl’s autovivification feature. |
|
|
Class which derives from PosixPath. |
|
PurePath subclass that can make system calls. |
|
Path subclass for non-Windows systems. |
|
Classe qui ajoute des méthodes à print pour afficher de la couleur |
|
The year, month and day arguments are required. |