Skip to main content

A simple Python script to generate dummy file of specified size.

Project description

dummygen-cli

A command-line tool to quickly generate dummy files of specified sizes.

asciicast

Features

  • Simple Command-Line Interface: Easy-to-use prompts powered by rich.
  • Custom Filename: Specify the desired filename for your dummy file.
  • Flexible File Size: Define the file size in KB, MB, GB, or TB.
  • Disk Space Monitoring: Displays initial and final free disk space, and the space used.
  • Robust Error Handling: Checks for sufficient disk space during file generation.

Installation & Usage

pip install dummygen-cli # or execute direcly "uvx dummygen-cli"
# 2. Input the desired filename and size
# 3. The script will generate a dummy file of the specified size

Example

$ python dummygen-cli.py
# Enter the desired filename: example.txt
# Enter the desired size (e.g., 100MB, 2.5GB): 500MB

Requirements

  • Python 3.x
  • rich library (install using pip install rich)
  • shutil library (part of the Python Standard Library)

This will generate a dummy file named example.txt with a size of 500 MB.

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

dummygen_cli-0.0.4.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

dummygen_cli-0.0.4-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file dummygen_cli-0.0.4.tar.gz.

File metadata

  • Download URL: dummygen_cli-0.0.4.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for dummygen_cli-0.0.4.tar.gz
Algorithm Hash digest
SHA256 7a44db2151b07b3c62c2ccc8168523d3918de1f002b992bdd401a60fc35acf3f
MD5 b559cb2e243e9008633bd151b99c8f77
BLAKE2b-256 fa73ded2063a5e72f59831f725d8b7664e6b72a386908d800bfefa0ecf99dd44

See more details on using hashes here.

File details

Details for the file dummygen_cli-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: dummygen_cli-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for dummygen_cli-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 50926375b39ff733176a27702f6cd8ae7af8d2e175e95f3a9804874cacf11c3b
MD5 6ce8eb1bb904bb2f715fbff3aa3921da
BLAKE2b-256 d486e4e09fe7bf3c1584ff487c450906888627abb7eae27247d0374588960874

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