
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
tailer
Advanced tools
.. image:: https://travis-ci.org/six8/pytailer.svg :target: https://travis-ci.org/six8/pytailer :alt: Build Status
Python tail is a simple implementation of GNU tail and head.
It provides 3 main functions that can be performed on any file-like object that supports seek() and tell().
tail - read lines from the end of a filehead - read lines from the top of a filefollow - read lines as a file growsIt also comes with pytail, a command line version offering the same functionality as GNU tail. This can be particularly useful on Windows systems that have no tail equivalent.
Tailer on GitHub <http://github.com/six8/pytailer>_Tailer on Pypi <http://pypi.python.org/pypi/tailer>_Install with pip or easy_install.
::
pip install tailer
::
import tailer f = open('test.txt', 'w') for i in range(11): f.write('Line %d\n' % (i + 1)) f.close()
::
# Get the last 3 lines of the file
tailer.tail(open('test.txt'), 3)
# ['Line 9', 'Line 10', 'Line 11']
::
# Get the first 3 lines of the file
tailer.head(open('test.txt'), 3)
# ['Line 1', 'Line 2', 'Line 3']
::
# Follow the file as it grows
for line in tailer.follow(open('test.txt')):
print line
Tailer currently only has doctests.
Run tests with nose::
nosetests --with-doctest src/tailer
Run tests with doctest::
python -m doctest -v src/tailer/__init__.py
FAQs
Python tail is a simple implementation of GNU tail and head.
We found that tailer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.