Display memory system information
the Linux free command but for MacOS and built in Python
pee displays stats about
available memory in the system. By default (no flag), it returns the stats as bytes.
time also returns
cache info which is not available from the MacOS kernal.
pip install pee
pee <-metric> where
metric is a data metric.
-h, --help show this help message and exit -g, --gigabytes display memory info in gigabytes -m, --megabytes display memory info in megabytes -k, --kilobytes display memory info in kilobytes -b, --bytes display memory info in bytes (default) -V, --version display version info
I am currently working through Operating System: Three Easy Steps and the exercises at the end of chapter 13 require the use of
free. I am using MacOS so I don't have access to it.
Yes, I could have just booted up Virtual Box for Ubuntu, but instead I built a tool similar to
free for use on MacOS, because there should be one anyways.
feel free to raise an issue or pull request if you find a bug
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.