Skip to main content

Magic commands to get file usage from python function shutil.disk_usage().

Project description

df_jupyter_magic

%df magic commands to get file usage within JupyterLab notebook. This package utilizes python function shutil.disk_usage().

Requirements

  • JupyterLab >= 3.0
  • Python >= 3.6

Install

To install this package, execute:

pip install df_jupyter_magic

Uninstall

To remove the package, execute:

pip uninstall df_jupyter_magic

How to Use

You must first import the package by running following command:

import df_jupyter_magic

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.
  • %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_jupyter_magic-0.0.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

df_jupyter_magic-0.0.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: df_jupyter_magic-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_jupyter_magic-0.0.2.tar.gz
Algorithm Hash digest
SHA256 67018918a7c8ac5b6c3cec9cfd46072f58514e3caf1087f9a3b886541dcb070e
MD5 033ac3ef6e45ecc9ef743215e8339f1e
BLAKE2b-256 6c5f031992b0955555e2b3df4f52474d0fd82da1470044126a43a7b25589d597

See more details on using hashes here.

File details

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

File metadata

  • Download URL: df_jupyter_magic-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.9 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_jupyter_magic-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ef29785486b0aed2c481a33aedf911576a8b1758cbaefd715492d51513e1beec
MD5 81e6942be665b542001de5c60b21f30c
BLAKE2b-256 bbc1de6cb28537ea32fc0a5d178428a652524aba8bfa3312e1e4a6630fbd92dd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page