Registry / data / lorem-text

lorem-text

JSON →
library3.0pypypi✓ verified 85d ago

Lorem Text is a Python library designed to generate dummy 'lorem ipsum' text. It provides straightforward functions for creating random sentences, paragraphs, and words, making it suitable for placeholder content in development and design. The library is actively maintained, with version 3.0 released in May 2025, and generally follows an an irregular but consistent release cadence for new features and improvements.

pip install lorem-text
INSTALL
IMPORT
SIG · LOREM-TEXT
L
lorem-text
datapythonv3.0
Install
1.7s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v3.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 1.7s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

lorem
from lorem_text import lorem

This quickstart demonstrates how to import the `lorem` object and use its methods to generate sentences, single paragraphs, multiple paragraphs, and a specific number of words.

from lorem_text import lorem # Generate a single sentence sentence = lorem.sentence() print(f"Sentence: {sentence}") # Generate a single paragraph paragraph = lorem.paragraph() print(f"\nParagraph: {paragraph}") # Generate 3 paragraphs paragraphs = lorem.paragraphs(3) print(f"\nMultiple Paragraphs:\n{paragraphs}") # Generate 10 random words words = lorem.words(10) print(f"\nWords: {words}")
Debug
Known issues
gotchaThere are multiple 'lorem ipsum' text generator libraries on PyPI (e.g., `lorem`, `lipsum`, `pyloremgen`, `loremipsum`). Ensure you are installing `lorem-text` and importing `from lorem_text import lorem` to avoid conflicts or unexpected behavior.
fix
Always verify the package name (`lorem-text`) during installation (`pip install lorem-text`) and use the correct import statement (`from lorem_text import lorem`).
affects: All versions
breakingOlder versions of the `lorem-text` library might have different API structures or require older Python versions. Version 3.0 explicitly requires Python >=3.9, meaning direct upgrades from versions supporting older Python environments may encounter compatibility issues.
fix
Upgrade to the latest Python version (>=3.9) and consult the official `lorem-text` documentation or PyPI project page for any API changes when upgrading from a major version (e.g., 2.x to 3.x).
affects: Prior to 3.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'lorem_text'
The `lorem-text` package is not installed, or the current Python environment does not have access to the installed package.
fix
Ensure the library is installed in your active Python environment using pip: `pip install lorem-text`.
NameError: name 'lorem' is not defined
The `lorem` object was not correctly imported from the `lorem_text` package before being used.
fix
Add `from lorem_text import lorem` at the beginning of your script or ensure it is within the current scope.
TypeError: lorem.paragraphs() missing 1 required positional argument: 'paragraph_length'
The `paragraphs()` method (and `words()` method) requires an integer argument specifying the number of paragraphs/words to generate.
fix
Provide the required integer argument, e.g., `lorem.paragraphs(5)` or `lorem.words(10)`.
Upgrade
Version history
3.0latest on PyPI · released May 10, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
lorem-text — pip install lorem-text · libregistry