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]
    

Customise Word Pool

If wanted, the lorem module also provides an interface to customise the word pool as you wish.

  1. set_pool -- customise random word pool

    set_pool(pool)
    

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.1.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

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

python_lorem-1.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file python-lorem-1.1.0.tar.gz.

File metadata

  • Download URL: python-lorem-1.1.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for python-lorem-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f89c8f17483762a688a9d0e0e16300dfe51a8386eb8839f26f6b6b6eac85b2fd
MD5 af806c2c36a63fea0809556802e6fbc8
BLAKE2b-256 ce1a32cc59a3320e7caa75e557133c0b22ea63876de5fcf2f5002574d3d4a86b

See more details on using hashes here.

File details

Details for the file python_lorem-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: python_lorem-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for python_lorem-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a7c6ee0cac6ca2484a4445b6b72a946ad31cedf7e65f0808c11aedca0f5a2d8
MD5 a91f2dc88cadd67707e823e6aa219a46
BLAKE2b-256 597601fee79a1237f94049257f2693f395e67c681be8c60c096acfb3439690d9

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