Functions I've used accross multiple projects, more info in this README to come
#alert(alarm, x) counts down from x and prints int x and a string alarm to console
alert('Till countdown', 10)
#check_dir(child, parent) looks for a child directory in a parent directly, if there is no child dir then one is created
check_dir('log', '~')
#check_file(fname, file_dest) ensures that a file is not in a directory, if it is not in the directory then the a path is provided for file creation
check_file('somefile.txt', '~/projects')
#log_it(text, dest_dir) takes in string text and a string file destination folderand creates a file named with timestamp
log_it('this is a test', './log/')
#run_in_background(args) takes in a string shell command and runs it as a background process
run_in_background('firefox')
#limit_proc(proc,limit) takes in a string process name and an int limit, limit represents a threshold of a certain process. If limit is reached then a simple spinlock activates and activly waits until the process count is no longer at the limit
limit_proc('curl', 5)
#kill_proc(proc) takes in a string process name and kills processes with that name
kill_proc('curl')
Metadata
Release files for easy-utils 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| easy_utils-0.0.6.tar.gz | 2.3 kB | Without provenance | Details for easy_utils-0.0.6.tar.gz |
Release files / easy_utils-0.0.6.tar.gz
| Download URL | easy_utils-0.0.6.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
594e8baf04ca7f37eec9e3c96971f125d402be21050356854d4756cdb59a1071
|
|
BLAKE2b-256 checksum How to use checksums |
75309f9bd544a10be219060c65e25d9a20a969aaffad811175d366a3bab6c461
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|
Security for easy-utils 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.