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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file pee-0.1.1.tar.gz.

File metadata

  • Download URL: pee-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for pee-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5581c781aec85cdb6324b5971a61ec127b572021206e9e464d29a18ebba14e2a
MD5 99fd9c3994ffb1d7963d6ed0425521e5
BLAKE2b-256 4f7aad83ca860a3a487c32380004c1a9eb563dd733d4a7faa4fca4aba606625b

See more details on using hashes here.

File details

Details for the file pee-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pee-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

File hashes

Hashes for pee-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 197002232cfee5640b13d462ffc43c86b57c362a66fe75f2b4877d8d9c3b49d1
MD5 9a15b6abb55a71f2cf4b23a3fddef147
BLAKE2b-256 ffb959c5bbd224e42173caf0683d9027a4a392af3ffcf3854cca04a981acc77f

See more details on using hashes here.

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