Skip to main content

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 off on.
  • %df -p / sets the path to the partition to check.
  • %df -v prints off additional text for debugging.

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

df_magic_openSARlab-0.0.2.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

df_magic_openSARlab-0.0.2-py3-none-any.whl (5.0 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