Skip to main content

Check the available disk space and write it to a csv file. Eventually email the csv file.

Project description

Project Diskspace-Report

A platform independent reporting tool for diskspace usage in time. Every time the script runs, it adds an entry of the actual diskspace to a specified csv file. Over time you can analyse, where your diskspace goes.

The report csv-file can be emailed via your email account. The file can be set up as a service as well, so you will get automated reports via email.

Installation

Via PyPi.org

pip install diskspace_report

pip show diskspace_report

Afterwords, when no error occurred, diskspace_report binary is in your path and you can use it by invoking: diskspace_report --help

Via Source-Code on Github

  1. Download and unpack the source-code (whereever you want)
  2. Make sure python3 is installed and all relevant paths are in your path environment
  3. Install the requirements: pip install -r requirements.txt

Tested Platforms

  1. Windows
  2. MacOS
  3. Linux
  4. The script may run on every platform which supports python3. Some functionality like --editconfig may fail.

Configuration

  1. There is a config.py file to adjust the settings. You can edit the config with diskspace_report --editconfig
  2. Email ist turned off by default. Parameters can be shown with diskspace_report --showconfig
  3. You have to fill all required fields for the email to work and to switch on email report

Testing the functionality

  1. Test the script without email on the command line
  2. When everything works, test it with email on the command line
  3. Afterwords you can add it as a service and run it on a automated basis

Menu functionality

Usage: diskspace_report [OPTIONS]

  Diskspace_Report: A tool to analyse and print / email the available
  diskspace to a csv file

Options:

--editconfig   Opens the config file for editing
--showinfo     Show the Package Information and some path information
--version      Show the version number of the script
--showconfig   Show all the parameters configured in the configuration file
--run BOOLEAN  Run the script. Defaults to True
--help         Show this message and exit.

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

diskspace_report-0.3.2.tar.gz (10.6 kB view details)

Uploaded Source

File details

Details for the file diskspace_report-0.3.2.tar.gz.

File metadata

  • Download URL: diskspace_report-0.3.2.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.0

File hashes

Hashes for diskspace_report-0.3.2.tar.gz
Algorithm Hash digest
SHA256 0f62dc30338cba41bf7d14c043da0ab1865875010833f9520b28bd7d45bac352
MD5 35e3b99ff10ee18d92d2c59070b53fc9
BLAKE2b-256 6eb30aea50f21f22e84bee07f6c904784c68132d5f8a9707f456f74cd743aa87

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