Skip to main content

Generator for random text that looks like Latin.

Project description

Python Lorem Package

https://img.shields.io/pypi/v/lorem.svg https://img.shields.io/travis/sfischer13/python-lorem.svg

Summary

Generator for random text that looks like Latin.

Simple Example

import lorem

s = lorem.sentence()  # 'Eius dolorem dolorem labore neque.'
p = lorem.paragraph()
t = lorem.text()

Complex Example

from lorem.text import TextLorem

# separate words by '-'
# sentence length should be between 2 and 3
# choose words from A, B, C and D
lorem = TextLorem(wsep='-', srange=(2,3), words="A B C D".split())

s1 = lorem.sentence()  # 'C-B.'
s2 = lorem.sentence()  # 'C-A-C.'

History

0.1.1 (2016-06-18)

  • Update documentation

0.1.0 (2016-06-17)

  • Minimum viable product

0.0.1 (2016-06-14)

  • First release on PyPI.

Download files

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

Files for lorem, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size lorem-0.1.1-py3-none-any.whl (5.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size lorem-0.1.1.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page