{ "info": { "author": "Tony S. Yu", "author_email": "tsyu80@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development" ], "description": "====================================================\nlinecook: Prepare lines of text for easy consumption\n====================================================\n\n.. default-role:: literal\n\n.. image:: https://img.shields.io/badge/License-BSD%203--Clause-blue.svg\n :target: https://github.com/tonysyu/linecook/blob/master/LICENSE\n\n.. image:: https://travis-ci.com/tonysyu/linecook.svg?branch=master\n :target: https://travis-ci.com/tonysyu/linecook\n\n.. image:: https://codecov.io/gh/tonysyu/linecook/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/tonysyu/linecook\n\n.. image:: https://readthedocs.org/projects/linecook/badge/\n :target: https://linecook.readthedocs.io\n\n`linecook` is a command-line tool that transforms lines of text into a form\nthat's pleasant to consume.\n\n- **Documentation:** https://linecook.readthedocs.io\n- **Source:** https://github.com/tonysyu/linecook\n\nInstall\n=======\n\nThe recommended way of installing `linecook` is to use `pip`::\n\n pip install linecook\n\nCooking up some beautiful text\n==============================\n\nThe core goal of `linecook` is to make it easy to create your own transforms to\nparse whatever text you have. For example, take an `app.log` file that looks\nlike:\n\n.. image:: docs/_static/images/app_log_raw.png\n\nIf you want to highlight the log type and mute the dates/times, then you can\ncreate a custom recipe in one of your `configuration files\n`_ like the\nfollowing:\n\n.. code-block:: python\n\n from linecook import patterns as rx\n from linecook.transforms import color_text\n\n LINECOOK_CONFIG = {\n 'recipes': {\n 'my-logs': [\n color_text(rx.any_of(rx.date, rx.time), color='blue'),\n color_text('INFO', color='cyan'),\n color_text('WARN', color='grey', on_color='on_yellow'),\n color_text('ERROR', on_color='on_red'),\n ],\n },\n }\n\nTo use this recipe, you can just pipe the log output to `linecook` with your\nnew recipe as an argument:\n\n.. image:: docs/_static/images/app_log_linecook.png\n\nThat's all there is to it!\n\nSee Also\n========\n\n- `grc `_: A generic colouriser (sic;) for log\n files and command output.\n- `rainbow `_: Colorize commands output or\n STDIN using patterns.\n- `multitail `_: Tail multiple files at\n once, with features to colorize, filter, and merge.\n- `colortail `_: Like the tail command\n line utility but with colors\n- `StackOverflow post on colored output\n `_\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tonysyu/linecook", "keywords": "console,terminal,logging,parsing,color", "license": "BSD-3-Clause", "maintainer": "Tony S. Yu", "maintainer_email": "tsyu80@gmail.com", "name": "linecook", "package_url": "https://pypi.org/project/linecook/", "platform": "", "project_url": "https://pypi.org/project/linecook/", "project_urls": { "Documentation": "https://linecook.readthedocs.io/", "Homepage": "https://github.com/tonysyu/linecook", "Repository": "https://github.com/tonysyu/linecook" }, "release_url": "https://pypi.org/project/linecook/0.4.0/", "requires_dist": [ "future (>=0.15,<0.16)", "termcolor (>=1.0.0,<2.0.0)", "toolz (>=0.9.0,<0.10.0)" ], "requires_python": "", "summary": "Prepare lines of text for easy consumption", "version": "0.4.0" }, "last_serial": 5389363, "releases": { "0.1.0.dev0": [ { "comment_text": "", "digests": { "md5": "0294e7ab2c65a632a0845a8afe58bfd1", "sha256": "3763a732b5e444ad876c9737531e1ad33aecf5ecf29b296df833267f96da742c" }, "downloads": -1, "filename": "linecook-0.1.0.dev0-py3-none-any.whl", "has_sig": false, "md5_digest": "0294e7ab2c65a632a0845a8afe58bfd1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16942, "upload_time": "2018-06-09T05:04:35", "url": "https://files.pythonhosted.org/packages/75/3a/33d35d34ba855db26d7d88922e8bc26745528ccc404090c96ec7309352ef/linecook-0.1.0.dev0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2a4f8486c049c30ffb1b96f321967946", "sha256": "f0f26085c989fdf2dff2ea4d337e9246e6fb8c7e250fabe4fd33efce5bd05dca" }, "downloads": -1, "filename": "linecook-0.1.0.dev0.tar.gz", "has_sig": false, "md5_digest": "2a4f8486c049c30ffb1b96f321967946", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12878, "upload_time": "2018-06-09T05:04:37", "url": "https://files.pythonhosted.org/packages/e2/01/8b0110f205fb318b85fb659c76e69babf710811f3a246a5bcb34f1a4d954/linecook-0.1.0.dev0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "f429fa080eabd4a613fa8a63fbc1fe34", "sha256": "174ebf8912c7dfbde78016720b9e91b5254c85afc8fb408da8dedb0765e690ae" }, "downloads": -1, "filename": "linecook-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f429fa080eabd4a613fa8a63fbc1fe34", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18087, "upload_time": "2019-05-18T23:27:45", "url": "https://files.pythonhosted.org/packages/ab/27/ca3bb788909b3a5b2392e202e592c2e6bd27691d114ea2ac5406f5c1d302/linecook-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cff9eeee1f03a5f41c467918376eda44", "sha256": "747b11217f7de46d40bae5f16dd21ca9f5fe905cff6e77936409b920c479d0fa" }, "downloads": -1, "filename": "linecook-0.2.0.tar.gz", "has_sig": false, "md5_digest": "cff9eeee1f03a5f41c467918376eda44", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13935, "upload_time": "2019-05-18T23:27:47", "url": "https://files.pythonhosted.org/packages/9f/d9/a5bd3499d5513e20965933998794df78fef841884852cd0ff2ec1a2c54b6/linecook-0.2.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "8f04a9a3c7db51840fb96ed0651f5c29", "sha256": "dde115d4e10451abf5a3e9449b7bd5abbc5afc34ab943817151c51ddaa5911d5" }, "downloads": -1, "filename": "linecook-0.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8f04a9a3c7db51840fb96ed0651f5c29", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18866, "upload_time": "2019-06-12T04:00:55", "url": "https://files.pythonhosted.org/packages/46/0e/964f5cf67d63b90ff875262a77d8da95c45f940feca727ddcb5093185fd1/linecook-0.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c5d7ffa0e28009995e1b0be02151be3b", "sha256": "e689c01e03f3d7ee539f16bf477e087c9d390abcf4cbd3360e92998f718e79b7" }, "downloads": -1, "filename": "linecook-0.4.0.tar.gz", "has_sig": false, "md5_digest": "c5d7ffa0e28009995e1b0be02151be3b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14926, "upload_time": "2019-06-12T04:00:56", "url": "https://files.pythonhosted.org/packages/47/37/ec5d16a6a51fd9beef9b113e65141f7ca63105fcf518d317a48a19dc0a31/linecook-0.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8f04a9a3c7db51840fb96ed0651f5c29", "sha256": "dde115d4e10451abf5a3e9449b7bd5abbc5afc34ab943817151c51ddaa5911d5" }, "downloads": -1, "filename": "linecook-0.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8f04a9a3c7db51840fb96ed0651f5c29", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18866, "upload_time": "2019-06-12T04:00:55", "url": "https://files.pythonhosted.org/packages/46/0e/964f5cf67d63b90ff875262a77d8da95c45f940feca727ddcb5093185fd1/linecook-0.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c5d7ffa0e28009995e1b0be02151be3b", "sha256": "e689c01e03f3d7ee539f16bf477e087c9d390abcf4cbd3360e92998f718e79b7" }, "downloads": -1, "filename": "linecook-0.4.0.tar.gz", "has_sig": false, "md5_digest": "c5d7ffa0e28009995e1b0be02151be3b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14926, "upload_time": "2019-06-12T04:00:56", "url": "https://files.pythonhosted.org/packages/47/37/ec5d16a6a51fd9beef9b113e65141f7ca63105fcf518d317a48a19dc0a31/linecook-0.4.0.tar.gz" } ] }