My utility library with zero dependency
Project description
Kas-Utils
My utility library with zero dependency
Functions
add_json
- Append new entry in array and write in json file
append
- Append texts to a file
bgtask
- Run task in background supressing output by setting stdout and stderr to devnull
cat
- A poor alternative of GNU/Linux 'cat' command returning file content
center_text
- Centers texts to terminal
clear
- Clear the screen and show logo
copy
- Copies files or folders
delete
- Delete files/folders if exist
extract
- Extract zip/tar/tgz files
generate_readme
- Geneated markdown with function name and docstring
get_docstrings
- Returns a dictionary of function name as key and docstring as value
get_toml_ver
- Grab version from toml file
get_ver
- Converts 1.2.3 to 123 for easy comparison
grep
- Another poor alternative of GNU/Linux 'grep' command for regex search
inst_module
- Try to install pip modules
installer
- Install package by shell command. Specify a package name if it is different than the executable
is_installed
- Check if a process is running by 'command -v' command. If it has a output exit_code will be 0 and package is already installed
is_json
- Check if a json is valid
is_online
- Checks for a valid internet connection
is_running
- Check if a process is running by 'pidof' command.If pidof has a output exit_code will be 0 and process is running
killer
- Kill processes by pid
lolcat
- Prints colorful texts
move
- Copies files or folders
pretty_print
- Print decorated file content
readable
- Bytes to KB, MB converter
rename
- Copies files or folders
sed
- Another poor alternative of GNU/Linux 'sed' command to replace and write
send_mail
- Send mail by smtp library
shell
- Run shell commands in python
sprint
- Print lines slowly
write
- Write texts to a file
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
kasutils-0.0.2.tar.gz
(5.9 kB
view details)
Built Distribution
File details
Details for the file kasutils-0.0.2.tar.gz
.
File metadata
- Download URL: kasutils-0.0.2.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Linux/5.15.0-1040-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ac07d5af6c608055e7d25b7a748119fcd612d99c23ad32d3925d6723d876548 |
|
MD5 | 85b6d9d62abecf30d5361857f5c323a4 |
|
BLAKE2b-256 | ead4a2e6850a846b1e3bd8c4d00b03f849e5a9c5f30d25dc65f38b4d7f55af41 |
File details
Details for the file kasutils-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: kasutils-0.0.2-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Linux/5.15.0-1040-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76a89ea56e36ddcc110b6c65beb62e78abdb4139ccaadadc3411fb6e50374f77 |
|
MD5 | 8dcc330c1c18f72b12f1782a7a08e44f |
|
BLAKE2b-256 | 999d24f3cffbc6243d41a0a1dd5a042cfbcab38e899960181ea123d29618095d |