Skip to content

Releases: JarryShaw/lorem

v1.3.0.post3

Choose a tag to compare

@github-actions github-actions released this 26 Jun 03:28
v1.3.0.post3
04b9e25
bumped version to 1.3.0.post3

v1.3.0.post2

Choose a tag to compare

@github-actions github-actions released this 26 Jun 03:23
v1.3.0.post2
9cf427d
bumped version to 1.3.0.post2

v1.3.0.post1

Choose a tag to compare

@github-actions github-actions released this 15 Jun 09:27
58430c6
bumped version to 1.3.0.post1

python-lorem v1.3.0

Choose a tag to compare

@github-actions github-actions released this 23 Apr 06:40
v1.3.0
7cdf99e

python-lorem v1.3.0rc1

Pre-release

Choose a tag to compare

@github-actions github-actions released this 23 Apr 06:36
v1.3.0rc1
075c7b3

python-lorem v1.2.0

Choose a tag to compare

@github-actions github-actions released this 01 Nov 02:04
v1.2.0
4d821bf

New distribution [1.2.0]

  • added seperate pool #53
  • revised type annotations #55
  • revised public API parameters

python-lorem v1.1.2

Choose a tag to compare

@JarryShaw JarryShaw released this 15 Feb 03:37
3dddf68
  • bump version to 0.1.2
  • revised docstrings
  • integrate Sphinx docs

python-lorem v1.0.0

Choose a tag to compare

@JarryShaw JarryShaw released this 06 Oct 12:20
  • word, sentence, paragraph will return indefinite iterators
  • added set_pool to customise word pool
  • updated test cases correspondingly

python-lorem v1.0.0

Choose a tag to compare

@JarryShaw JarryShaw released this 27 Sep 13:49
v1.0.0
b769a0c

python-lorem - Initial Release

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]