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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytail_r3ap3rpy-0.1.5-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file pytail_r3ap3rpy-0.1.5.tar.gz.

File metadata

  • Download URL: pytail_r3ap3rpy-0.1.5.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pytail_r3ap3rpy-0.1.5.tar.gz
Algorithm Hash digest
SHA256 b6b2844574dc6e3dc0077cac631fb1c56a4917149cbe0f59b58a182a9e016361
MD5 ff5b2dcb2f6e9924286729ea65e2df3b
BLAKE2b-256 9b1dc9d7c5d3b2bbcd2dcef5ecabf8cb613436ebe5c5a0c2dde841e9e6545f9a

See more details on using hashes here.

File details

Details for the file pytail_r3ap3rpy-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for pytail_r3ap3rpy-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fc9220748063dd569a725eb07c42a724256d5a9cce024aa4627915d3def6c76c
MD5 94d1b24d4e9bcea7509e4c97eb529ae8
BLAKE2b-256 e681b8bddb6215ea27466edd333473446fda8338625e0ade8d45607d9200f344

See more details on using hashes here.

Supported by

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