Python module for generating placeholder text using the https://loripsum.net/ API
Project description
Lorem Ipsum Generator
Python module for generating placeholder text using the loripsum.net API.
Basic Usage
import loremipsum
# Generate 3 medium length paragraphs in plain text
plaintext = loremipsum.generate(3, loremipsum.ParagraphLength.MEDIUM)
# Generate 1 long paragraph with HTML tags
simple_html = loremipsum.generate(1, loremipsum.ParagraphLength.LONG, plaintext=False)
# Generate 1 long paragraph with HTML headers and decorated text
options = ['headers', 'decorate']
decorated_html = loremipsum.generate(1, loremipsum.ParagraphLength.LONG, plaintext=False, html_options=options)
For more details, see the documentation.
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
py-loremipsum-1.0.3.tar.gz
(3.3 kB
view hashes)