Create files of the desired size
Project description
fwrite
Create files of the desired size.
Simple example:
$ fwrite testfile 100M
Install
Install using pip:
pip install fwrite
or
Download and set executable permission on the script file:
chmod +x fwrite.py
or
Download and run using the python interpreter:
python fwrite.py
Usage
Usage: fwrite filename size [options] create files of the desired size, e.g., 'fwrite test 10M' Options: --version show program's version number and exit -h, --help show this help message and exit -r, --random use random data (very slow) -n, --newlines append new line every 1023 bytes
Examples
Create file “test” with 100KB:
$ fwrite test 100K
Create file “test” with 1GB:
$ fwrite test 1G
Create file “test” with 10MB of random data:
$ fwrite test 10M -r
Create file “test” with 10MB of random data with lines:
$ fwrite test 10M -r -n
Notes
Works on Python 2 and Python 3
Tested on Linux and Windows
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
fwrite-0.3.tar.gz
(2.6 kB
view details)
File details
Details for the file fwrite-0.3.tar.gz
.
File metadata
- Download URL: fwrite-0.3.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/33.1.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2388ce3b11d4d2a3fd0a40671260b66c8ba0de1f844901a0610f4531f6a9150 |
|
MD5 | 1c5c8384731f00901a590e8cdc60082e |
|
BLAKE2b-256 | 36dbe8909d35046f700edc673fa9dd493e9352f50d94699e95c9b5a6e8eba2d1 |