Skip to main content

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"

On windows in case the pytail executable is not available after install you have to use the absolute path to use it.

 python C:\Python\Python310\Scripts\pytail --file test.txt

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


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.4.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

pytail_r3ap3rpy-0.1.4-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page