Skip to main content

Lorem ipsum generator.

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.

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

Get Random Words

The lorem module provides two different ways for getting random words.

  1. word -- generate a list of random words

    word(count=1, func=None, args=[], kwargs={}) -> Iterable[str]
    
  2. get_word -- return random words

    get_word(count=1, sep=' ', func=None, args=[], kwargs={}) -> str
    

Get Random Sentences

The lorem module provides two different ways for getting random sentences.

  1. sentence -- generate a list of random sentences

    sentence(count=1, comma=(0, 2), word_range=(4, 8)) -> Iterable[str]
    
  2. get_sentence -- return random sentences

    get_sentence(count=1, comma=(0, 2), word_range=(4, 8), sep=' ') -> Union[str]
    

Get Random Paragraphs

The lorem module provides two different ways for getting random paragraphs.

  1. paragraph -- generate a list of random paragraphs

    paragraph(count=1, comma=(0, 2), word_range=(4, 8), sentence_range=(5, 10)) -> Iterable[str]
    
  2. get_paragraph -- return random paragraphs

    get_paragraph(count=1, comma=(0, 2), word_range=(4, 8), sentence_range=(5, 10), sep=os.linesep) -> Union[str]
    

Release files for python-lorem 1.3.0.post3

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 1.3.0.post3
File Size Uploaded
python_lorem-1.3.0.post3.tar.gz 11.7 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for python-lorem 1.3.0.post3
File
python_lorem-1.3.0.post3-pp310-none-any.whl PyPy 3.10 none any Details
python_lorem-1.3.0.post3-pp39-none-any.whl PyPy 3.9 none any Details
python_lorem-1.3.0.post3-pp38-none-any.whl PyPy 3.8 none any Details
python_lorem-1.3.0.post3-cp312-none-any.whl CPython 3.12 none any Details
python_lorem-1.3.0.post3-cp311-none-any.whl CPython 3.11 none any Details
python_lorem-1.3.0.post3-cp310-none-any.whl CPython 3.10 none any Details
python_lorem-1.3.0.post3-cp39-none-any.whl CPython 3.9 none any Details
python_lorem-1.3.0.post3-cp38-none-any.whl CPython 3.8 none any Details

Total release size: 84.6 kB

Release files / python_lorem-1.3.0.post3.tar.gz

Download URL python_lorem-1.3.0.post3.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
570d532a179783e024864b2799651f748a3e26ded7ee6d694b67f429f7bca6fd
BLAKE2b-256 checksum
How to use checksums
a5ffda026761ffdd68f5c9415ff54c4adaefaa409c422b41d18ed8fa6a59bff5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / python_lorem-1.3.0.post3-pp310-none-any.whl

Download URL python_lorem-1.3.0.post3-pp310-none-any.whl
Size 9.1 kB
Tags PyPy 3.10
SHA-256 checksum
How to use checksums
540010ab12cefc40b2c2bb390b2b65f50efe1097d93ab335228cfb11165f0c8d
BLAKE2b-256 checksum
How to use checksums
6c905cd010634bbb29c955cb8b47e7606e902231d462d6aeed9c925284fa44b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / python_lorem-1.3.0.post3-pp39-none-any.whl

Download URL python_lorem-1.3.0.post3-pp39-none-any.whl
Size 9.1 kB
Tags PyPy 3.9
SHA-256 checksum
How to use checksums
97b3f62c8d8b94ea444c06397b8f59205151751327f6413ed380451b0e743867
BLAKE2b-256 checksum
How to use checksums
7998666d4efefe1a64cf63b8448a10752ad236f61827726428afbe18aa35b59f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / python_lorem-1.3.0.post3-pp38-none-any.whl

Download URL python_lorem-1.3.0.post3-pp38-none-any.whl
Size 9.1 kB
Tags PyPy 3.8
SHA-256 checksum
How to use checksums
1b075c670a18df137109c9d23e8f769aaa5c1b889aef4f95dd712f5f8476872d
BLAKE2b-256 checksum
How to use checksums
fbccbf1add9655915d0317886070f192298d71697f525e3c78cb65904ab09d0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / python_lorem-1.3.0.post3-cp312-none-any.whl

Download URL python_lorem-1.3.0.post3-cp312-none-any.whl
Size 9.1 kB
Tags CPython 3.12
SHA-256 checksum
How to use checksums
6df337cc3c5fe2869f328df669164ce3633cf5347d6a7b92c86a96ac4295b30d
BLAKE2b-256 checksum
How to use checksums
b410e1533d7aa598cdf73772929ea7e1ef3d62af2260c88b616862b2b2dac974
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / python_lorem-1.3.0.post3-cp311-none-any.whl

Download URL python_lorem-1.3.0.post3-cp311-none-any.whl
Size 9.1 kB
Tags CPython 3.11
SHA-256 checksum
How to use checksums
c6bf3b89374ab7d231cec4b7855dc86fb7877bb52019394b97a34e71c597e639
BLAKE2b-256 checksum
How to use checksums
7417fbfcf6c240a7e269380eda259c01c62ac367f5c7c2a34e07cad05a51ef16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / python_lorem-1.3.0.post3-cp310-none-any.whl

Download URL python_lorem-1.3.0.post3-cp310-none-any.whl
Size 9.1 kB
Tags CPython 3.10
SHA-256 checksum
How to use checksums
e88a460eebf2d7e7a58f2d65c4c300a57762f9a74d5637764b9c44a01c8825db
BLAKE2b-256 checksum
How to use checksums
f71aab005d62e61fde44486fbe36e844469bd69f4d278bfd6cfe15f151067253
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / python_lorem-1.3.0.post3-cp39-none-any.whl

Download URL python_lorem-1.3.0.post3-cp39-none-any.whl
Size 9.1 kB
Tags CPython 3.9
SHA-256 checksum
How to use checksums
56aad2ba13254c1ed0c7ef9a55bbd3f748c5c9e15444c270d3ab73e35c789aab
BLAKE2b-256 checksum
How to use checksums
68a8a9cb88ffda1671a4107c0e611cade55d91ba44a636f3b09dc1139059acb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / python_lorem-1.3.0.post3-cp38-none-any.whl

Download URL python_lorem-1.3.0.post3-cp38-none-any.whl
Size 9.1 kB
Tags CPython 3.8
SHA-256 checksum
How to use checksums
ad77fd80be2fe5cb75d4178e2a7b70f50bb0894744a341cf52f1dabe30f7e2dd
BLAKE2b-256 checksum
How to use checksums
0fa078c7dbd9e85318e7f5831c1fdc567e2d9187e0c832e0bbf49ee6c1f250d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4
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