Lorem Text Generator

3.0 · active · verified Thu Apr 16

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.

Common errors

Warnings

Install

Imports

Quickstart

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}")

view raw JSON →