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

Uploaded Source

Built Distribution

df_magic_openSARlab-0.0.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file df_magic_openSARlab-0.0.2.tar.gz.

File metadata

  • Download URL: df_magic_openSARlab-0.0.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.1 importlib-metadata/3.10.0 keyring/23.0.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.2

File hashes

Hashes for df_magic_openSARlab-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8d05e1f27eeb748affe34d99258f0c9f28869d336a98ab602cd4b8e3b1ae9249
MD5 d10b1a0cde3cd5616ae9164024d3b8cb
BLAKE2b-256 7f2fc704b6de7d6562634a8c54e0665284573b4997d6b85487eedeb102045957

See more details on using hashes here.

File details

Details for the file df_magic_openSARlab-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: df_magic_openSARlab-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.1 importlib-metadata/3.10.0 keyring/23.0.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.2

File hashes

Hashes for df_magic_openSARlab-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 640006ff930627a537c7a9401553e307d07dd1458839cb74a21f4cda17e73cdd
MD5 3e8a4588535b44c8c372491e5f592cb2
BLAKE2b-256 8c70fe298b5a2c091ae22b4bd008d8051b2dc45f5a7265c2ef06fdd196421c50

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