{"categories":[{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing/3"}],"enrichment":{"capability":"Parses strings and extracts structured data using Grok patterns, a named-capture syntax that simplifies pattern matching without writing complex regular expressions.","skillfed_tags":["log-parsing","pattern-matching","data-extraction"],"use_cases":["Parse application or system logs to extract fields like timestamps, log levels, and messages into structured records.","Extract key-value pairs from semi-structured text (e.g., 'name is gary, age 25') without hand-writing regex.","Convert matched string values to specific types (int, float) during extraction in a single step.","Build data pipelines that need to normalize and structure incoming text data before storage or analysis."],"what_it_does":"pygrok is a Python library that implements Grok-style pattern matching for parsing and extracting data from strings. Instead of writing complex regular expressions, you define patterns using named capture groups like `%{WORD:name}` and `%{NUMBER:age:int}`, and the library handles the underlying regex matching. It comes with a library of pre-built patterns for common data types (IP addresses, timestamps, log formats, etc.) and supports type conversion during extraction.\n\nThe package is built on top of the regex module (not Python's built-in re) because it needs atomic grouping syntax that the standard library doesn't support. It's most useful for log parsing, structured data extraction from semi-formatted text, and situations where you want readable, maintainable pattern definitions instead of dense regex strings.","worth_installing":"No. The package is dormant (last release 2016-09-24, no activity since 2023-11-22) and has high install friction due to the regex module dependency. While it solves a real problem, the lack of maintenance and Python version uncertainty make it risky for new projects. Consider active alternatives like regex-based parsing libraries or modern log-parsing frameworks."},"id":"pygrok","links":{"html":"https://skillfed.io/packages/pygrok","md":"https://skillfed.io/packages/pygrok.md","pypi":"https://pypi.org/project/pygrok/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2016-09-24","license_spdx":null,"license_treatment":"permissive","name":"pygrok","python_support":"unspecified","summary":"A Python library to parse strings and extract information from structured/unstructured data"},"popularity":{"monthly_downloads":98424,"position":13085,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.0"}
