Skip to main content

A Python library for generating Lorem Ipsum text.

Project description

AboutFeaturesLayoutHow to RunTechnologiesContributeLicenseContributors

💻 About the project

The Lorem Ipsum Generator is a Python library that allows you to generate Lorem Ipsum text easily. Lorem Ipsum is placeholder text commonly used in the printing and typesetting industry.

⚙️ Features

  • Lorem Ipsum Paragraphs: Generate Lorem Ipsum paragraphs effortlessly with the paragraphs method.

  • Random Words Generation: Create a string of random words using the words method, allowing customization of the number of words.

  • Shopping List Generation: Quickly generate a shopping list with randomly selected items using the shopping_list method.


🎨 Layout


🚀 How to run the project

Installation

To use the Lorem Ipsum Generator, you first need to install it. You can install it using pip:

pip install lorem-ipsum-generator

Usage

Import the LoremIpsum class and create an instance:

from lorem_ipsum_generator import LoremIpsum

Lorem = LoremIpsum()

Generating Paragraphs

To generate Lorem Ipsum paragraphs, use the paragraphs method:

lorem_paragraphs = Lorem.paragraphs(paragraphs_numbers=3, start_with_lorem_ipsum=True)
print(lorem_paragraphs)

This will generate three Lorem Ipsum paragraphs, starting with the default "Lorem ipsum" text.

Generating Words

To generate a string of random words, use the words method:

lorem_words = Lorem.words(words_numbers=50)
print(lorem_words)

This will generate a string containing 50 random words.

Generating a Shopping List

To generate a shopping list of randomly selected items, use the shopping_list method:

shopping_list = Lorem.shopping_list(items_count=5)
print(shopping_list)

This will generate a shopping list with 5 randomly selected items.

Examples

Here are some additional examples:

# Example 1: Generating 2 paragraphs without starting with "Lorem ipsum"
lorem_text = Lorem.paragraphs(paragraphs_numbers=2, start_with_lorem_ipsum=False)

# Example 2: Generating a string of 20 random words
random_words = Lorem.words(words_numbers=20)

# Example 3: Generating a shopping list with 3 items
shopping_items = Lorem.shopping_list(items_count=3)

Feel free to customize the parameters based on your needs.


🛠 Technologies


Contribution ✨

Help the community make this project even more amazing. Read how to contribute by clicking here. I am convinced that together we will achieve incredible things!


📝 License

This project is under the license GLP3 - License.


👨‍💻 Contributors

💜 A big thanks 👏 to these folks who brought this project from the realm of ideas to execution!


Vitório Cavaleheiro

👨‍🚀

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

pyloremgen-1.0.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

PyLoremGen-1.0.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file pyloremgen-1.0.1.tar.gz.

File metadata

  • Download URL: pyloremgen-1.0.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.14

File hashes

Hashes for pyloremgen-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6be3be4ceac8e410875a73155f1b4aebf9aba5489f6598d10cff03c5cd0836fb
MD5 2979b4a48b4fff63b8d42eca9c38bf92
BLAKE2b-256 98dc9391478cdc85a09631d9b7153d78f1370d725c92238550fe6ce51771a113

See more details on using hashes here.

File details

Details for the file PyLoremGen-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: PyLoremGen-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.14

File hashes

Hashes for PyLoremGen-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f607df048eaab2b55cb808bba584fbee6ae69f45858a9ff6a01bb077dfad6223
MD5 f0ece6ceaf5fd1f33c9dd7e5fc962bbf
BLAKE2b-256 ea1de028471b961dff7ae19e6f52931586a79d27181350dd18b425056d8f7048

See more details on using hashes here.

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