An Alt To exec()..!!
Project description
ExeLib 1.0.0
A python module as an alt to default exec() fun , with new features : )
For getting return and logging from exec and also limit cpu time and ram usage...
Use: from Exelib import exec_
Install !!
pip install ExeLib
How to return ??
__reexec__ <whatever you want to return>
How to log ??
__logging__ <whatever you want to log>
How to use auto return ??
exec_("bla bla bla" , auto_return = "<something you want to return , when the program crashes>")
How to access these ??
rets , logs = exec_("bla bla bla")
How to set cpu time ??
exec_(cmd,cpu_t= <time in seconds>)
How to limit ram usage ??
exec_(cmd,ram_u= <max-size>)
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
ExeLib-1.0.1.tar.gz
(3.5 kB
view details)
File details
Details for the file ExeLib-1.0.1.tar.gz
.
File metadata
- Download URL: ExeLib-1.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f40be3552d0ba6455c21b80f721aa6f36e324a6b7e8b17e6aa19ceb1d6eec411 |
|
MD5 | b44302cdfc48220f6412e82a095b2142 |
|
BLAKE2b-256 | 42ba63de537a317d309652ac9accb905263e4239cae608e4b4a5ca7507f51f18 |