Skip to main content

Dummy lorem ipsum text generator

Project description

Lorem Text

https://travis-ci.org/TheAbhijeet/lorem_text.svg?branch=master Documentation Status

Dummy lorem ipsum text generator

Features

Dummy lorem ipsum text generator for Python.

  • Generate dummy senetnce, paragraphs and words.

  • Command line interface tool included.

Usage

To install Lorem Text, run this command in your terminal:

pip install lorem-text

To use Lorem Text in a project:

from lorem_text import lorem

For randomly generated sentence of lorem ipsum text where the first word is capitalized, and the sentence ends in either a period or question mark:

lorem.sentence()

Generate a single paragraph:

lorem.paragraph()

Generate multiple paragraphs of lorem ipsum text each paragraph’s consists of 2 to 4 sentences:

paragraph_length = 5
lorem.paragraphs(paragraph_length)

Generate random lorem ipsum words seperated with single space:

words = 10
lorem.words(words)

Command Line Interface

For randomly generated paragraph of lorem ipsum text:

lorem_text

Lorem ipsum sentence:

lorem_text --s

Lorem ipsum words:

lorem_text --words=50

Contributing

Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

1.0 (2020-01-06)

  • First release on PyPI.

2.1 (2021-10-16)

  • Second release on PyPI.

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

lorem_text-2.1.tar.gz (12.9 kB view hashes)

Uploaded Source

Built Distribution

lorem_text-2.1-py2.py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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