{ "info": { "author": "Mike Thornton", "author_email": "six8@devdetails.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: POSIX", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Logging", "Topic :: System :: Systems Administration", "Topic :: System :: System Shells", "Topic :: Text Processing" ], "description": "======\nTailer\n======\n\n.. image:: https://travis-ci.org/six8/pytailer.svg\n :target: https://travis-ci.org/six8/pytailer\n :alt: Build Status\n\nPython tail is a simple implementation of GNU tail and head.\n\nIt provides 3 main functions that can be performed on any file-like object that supports ``seek()`` and ``tell()``.\n\n* ``tail`` - read lines from the end of a file\n* ``head`` - read lines from the top of a file\n* ``follow`` - read lines as a file grows\n\nIt 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.\n\n- `Tailer on GitHub `_\n- `Tailer on Pypi `_\n\nInstallation\n============\n\nInstall with ``pip`` or ``easy_install``.\n\n::\n\n pip install tailer\n\nExamples\n========\n\n::\n\n import tailer\n f = open('test.txt', 'w')\n for i in range(11):\n f.write('Line %d\\\\n' % (i + 1))\n f.close()\n\nTail\n----\n::\n\n # Get the last 3 lines of the file\n tailer.tail(open('test.txt'), 3)\n # ['Line 9', 'Line 10', 'Line 11']\n\nHead\n----\n::\n\n # Get the first 3 lines of the file\n tailer.head(open('test.txt'), 3)\n # ['Line 1', 'Line 2', 'Line 3']\n\nFollow\n------\n::\n\n # Follow the file as it grows\n for line in tailer.follow(open('test.txt')):\n print line\n\nRunning Tests\n=============\n\nTailer currently only has doctests.\n\nRun tests with nose::\n\n nosetests --with-doctest src/tailer\n\nRun tests with doctest::\n\n python -m doctest -v src/tailer/__init__.py", "description_content_type": null, "docs_url": null, "download_url": "http://github.com/six8/pytailer", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/six8/pytailer", "keywords": "tail,head", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "tailer", "package_url": "https://pypi.org/project/tailer/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/tailer/", "project_urls": { "Download": "http://github.com/six8/pytailer", "Homepage": "http://github.com/six8/pytailer" }, "release_url": "https://pypi.org/project/tailer/0.4.1/", "requires_dist": null, "requires_python": null, "summary": "Python tail is a simple implementation of GNU tail and head.", "version": "0.4.1" }, "last_serial": 1854420, "releases": { "0.1": [], "0.1.1": [ { "comment_text": "", "digests": { "md5": "342797803a7f2f3165d8c1e53212e11e", "sha256": "d2ac45d3558db6688f31c5a026d3600c9934a33820dbb6a7f9630318bdd07a2f" }, "downloads": -1, "filename": "tailer-0.1.1.tar.gz", "has_sig": false, "md5_digest": "342797803a7f2f3165d8c1e53212e11e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3739, "upload_time": "2008-01-29T07:40:14", "url": "https://files.pythonhosted.org/packages/a2/bb/2d77f2e3551d8fc0a608a96023a39790ce71bd9cd0f1edfaf2df03fa12e0/tailer-0.1.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "55b86a93d294168ca4397918aae2d30e", "sha256": "6c364622050dab606ef74b16e16902b136c572da9e41960e8dd71934dce77bf5" }, "downloads": -1, "filename": "tailer-0.2.tar.gz", "has_sig": false, "md5_digest": "55b86a93d294168ca4397918aae2d30e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3733, "upload_time": "2008-01-29T07:42:05", "url": "https://files.pythonhosted.org/packages/0f/d9/801ecda90fda4e23ff5553fe8e9069027fb2c45e46c10798b20bbe2aea5e/tailer-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "7c9c837227575ba5a0208af7840358a1", "sha256": "03ea447ba0fa4882554bc42171437ef146da43d5da787b099659113c16b047f3" }, "downloads": -1, "filename": "tailer-0.2.1.tar.gz", "has_sig": false, "md5_digest": "7c9c837227575ba5a0208af7840358a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3746, "upload_time": "2008-01-29T18:40:09", "url": "https://files.pythonhosted.org/packages/78/04/412206c4a2a1816f1e3beb8a952eadec8dca28933a8c1a84e95c37b2a050/tailer-0.2.1.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "9d1fc073e48ca682786d50c077e823ce", "sha256": "f026b22c312197e91c08115c795510ab5b22ec39e28b7b0c9e90100bb275a92d" }, "downloads": -1, "filename": "tailer-0.3.tar.gz", "has_sig": false, "md5_digest": "9d1fc073e48ca682786d50c077e823ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7384, "upload_time": "2012-02-27T21:33:16", "url": "https://files.pythonhosted.org/packages/d7/89/0b7ef6d3663e7c96d5aa86fe2457afb9c6d6e5f2e9706c8d0a5f7931c6e1/tailer-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "488af6472c45e95ec0fe05fdf7326c31", "sha256": "be733800da87a0e7e8fa57f0c1600726af5dce838fd218981e50d9610df5c531" }, "downloads": -1, "filename": "tailer-0.4.tar.gz", "has_sig": false, "md5_digest": "488af6472c45e95ec0fe05fdf7326c31", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4618, "upload_time": "2015-12-09T18:15:12", "url": "https://files.pythonhosted.org/packages/3d/75/6edc82b4049c21358aa30b322bf7779de0f13eafded6b14572015ab786ea/tailer-0.4.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "94de3facb2fa63d0671e1848aff4f461", "sha256": "78d60f23a1b8a2d32f400b3c8c06b01142ac7841b75d8a1efcb33515877ba531" }, "downloads": -1, "filename": "tailer-0.4.1.tar.gz", "has_sig": false, "md5_digest": "94de3facb2fa63d0671e1848aff4f461", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7504, "upload_time": "2015-12-09T19:44:11", "url": "https://files.pythonhosted.org/packages/dd/05/01de24d6393d6da0c27857c76b0f9ae97b42cd6102bbdf76cce95e031295/tailer-0.4.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "94de3facb2fa63d0671e1848aff4f461", "sha256": "78d60f23a1b8a2d32f400b3c8c06b01142ac7841b75d8a1efcb33515877ba531" }, "downloads": -1, "filename": "tailer-0.4.1.tar.gz", "has_sig": false, "md5_digest": "94de3facb2fa63d0671e1848aff4f461", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7504, "upload_time": "2015-12-09T19:44:11", "url": "https://files.pythonhosted.org/packages/dd/05/01de24d6393d6da0c27857c76b0f9ae97b42cd6102bbdf76cce95e031295/tailer-0.4.1.tar.gz" } ] }