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
Metadata
Release files for fwrite 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| fwrite-0.3.tar.gz | 2.6 kB | Without provenance | Details |
Release files / fwrite-0.3.tar.gz
| Download URL | fwrite-0.3.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2388ce3b11d4d2a3fd0a40671260b66c8ba0de1f844901a0610f4531f6a9150
|
|
BLAKE2b-256 checksum How to use checksums |
36dbe8909d35046f700edc673fa9dd493e9352f50d94699e95c9b5a6e8eba2d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for fwrite 0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.