{ "info": { "author": "Sam Morley", "author_email": "sam@inakleinbottle.com", "bugtrack_url": null, "classifiers": [], "description": "\n# TexOutParse\nSimple output/log file parsing library for LaTeX builds. \n\nLaTeX log files are notoriously unstructured and there is a wide variance in the style\nand content of messages.\nMessages can be roughly characterised as an error, an warning, a bad box, or info.\nPackages and classes can also generate messages and, while there are template macros\n for producing such messages, no structure is\nenforced on the messages.\n\nMany LaTeX editors provide a log file parser that runs automatically on building\nthe document.\nA summary of the errors, warnings, and bad boxes is usually displayed to the user.\nThere does not seem to be any library or tool for parsing log files separate from these editors.\n\n## Installalation\nThe library can be installed via Pip\n```sh\npip install texoutparse\n```\n\n## Usage\nThe main class provided by this library is `LaTexLogParser`, which is used to parse\nthe log file and collect the statistics. \n```python\nfrom texoutparse import LatexLogParser\n\nparser = LatexLogParser()\nwith open('sample.log') as f:\n parser.process(f)\n```\nThe `parser` object contains lists of errors, warnings, and bad boxes, each described by an \n`LogFileMessage` object. Both objects provide a `__str__` method that prints a summary of the\nerror in the case of `LatexLogParser` and the raw lines in the case of `LogFileMessage`.\n```\n>>> print(parser)\nErrors: 1, Warnings: 1, Badboxes:1\n\n>>> print(parser.errors[0])\n! Undefined control sequence.\nl.6 \\dtae\n{December 2004}\n``` \n\n## Contributing\n 1. Fork it. (https://github.com/inakleinbottle/fork)\n 2. Create a feature branch. (`git checkout -b feature/name`)\n 3. Commit your changes. (`git commit -m 'add some feature'`)\n 4. Push the branch to Github. (`git push origin feature/name`)\n 5. Create a pull request.\n\n## Meta\nSam Morley - [inakleinbottle.com](https://inakleinbottle.com) - admin@inakleinbottle.com\n\nDistributed under the MIT license. See `LICENSE` for more information.\n\n ## Release History\n - 1.0. Initial release\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/inakleinbottle/texoutparse", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "texoutparse", "package_url": "https://pypi.org/project/texoutparse/", "platform": "", "project_url": "https://pypi.org/project/texoutparse/", "project_urls": { "Homepage": "https://github.com/inakleinbottle/texoutparse" }, "release_url": "https://pypi.org/project/texoutparse/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "Simple LaTeX log file parsing library.", "version": "1.0.0" }, "last_serial": 5311375, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "6fd9371c25d801f9657d8ca63508c6b1", "sha256": "094488352f53b3a17169127fe73e62d8591968da65c601507de17f8389e9573c" }, "downloads": -1, "filename": "texoutparse-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6fd9371c25d801f9657d8ca63508c6b1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5155, "upload_time": "2019-05-24T08:12:25", "url": "https://files.pythonhosted.org/packages/77/7b/ca530b66acf5a88e3149965d9c2a87012f744cb8a4b19091c7d0aaa26ddd/texoutparse-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2ea6559140c37a3ebe747b850d3a7455", "sha256": "79bee7f25d14070b4d50ddad53f550d5ce1530a1cc083f98a7119226cf6e3852" }, "downloads": -1, "filename": "texoutparse-1.0.0.tar.gz", "has_sig": false, "md5_digest": "2ea6559140c37a3ebe747b850d3a7455", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4371, "upload_time": "2019-05-24T08:12:27", "url": "https://files.pythonhosted.org/packages/7c/9e/6be9f1d54b7124ff43c5565d5cee88511c73a3e59f958f3794dc1b9aca21/texoutparse-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6fd9371c25d801f9657d8ca63508c6b1", "sha256": "094488352f53b3a17169127fe73e62d8591968da65c601507de17f8389e9573c" }, "downloads": -1, "filename": "texoutparse-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6fd9371c25d801f9657d8ca63508c6b1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5155, "upload_time": "2019-05-24T08:12:25", "url": "https://files.pythonhosted.org/packages/77/7b/ca530b66acf5a88e3149965d9c2a87012f744cb8a4b19091c7d0aaa26ddd/texoutparse-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2ea6559140c37a3ebe747b850d3a7455", "sha256": "79bee7f25d14070b4d50ddad53f550d5ce1530a1cc083f98a7119226cf6e3852" }, "downloads": -1, "filename": "texoutparse-1.0.0.tar.gz", "has_sig": false, "md5_digest": "2ea6559140c37a3ebe747b850d3a7455", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4371, "upload_time": "2019-05-24T08:12:27", "url": "https://files.pythonhosted.org/packages/7c/9e/6be9f1d54b7124ff43c5565d5cee88511c73a3e59f958f3794dc1b9aca21/texoutparse-1.0.0.tar.gz" } ] }