The `lorem` library (version 0.1.1) is a lightweight Python package designed to generate random text that resembles Latin, commonly known as 'Lorem Ipsum'. It provides simple functions for generating words, sentences, and paragraphs, as well as a more configurable class for advanced text generation. The project has not seen updates since 2016, indicating a stable but inactive development cadence.
pip install loremVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates both the direct utility functions for basic Lorem Ipsum generation and the `TextLorem` class for more customized output, such as specific word separators or sentence length ranges.
For basic Lorem Ipsum, this library is sufficient. For more robust or actively maintained solutions, consider alternatives like `lorem_text` or `lipsum`.
Always verify the PyPI project name (`lorem`) and the expected import statements (`import lorem` or `from lorem.text import TextLorem`) against the official documentation or the GitHub repository (`sfischer13/python-lorem`).
When using the `words` parameter in `TextLorem`, always provide a list of strings, e.g., `words=['word1', 'word2', 'word3']` or `words='word1 word2 word3'.split()`.
Install the 'lorem' package using pip: 'pip install lorem'.
Use the correct function name: 'from lorem import sentence'.
Use the correct function: 'from lorem import paragraph'.
Use the appropriate function from the module: 'from lorem import paragraph; paragraph()'.
Use the correct class name: 'from lorem import Lorem'.
No dependency data recorded yet.