{"categories":[{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing/2"}],"enrichment":{"capability":"Provides a single function that joins multi-line strings into clean, single-paragraph text by removing indentation and normalizing whitespace, making it easier to write readable long strings in Python code.","skillfed_tags":["string-formatting","code-readability"],"use_cases":["Format long exception messages or error descriptions that span multiple lines while keeping source code indented.","Store verbose data like book titles, historical records, or narrative text in dictionaries or data structures without line breaks.","Embed multi-paragraph help text or documentation strings in class or function definitions.","Clean up user-facing strings that are easier to edit and review when written across multiple lines in the source."],"what_it_does":"paragraphs is a lightweight utility that provides a single function, `par()`, to convert multi-line string literals into clean, single-paragraph text. It removes leading indentation, joins lines with spaces, compresses consecutive whitespace, and handles paragraph breaks (marked by blank lines) by preserving them as double newlines. The function is designed to make long strings readable in source code without sacrificing the final output format.\n\nThe typical use case is embedding long text\u2014error messages, documentation, data labels, or narrative content\u2014directly in Python code while keeping the code itself well-indented and readable. Instead of concatenating strings or using awkward line continuations, you pass a multi-line triple-quoted string to `par()` and get back a properly formatted result.","worth_installing":"Yes, if you frequently write long strings in Python and want cleaner, more maintainable code. The package is stable (no known vulnerabilities), has no dependencies, and installs easily. However, the dormant maintenance status means you should not expect active support; use it only for straightforward string formatting where you do not need ongoing updates."},"id":"paragraphs","links":{"html":"https://skillfed.io/packages/paragraphs","md":"https://skillfed.io/packages/paragraphs.md","pypi":"https://pypi.org/project/paragraphs/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-08-11","license_spdx":null,"license_treatment":"permissive","name":"paragraphs","python_support":"supports_current","summary":"Incorporate long strings painlessly, beautifully into Python code."},"popularity":{"monthly_downloads":305537,"position":7795,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.1"}
