Skip to main content

Display memory system information

Project description

pee

(p)ython fr(ee)

the Linux free command but for MacOS and built in Python

pee displays stats about total, used, free, and available memory in the system. By default (no flag), it returns the stats as bytes.

time also returns buffer and cache info which is not available from the MacOS kernal.

Installation

pip install pee

Usage

pee <-metric> where metric is a data metric.

flags

-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

Dependencies

psutil

More 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.

Contributing

feel free to raise an issue or pull request if you find a bug

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

pee-0.1.1.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

pee-0.1.1-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page