Magic commands to get file usage from python function shutil.disk_usage().
Project description
df_magic_openSARlab
%df
magic commands to get file usage within OpenSARlab. This package utilizes python function shutil.disk_usage()
.
Requirements
- JupyterLab >= 3.0
- Python >= 3.6
Install
To install this package, execute:
pip install df_magic_openSARlab
Uninstall
To remove the package, execute:
pip uninstall df_magic_openSARlab
How to Use
You must first import the package by running following command:
import df_magic_openSARlab
Then, you may use one of the following commands:
%df
returns a human readable string in GB. Input is the path to the disk/partition. Default is '/home/jovyan'.%df --raw
returns a raw data object.%df --on
returns rsults in a string in GB after every subsequent cell run.%df --off
turns offon
.%df -p /
sets the path to the partition to check.%df -v
prints off additional text for debugging.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for df_magic_openSARlab-0.0.1.dev2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0202d38dad4c02476e470eed0247b94cedbb45715f5e27e5ff8775c6f8011732 |
|
MD5 | 8f16c1ba2ae7703ea5e3e96a55271422 |
|
BLAKE2b-256 | 633c0eaa3fbefb59b4f44223f83f6d8f544fe2cc72ffe203ae9f2b9c880337f6 |
Close
Hashes for df_magic_openSARlab-0.0.1.dev2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e9bf2684ffecaaabae0c90f28d5569c40f51c75c6267303a26b0e1f9e786a0b |
|
MD5 | f8bc8e1635b89500115af72996e12cbc |
|
BLAKE2b-256 | 4e1e63bb0c66950a1e9c0d8302d31ca4b92bf880995e9b167cb219ad28d5ea35 |