https://github.com/theabhijeet/lorem_text
Dummy lorem ipsum text generator for Python.
https://github.com/theabhijeet/lorem_text
cli hacktoberfest hacktoberfest-accepted lorem-ipsum lorem-ipsum-generator python
Last synced: 11 months ago
JSON representation
Dummy lorem ipsum text generator for Python.
- Host: GitHub
- URL: https://github.com/theabhijeet/lorem_text
- Owner: TheAbhijeet
- License: mit
- Created: 2020-01-12T16:31:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-05-09T16:26:29.000Z (about 1 year ago)
- Last Synced: 2025-05-09T17:22:30.707Z (about 1 year ago)
- Topics: cli, hacktoberfest, hacktoberfest-accepted, lorem-ipsum, lorem-ipsum-generator, python
- Language: Python
- Homepage:
- Size: 1.74 MB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 25
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
- Authors: AUTHORS.rst
Awesome Lists containing this project
README
==========
Lorem Text
==========
.. image:: https://img.shields.io/pypi/dm/lorem_text
.. image:: https://img.shields.io/pypi/pyversions/lorem_text
Dummy lorem ipsum text generator
* Free software: MIT license
* Documentation: https://lorem-text.readthedocs.io.
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.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage