https://github.com/itsnaks/pylipsum
Library for generating Lorem Ipsum in python
https://github.com/itsnaks/pylipsum
lipsum lipsum-generator lorem lorem-ipsum lorem-ipsum-generator python python3 scraping
Last synced: 5 months ago
JSON representation
Library for generating Lorem Ipsum in python
- Host: GitHub
- URL: https://github.com/itsnaks/pylipsum
- Owner: itsnaks
- License: apache-2.0
- Created: 2024-06-12T11:47:43.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-13T08:03:19.000Z (about 2 years ago)
- Last Synced: 2025-09-14T08:58:58.175Z (9 months ago)
- Topics: lipsum, lipsum-generator, lorem, lorem-ipsum, lorem-ipsum-generator, python, python3, scraping
- Language: Python
- Homepage: https://pypi.org/project/pylipsum/
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
---
# 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:
```bash
pip install pylipsum
```
## Examples of using
```python
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](LICENSE).
---