Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pdrb/frate
Measure file growing rate in real time
https://github.com/pdrb/frate
file growing python rate
Last synced: 7 days ago
JSON representation
Measure file growing rate in real time
- Host: GitHub
- URL: https://github.com/pdrb/frate
- Owner: pdrb
- License: mit
- Created: 2017-02-07T22:07:29.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-14T15:57:18.000Z (almost 6 years ago)
- Last Synced: 2024-10-09T09:27:12.808Z (about 1 month ago)
- Topics: file, growing, python, rate
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
|Downloads|
frate
=====Measure file growing rate in real time.
Show the number of lines and KB per second the file is growing.
One useful use case is to monitor the "acess.log" of a webserver, to get a
estimative of requests per second.Simple example::
$ frate /var/log/nginx/access.log
Lines: 195.0/s, Avg: 174.6/s | Write: 18.5KB/s, Avg: 16.5KB/s
Notes
=====- Works on Python 2 and Python 3
- Uses only Python standard library for maximum compatibilityInstall
=======Install using pip::
pip install frate
or
Download and set executable permission on the script file::
chmod +x frate.py
or
Download and run using the python interpreter::
python frate.py
Usage
=====::
Usage: frate file
show file growing rate, 'control-c' to stop
Options:
--version show program's version number and exit
-h, --help show this help message and exit.. |Downloads| image:: https://pepy.tech/badge/frate