No project description provided
Project description
Welcome
This is a repository that holds my implementation of the tail -f command.
In order to install it you can use either of these two ways.
git clone https://github.com/r3ap3rpy/pytail
cd pytail
python setup.py install
OR
pip install pytail-r3ap3rpy
Usage
Simply specify the file or filter to use the tool.
╰─>$ pytail --file test.txt
##############################
# Tailing file: test.txt
# Use <CTRL + C> to exit
##############################
2024-02-15 13:42:35.747232 :: line
2024-02-15 13:42:40.425967 :: another
2024-02-15 13:42:44.374841 :: yet another
##############################
# End of tailing!
# Elapsed time: 15.93 second(s)!
# Speed: 0.19 lps (lines per second)
##############################
Notes
If you install it in a virtualenv it will just work fine!
On MacOS systems the module works fine.
On linux systems if you install the module with sudo it will work fine, if you install it without sudo you may have to issue the following command after install if you cannot find the pytail executable.
export PATH="$HOME/.local/bin:$PATH"
There are two arguments:
- file (The file you want to tail!)
- filter (Optional, allows you to get only lines that contain the filter, case-insensitive!)
ToDo
- Check install issues!
- Add automatic version bump to workflow
- Add permission check to see if user has the right to read the file!
- Change it to use argparse
- Add versioning
- Add switches
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
pytail-r3ap3rpy-0.1.3.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for pytail_r3ap3rpy-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ae5b155662c7ab56177a501a8cbe6d9eff969e5f19087e64668682ec06088ba |
|
MD5 | 5c89da8a2671525446457ccfbde11038 |
|
BLAKE2b-256 | bd4fe15805f872aae8fa98046360162cba89deb3cff9d47f33f103aafc138f3d |