Skip to main content

Lorem ipsum as py library (from lipsum.com)

Project description


PyLipsum

PyLipsum is a convenient Python library for generating Lorem Ipsum text. It provides a simple interface for retrieving random text, which is often used as placeholder in web page development and layout design. With PyLipsum you can easily and quickly generate text of various types and sizes, which makes this tool indispensable for developers and designers.

Main features

  • Generation flexibility: You can generate words, paragraphs, bytes or lists depending on your needs.
  • Custom Quantity: Specify the number of words, paragraphs, bytes, or list items to generate.
  • Intuitive interface: Easy to use thanks to a concise and clear API.

Installation

You can install the library using pip:

pip install pylipsum

Examples of using

from pylipsum import LipsumAPI

# Create an instance of the LipsumAPI class
lipsum = LipsumAPI()

# Generate 5 words
print(lipsum.generate(5, 'words'))

# Generate 2 paragraphs
print(lipsum.generate(2, 'paragraphs'))

# Generate 50 bytes
print(lipsum.generate(50, 'bytes'))

# List generation
print(lipsum.generate(3, 'lists'))

PyLipsum makes the process of generating Lorem Ipsum text fast and easy, while providing flexibility and customization to suit your needs.

License

This library is distributed under Apache 2.0.


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

pylipsum-1.2.post20240613.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file pylipsum-1.2.post20240613.tar.gz.

File metadata

  • Download URL: pylipsum-1.2.post20240613.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for pylipsum-1.2.post20240613.tar.gz
Algorithm Hash digest
SHA256 e5c43dd7655eab9376bc3a1c538e0d8e77477d6d6627a3b09e5daae73545d6c4
MD5 ccc11aa331970381ed03e5ee82d1e174
BLAKE2b-256 05507e4c44cc0c7aa833ce2e6802554c187240ecbc8447bd001afdb0d5e362f4

See more details on using hashes here.

Supported by

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