Skip to main content

Dummy Files Creator

Unit tests Codacy Badge

Application to generate dummy files with random content and different checksums. File units are corresponding powers of 210 (KiB, MiB, GiB).

For a bash-based (more performant) solution, see this project.

Usage

Both GUI and CLI modes are available. Note that CLI mode is recommended for creating large datasets.

GUI mode

To use the GUI mode, start dummyfilescreator without arguments. This mode is not recommended for creating large datasets.

Dummy Files Creator

CLI mode

Recommended for creating large datasets. The parameters for CLI mode are listed below.

Key Description
--output / -o Location where files will be created
--n-files / -n Number of files to be created
--size / -fs Size of files to be created
--unit / -fu Size unit (KiB, MiB, GiB)
--chunk-size / -cs Chunk size
--chunk-unit / -cu Chunk size unit (KiB, MiB, GiB)
--log / -l Saves log file. Affects performance
--hash / -ha Includes md5 hash in log file. Affects performance
--progressbar / -p Shows progress bar. Affects performance
--verbose / -v Shows per-file progress bar. Affects performance

Example:

  • Create 5 files of 80 MiB each, show the individual file creation progress, and save the log file with md5 hash to /tmp.

Recording

$ dummyfilescreator -o=/tmp -n=5 -fs=80 -fu=MiB -cs=1 -cu=MiB -l=/tmp -ha -v
5 file(s) created in /tmp
Log file saved to /tmp

$ ls /tmp | grep dummy
71bfdea7-f701-40da-97c0-ff0331edd004.dummy
b2c97bc9-159d-41a7-ae8f-55c4d1d2c9ce.dummy
b853d34a-e38d-4f97-8648-9db937ce9a61.dummy
dummy-files-creator.csv
e7149851-0e3a-400f-a929-8ab84b0a0a25.dummy
e9658f26-eb5d-4547-b456-ca2020459f2f.dummy

$ tail -n 1 /tmp/dummy-files-creator.csv
"2022-06-12 22:59:52.213830","80MiB","/tmp/71bfdea7-f701-40da-97c0-ff0331edd004.dummy","442cc4ebbe37cad4025b4bb2049db497"

Metadata

Release files for dummyfilescreator 3.0.1

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

Source distribution (sdist)

Source distribution for dummyfilescreator 3.0.1
File Size Uploaded
dummyfilescreator-3.0.1.tar.gz 46.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dummyfilescreator 3.0.1
File Interpreter ABI Platform
dummyfilescreator-3.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 93.4 kB

Release files / dummyfilescreator-3.0.1.tar.gz

Download URL dummyfilescreator-3.0.1.tar.gz
Size 46.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c4356120bd12a823f73ab53e74c397421f97c5635efcebf3cd254a626e53a791
BLAKE2b-256 checksum
How to use checksums
98ebe61ae665823817f2ee195531cc985551e824d52002d54af9a951c07d2b2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / dummyfilescreator-3.0.1-py3-none-any.whl

Download URL dummyfilescreator-3.0.1-py3-none-any.whl
Size 46.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4483db765f4104e0fdefc159b5d7e5105524290dadaf85932aa8b0308d17c73
BLAKE2b-256 checksum
How to use checksums
7ce39ae8f63b47c723652d54f89481a6576090584d5439d0b7f92f3c77378c60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

3.0.1 This release

2 release files

3.0.0

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