{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/8"},{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing/3"}],"enrichment":{"capability":"Extracts values from strings using format-string patterns instead of regular expressions, supporting simple field extraction, ordering, and nested object assignment.","skillfed_tags":["string-parsing","format-strings","data-extraction"],"use_cases":["Parse log lines with a known format to extract timestamps, levels, or message content.","Extract key-value pairs from structured text without writing regex patterns.","Build reusable parsers for configuration files or data exports with consistent formatting.","Extract and map fields into object attributes for lightweight data binding.","Parse simple tabular or columnar text where format is predictable."],"what_it_does":"stringparser provides a lightweight alternative to regular expressions for extracting structured data from strings. Instead of writing regex patterns, you write format strings using the familiar PEP 3101 syntax (the same format used by Python's str.format() method). The Parser class matches a string against a pattern and returns extracted values as scalars, lists, OrderedDicts, or nested objects depending on how you name and structure the fields.\n\nThe library is intentionally simpler than regex\u2014it matches from beginning to end and supports only a subset of format string features (type specifiers, sign, and the # flag). This makes it ideal for parsing structured text with known layouts, such as log lines, configuration values, or simple tabular data, where regex would be overkill but string splitting is too fragile.","worth_installing":"Yes, if you need lightweight pattern matching on structured text and want to avoid regex complexity. The low install friction, permissive license, and stable API make it a reasonable choice for parsing tasks with known, simple formats. However, the dormant maintenance status means you should verify that the feature set covers your use case before committing to it, and be prepared to maintain a fork if critical issues arise."},"id":"stringparser","links":{"html":"https://skillfed.io/packages/stringparser","md":"https://skillfed.io/packages/stringparser.md","pypi":"https://pypi.org/project/stringparser/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-11-16","license_spdx":null,"license_treatment":"permissive","name":"stringparser","python_support":"supports_current","summary":"Easy to use pattern matching and information extraction"},"popularity":{"monthly_downloads":193248,"position":9852,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.7"}
