Paragraphs is a Python library designed to simplify the incorporation of long strings into Python code, making them more readable and maintainable. It provides a simple function to format multi-line strings, aiming to prevent common formatting issues that arise with extensive text blocks in code. The current version is 1.0.1, and its release cadence appears to be infrequent, with the last update in 2019.
pip install paragraphsVerified import paths — ran on the pinned version, not inferred.
The `par` function takes a multi-line string (often a triple-quoted string) and formats it, typically by dedenting and re-wrapping it to remove extraneous whitespace and improve readability. This is particularly useful for constructing human-readable messages or documentation within the code.
Ensure `paragraphs` matches your text processing needs. For semantic paragraph detection, try `to-paragraphs`. For Knuth-Plass line-breaking with PIL rendering, look at `pyparagraph`.
For mission-critical projects or those requiring active maintenance, evaluate alternatives or consider vendoring the code if its current functionality suffices and no breaking changes are anticipated from Python updates.
Install the library using pip: `pip install paragraphs`.
Change your import statement from `import paragraphs` to `from paragraphs import par`.
No dependency data recorded yet.