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
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
Release files for pee 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pee-0.1.1.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pee-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.3 kB
Release files / pee-0.1.1.tar.gz
| Download URL | pee-0.1.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5581c781aec85cdb6324b5971a61ec127b572021206e9e464d29a18ebba14e2a
|
|
BLAKE2b-256 checksum How to use checksums |
4f7aad83ca860a3a487c32380004c1a9eb563dd733d4a7faa4fca4aba606625b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pee-0.1.1-py3-none-any.whl
| Download URL | pee-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
197002232cfee5640b13d462ffc43c86b57c362a66fe75f2b4877d8d9c3b49d1
|
|
BLAKE2b-256 checksum How to use checksums |
ffb959c5bbd224e42173caf0683d9027a4a392af3ffcf3854cca04a981acc77f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|