Python Module to enable running tasks inside threads based on cron schedule
Project description
Overvoew
A Python module whose goal is to take some common cases of python code that become repetive and used everywhere and hide them behind some easy to use functions and classes
Examples
from no_utils import *
#run a system command and get the return code, output and error messages
ret, out, err = system_cmd("git clone https://github.com/FrdAlex/no_utils.git")
#example of guarding against None values
def do_something(param):
Guard.agains_none(param)
print(param)
do_something("Simple example")
do_something(None)
# File Utils examples
file1 = "part_1.txt"
file2 = "part_2.txt"
output = "output.txt"
FileUtils.merge_files([file1,fil2], output)
FileUtils.remove_last_empty_line(output)
FileUtils.content_exists("warning")
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
no_utils-1.0.0.tar.gz
(16.0 kB
view details)
Built Distribution
no_utils-1.0.0-py3-none-any.whl
(15.5 kB
view details)
File details
Details for the file no_utils-1.0.0.tar.gz
.
File metadata
- Download URL: no_utils-1.0.0.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22ce86bd8b9ce5f166659c6d4d2d392834627d2b54f28086356411e8612ee83a |
|
MD5 | 6601dbb7e9c4fa0f6490e347dde55660 |
|
BLAKE2b-256 | 4c56eafefe11726162c7920428cb20f58c2ed37eaca19177c931ee0293d14f4c |
File details
Details for the file no_utils-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: no_utils-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8dba559ccf0c40bc815da6b00af66a5aa4c3ff138531c5f44d10cfdeda20444 |
|
MD5 | 05d264ba07b8b7e397c29864eeed36ad |
|
BLAKE2b-256 | f292918de5892bd0066a50052dbd56505b80ea5f3aa1d6ac32764e9ff598c961 |