Skip to main content

Lorem ipsum generator


NB: uses semantic versioning.

In publishing and graphic design, lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content.

The lorem module provides a generic access to generating the lorem ipsum text from its very original text:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Installation

Note that the lorem module only supports Python versions since 3.5 🐍

Simply run the following to install the current version from PyPI:

pip install python-lorem-ipsum

Or install the latest version from the git repository:

git clone https://github.com/adambirds/python-lorem-ipsum.git
cd lorem
pip install -e .
# and to update at any time
git pull

Usage

Usage of the lorem module is rather simple. Depending on your needs, the lorem module provides generation of words, sentences, and paragraphs:

import lorem

print(lorem.get_sentence(count=3))

Eu consectetur ad et, exercitation fugiat occaecat exercitation cillum non ullamco, elit mollit est consectetur. In ex proident esse est aute est mollit, id minim lorem tempor sunt elit. Dolor aliqua non eiusmod officia esse adipiscing.

Please refer to the documentation for more details.

Testing

The lorem module utilised unittest.mock to patch the builtin functions from random module. Test cases can be found in test_lorem.py. Contributions are welcome.

Release files for python-lorem-ipsum 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-lorem-ipsum 2.0.0
File Size Uploaded
python_lorem_ipsum-2.0.0.tar.gz 9.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-lorem-ipsum 2.0.0
File Interpreter ABI Platform
python_lorem_ipsum-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size:17.6 kB

Release files / python_lorem_ipsum-2.0.0.tar.gz

Download URL python_lorem_ipsum-2.0.0.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6f2ada24c5759fcd6d6120eea8d97f2fc93ee1e3ccae16df25f21f989f25cbba
BLAKE2b-256 checksum
How to use checksums
441e5359ce554f855e07b9bc204c3840f01b1c776b095c48c9337c97fedcadb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / python_lorem_ipsum-2.0.0-py3-none-any.whl

Download URL python_lorem_ipsum-2.0.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67bc844703f27369970261e89329aeb386bbd3c22526f9dad64cfc7409e3a7fa
BLAKE2b-256 checksum
How to use checksums
c03e3755de0f56672897eacf895d0fe39fa8c7f898b0ad1a919908c8c32a8e0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page