Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pdrb/fwrite
Create files of the desired size
https://github.com/pdrb/fwrite
create file python size write
Last synced: 7 days ago
JSON representation
Create files of the desired size
- Host: GitHub
- URL: https://github.com/pdrb/fwrite
- Owner: pdrb
- License: mit
- Created: 2017-02-07T21:40:15.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-14T15:53:41.000Z (almost 6 years ago)
- Last Synced: 2024-10-31T10:37:40.686Z (14 days ago)
- Topics: create, file, python, size, write
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
|Downloads|
fwrite
=======Create files of the desired size.
Simple example::
$ fwrite testfile 100M
Notes
=====- Works on Python 2 and Python 3
- Uses only Python standard library for maximum compatibilityInstall
=======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 bytesExamples
========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
.. |Downloads| image:: https://pepy.tech/badge/fwrite