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.
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
richlibrary (install usingpip install rich)shutillibrary (part of the Python Standard Library)
This will generate a dummy file named example.txt with a size of 500 MB.
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a44db2151b07b3c62c2ccc8168523d3918de1f002b992bdd401a60fc35acf3f
|
|
| MD5 |
b559cb2e243e9008633bd151b99c8f77
|
|
| BLAKE2b-256 |
fa73ded2063a5e72f59831f725d8b7664e6b72a386908d800bfefa0ecf99dd44
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50926375b39ff733176a27702f6cd8ae7af8d2e175e95f3a9804874cacf11c3b
|
|
| MD5 |
6ce8eb1bb904bb2f715fbff3aa3921da
|
|
| BLAKE2b-256 |
d486e4e09fe7bf3c1584ff487c450906888627abb7eae27247d0374588960874
|