I\'d like to make the output of tail -F or something similar available to me in Python without blocking or locking. I\'ve found some really old code to do that here, but I\'
Another option is the tailhead library that provides both Python versions of of tail
and head
utilities and API that can be used in your own module.
Originally based on the tailer
module, its main advantage is the ability to follow files by path i.e. it can handle situation when file is recreated. Besides, it has some bug fixes for various edge cases.