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 hashes)