{ "info": { "author": "Timothy Messier", "author_email": "tim.messier@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 2.7" ], "description": "YALP Grok\n=========\n\n|build-status| |coverage| |deps| |pypi|\n\n.. |build-status| image:: http://img.shields.io/travis/yalp-log/yalp-grok/master.svg?style=flat\n :alt: Build Status\n :scale: 100%\n :target: https://travis-ci.org/yalp-log/yalp-grok\n\n.. |coverage| image:: http://img.shields.io/coveralls/yalp-log/yalp-grok.svg?style=flat\n :alt: Coverage Status\n :scale: 100%\n :target: https://coveralls.io/r/yalp-log/yalp-grok?branch=master\n\n.. |deps| image:: http://img.shields.io/gemnasium/yalp-log/yalp-grok.svg?style=flat\n :alt: Dependency Status\n :scale: 100%\n :target: https://gemnasium.com/yalp-log/yalp-grok\n\n.. |pypi| image:: http://img.shields.io/pypi/v/yalp_grok.svg?style=flat\n :alt: PyPi version\n :scale: 100%\n :target: https://pypi.python.org/pypi/yalp_grok\n\n\nForked from https://github.com/garyelephant/pygrok as it seems to be dead. If\npygrok becomes active again this fork may be closed.\n\nPython implementaion of Jordan Sissel's `Grok`.\n\nInstall\n-------\n\n.. code-block:: bash\n\n pip install yalp_grok\n\nBasic Usage\n-----------\n\n.. code-block:: python\n\n >>> import yalp_grok as pygrok\n >>> text = 'gary is male, 25 years old and weighs 68.5 kilograms'\n >>> pattern = '%{WORD:name} is %{WORD:gender}, %{NUMBER:age} years old and\n weighs %{NUMBER:weight} kilograms'\n >>> print pygrok.grok_match(text, pattern)\n {'gender': 'male', 'age': '25', 'name': 'gary', 'weight': '68.5'}\n\nReusing Patterns\n----------------\n\nSince compiling a pattern can be time consuming, patterns can be compiled once\nand then reused for searching.\n\n.. code-block:: python\n\n >>> import yalp_grok as pygrok\n >>> pattern = \"%{COMMONAPACHELOG}\"\n >>> compiled_pattern = pygrok.compile_pattern(pattern)\n >>> with open('/var/log/apache/access.log', 'r') as log_file\n ... matches = [pygrok.grok_search(line, compiled_pattern) for line in log_file]\n\n.. _Grok: https://github.com/jordansissel/grok \n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/yalp/yalp-grok", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "yalp_grok", "package_url": "https://pypi.org/project/yalp_grok/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/yalp_grok/", "project_urls": { "Homepage": "https://github.com/yalp/yalp-grok" }, "release_url": "https://pypi.org/project/yalp_grok/0.3/", "requires_dist": [ "regex (>=2015.07.19)" ], "requires_python": "", "summary": "A Python library to parse strings and extract information from structured/unstructured data", "version": "0.3" }, "last_serial": 2106318, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "ae8a44ce73799c5039ec6e1d2f01e4bf", "sha256": "e03f2461ae4900c6da76c5483f5daee5c531e0ecb96486f5db458603333921f3" }, "downloads": -1, "filename": "yalp_grok-0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "ae8a44ce73799c5039ec6e1d2f01e4bf", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4309, "upload_time": "2015-09-16T01:50:10", "url": "https://files.pythonhosted.org/packages/c7/10/3ce6d9578dabfd49a247e6624d5a02cc2579fe91189e42e659823a1287bf/yalp_grok-0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cddd6e3489064638d15ac43187204bcd", "sha256": "3cd7233c245534305d86ff33ea27591bfe85606ea55fe5e95912e1573250bdb9" }, "downloads": -1, "filename": "yalp_grok-0.1.tar.gz", "has_sig": false, "md5_digest": "cddd6e3489064638d15ac43187204bcd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15236, "upload_time": "2015-09-16T01:50:14", "url": "https://files.pythonhosted.org/packages/bb/43/9e28f8935b5426dc83714272d421613097b7c32813e832425d7f3777b26d/yalp_grok-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "e66930468cd8762416f1827ac8b40fbd", "sha256": "8ce0baff863a9684185edf777e5a6ecaeadfd33395b3f0ef8e1a9cb5b7a88558" }, "downloads": -1, "filename": "yalp_grok-0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "e66930468cd8762416f1827ac8b40fbd", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 14514, "upload_time": "2015-09-16T02:23:39", "url": "https://files.pythonhosted.org/packages/cf/df/1e7629df1c390163e0c54bf140889adcc211649cbedf23e78352e001ff61/yalp_grok-0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4e91d7d57be91554a983f934ff1011b4", "sha256": "3940f29bf8d7f4bb8e7e81b3d4a0a1bee3842c94c58415a47643966b493857eb" }, "downloads": -1, "filename": "yalp_grok-0.2.tar.gz", "has_sig": false, "md5_digest": "4e91d7d57be91554a983f934ff1011b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15378, "upload_time": "2015-09-16T02:23:42", "url": "https://files.pythonhosted.org/packages/90/f4/47d606275e12f2df2aa0bd8b9c54a1b55f18c773959c336700bf363943cf/yalp_grok-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "199a824e3a6d7fc0d8fb7f8c34ea8374", "sha256": "57ed83cd3eaef613da5b9ef442decd8e06b62707edcac00dac301a3115befeaa" }, "downloads": -1, "filename": "yalp_grok-0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "199a824e3a6d7fc0d8fb7f8c34ea8374", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 15922, "upload_time": "2016-05-09T12:10:09", "url": "https://files.pythonhosted.org/packages/c9/02/44716d0d0e2cc15de3f623efb5938116da1cbf272e227aadddc5c2d737b0/yalp_grok-0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a0b8ed1b0cdd4b097ac3610b708eccfe", "sha256": "1f84883acaa3317adbb2c52031c2161798ee64a557425adc39aaa8bb8d53a681" }, "downloads": -1, "filename": "yalp_grok-0.3.tar.gz", "has_sig": false, "md5_digest": "a0b8ed1b0cdd4b097ac3610b708eccfe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15266, "upload_time": "2016-05-09T12:10:32", "url": "https://files.pythonhosted.org/packages/6e/93/266d77b6e41586bddd69a19a2f3761747e2c0457fcc0efa5e12e88174d01/yalp_grok-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "199a824e3a6d7fc0d8fb7f8c34ea8374", "sha256": "57ed83cd3eaef613da5b9ef442decd8e06b62707edcac00dac301a3115befeaa" }, "downloads": -1, "filename": "yalp_grok-0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "199a824e3a6d7fc0d8fb7f8c34ea8374", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 15922, "upload_time": "2016-05-09T12:10:09", "url": "https://files.pythonhosted.org/packages/c9/02/44716d0d0e2cc15de3f623efb5938116da1cbf272e227aadddc5c2d737b0/yalp_grok-0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a0b8ed1b0cdd4b097ac3610b708eccfe", "sha256": "1f84883acaa3317adbb2c52031c2161798ee64a557425adc39aaa8bb8d53a681" }, "downloads": -1, "filename": "yalp_grok-0.3.tar.gz", "has_sig": false, "md5_digest": "a0b8ed1b0cdd4b097ac3610b708eccfe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15266, "upload_time": "2016-05-09T12:10:32", "url": "https://files.pythonhosted.org/packages/6e/93/266d77b6e41586bddd69a19a2f3761747e2c0457fcc0efa5e12e88174d01/yalp_grok-0.3.tar.gz" } ] }