Skip to main content

Lorem ipsum generator.

Project description

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]
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-lorem-1.3.0.post1.tar.gz (11.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

python_lorem-1.3.0.post1-pp39-none-any.whl (9.1 kB view details)

Uploaded PyPy

python_lorem-1.3.0.post1-pp38-none-any.whl (9.1 kB view details)

Uploaded PyPy

python_lorem-1.3.0.post1-cp311-none-any.whl (9.1 kB view details)

Uploaded CPython 3.11

python_lorem-1.3.0.post1-cp310-none-any.whl (9.1 kB view details)

Uploaded CPython 3.10

python_lorem-1.3.0.post1-cp39-none-any.whl (9.1 kB view details)

Uploaded CPython 3.9

python_lorem-1.3.0.post1-cp38-none-any.whl (9.1 kB view details)

Uploaded CPython 3.8

File details

Details for the file python-lorem-1.3.0.post1.tar.gz.

File metadata

  • Download URL: python-lorem-1.3.0.post1.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for python-lorem-1.3.0.post1.tar.gz
Algorithm Hash digest
SHA256 6a890b0ae42aea21e90bdd0c2c270843178402b3f2c75a3a454d76db8c597716
MD5 c61a957a0a8b6eda7bbe0bf09569f85d
BLAKE2b-256 75d71856ba85f56e587240a01a317017b316d43d5d63d77295881a9173368b1e

See more details on using hashes here.

File details

Details for the file python_lorem-1.3.0.post1-pp39-none-any.whl.

File metadata

File hashes

Hashes for python_lorem-1.3.0.post1-pp39-none-any.whl
Algorithm Hash digest
SHA256 9d17253bb7040eef86cac76658eae9628d11c238b2f60e9b0b7a5c3a8b66643e
MD5 9e0c6aa808447113f3f1dbf63ec7c8a6
BLAKE2b-256 53286500d5560b65ad0a3757beb53e36c9c05857a68318fe21b831908058899a

See more details on using hashes here.

File details

Details for the file python_lorem-1.3.0.post1-pp38-none-any.whl.

File metadata

File hashes

Hashes for python_lorem-1.3.0.post1-pp38-none-any.whl
Algorithm Hash digest
SHA256 444a2f6d9c1b373119bc20ccad776476fe9b761b531ea50c45b6406e5447fe5f
MD5 492615280c15fd5ae8d4783dbe04335c
BLAKE2b-256 1c7c2b411d42a3a7a9ce1cd6cdd25c2abb099e59dac7920540ec7eaac864c1dd

See more details on using hashes here.

File details

Details for the file python_lorem-1.3.0.post1-cp311-none-any.whl.

File metadata

File hashes

Hashes for python_lorem-1.3.0.post1-cp311-none-any.whl
Algorithm Hash digest
SHA256 e72b925481b788341cb258c23b959ed479c18bd55335dfaa974e09cb25a67fba
MD5 7418cd26d8b05adad53201a9c9b60454
BLAKE2b-256 2a5822f16718efce4dc5ae5c950d9cf4619a4ab9f9cc2da9385354d5d3c9a4eb

See more details on using hashes here.

File details

Details for the file python_lorem-1.3.0.post1-cp310-none-any.whl.

File metadata

File hashes

Hashes for python_lorem-1.3.0.post1-cp310-none-any.whl
Algorithm Hash digest
SHA256 a4db9ea35622e17920c6b021e437741fafa133a2a6835770fdf18846800263a2
MD5 0fd6b6a09b4fc1b1efad2201dd04cd26
BLAKE2b-256 4d69d73d84ad4a94c51332a024e5fb23c3c511faa6eef2881f9aaa30d04bf9f5

See more details on using hashes here.

File details

Details for the file python_lorem-1.3.0.post1-cp39-none-any.whl.

File metadata

File hashes

Hashes for python_lorem-1.3.0.post1-cp39-none-any.whl
Algorithm Hash digest
SHA256 da5265724035decf14e873e72c940587bfef539648bf0d3a9ec731041d42d41e
MD5 c94100636c5d86a829d3fb2dd3039a98
BLAKE2b-256 149bc71586a03e0cc07b2fa29b6b9726654fa27c7fe7e496ab3f38fcba38d79d

See more details on using hashes here.

File details

Details for the file python_lorem-1.3.0.post1-cp38-none-any.whl.

File metadata

File hashes

Hashes for python_lorem-1.3.0.post1-cp38-none-any.whl
Algorithm Hash digest
SHA256 bc911215e220a0a2dd98d233b95b831db1ce2804ab9fff724f6c34ee2c6f165f
MD5 541f4fb5ea7dd62f81e3bb4ef4b2e695
BLAKE2b-256 f0fe5e9304257487b67aea40104fda648722442eaf31a71c80acbd4d5070722c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page