Skip to main content

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.

Metadata

Release files for dummygen-cli 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dummygen-cli 0.0.4
File Size Uploaded
dummygen_cli-0.0.4.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dummygen-cli 0.0.4
File Interpreter ABI Platform
dummygen_cli-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / dummygen_cli-0.0.4.tar.gz

Download URL dummygen_cli-0.0.4.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7a44db2151b07b3c62c2ccc8168523d3918de1f002b992bdd401a60fc35acf3f
BLAKE2b-256 checksum
How to use checksums
fa73ded2063a5e72f59831f725d8b7664e6b72a386908d800bfefa0ecf99dd44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.2

Release files / dummygen_cli-0.0.4-py3-none-any.whl

Download URL dummygen_cli-0.0.4-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50926375b39ff733176a27702f6cd8ae7af8d2e175e95f3a9804874cacf11c3b
BLAKE2b-256 checksum
How to use checksums
d486e4e09fe7bf3c1584ff487c450906888627abb7eae27247d0374588960874
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page