Prevents your machine from freezing when it's running out of RAM
Project description
Out Of Mana Memory
Provides a function that keeps an eye on your RAM and stops executing of the process if you are running out of memory.
Example:
from oom import exit_on_out_of_ram
one_gigabyte = 1 << 30
exit_on_out_of_ram(one_gigabyte)
# explode your RAM
extremely_big_number = 1 << 9999999
_ = [i for i in range(extremely_big_number)]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
oom-0.0.3.tar.gz
(2.0 kB
view hashes)
Built Distribution
oom-0.0.3-py3-none-any.whl
(3.5 kB
view hashes)