Skip to main content

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

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)

Uploaded Source

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

Hashes for ExeLib-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f40be3552d0ba6455c21b80f721aa6f36e324a6b7e8b17e6aa19ceb1d6eec411
MD5 b44302cdfc48220f6412e82a095b2142
BLAKE2b-256 42ba63de537a317d309652ac9accb905263e4239cae608e4b4a5ca7507f51f18

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 file

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page