A Lorem Ipsum text generator
Project description
You may import the Generator class to instantiate your generator with your own sample text and a dictionary:
>>> from loremipsum import Generator
>>>
>>> sample = file('data/sample.txt').read()
>>> dictionary = file('data/dictionary.txt').read().split()
>>>
>>> g = Generator(sample, dictionary)
>>> g.generate_sentence() #doctest: +ELLIPSIS
(...)
>>>
or just import get_sentences or get_paragraphs which interface to a module wide Generator instance.
>>> from loremipsum import get_paragraphs, get_sentences >>> >>> get_sentences(5) #doctest: +ELLIPSIS ['...', '...', '...', '...', '...'] >>> get_paragraphs(3) #doctest: +ELLIPSIS ['...', '...', '...']
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file loremipsum-1.0.2.zip.
File metadata
- Download URL: loremipsum-1.0.2.zip
- Upload date:
- Size: 22.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bb894f4ab73b24a88469db246d5536200551a63a481b092f340ca98c2e0e316
|
|
| MD5 |
d9cbb2098c499e06a329f1d674944327
|
|
| BLAKE2b-256 |
23859b37ffbd23d9d746ffabd27c3619154ecc334f871f71720f21ac4720b3ba
|
File details
Details for the file loremipsum-1.0.2.tar.gz.
File metadata
- Download URL: loremipsum-1.0.2.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfacfc3c76e239e96d327a6e224cbae44647908bba51393be556bcf955af608b
|
|
| MD5 |
ad7ecfcdced1eab24bd8a4fee954b87f
|
|
| BLAKE2b-256 |
767fbd7a580cc60f0440a8c6a8bb11832c9ff11719a64c07e501d809dce76020
|
File details
Details for the file loremipsum-1.0.2-py2.7.egg.
File metadata
- Download URL: loremipsum-1.0.2-py2.7.egg
- Upload date:
- Size: 20.8 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3005ac9d23e6e72b4e5c2c990a0b325a2868d3400d23d006ebf691a239e8946
|
|
| MD5 |
7ec599818404b6304c5ac70a67eab05d
|
|
| BLAKE2b-256 |
bbe57ea54d77e65462e978464eae816eb36fbc6b45f2eff8431403205dbe3ea9
|
File details
Details for the file loremipsum-1.0.2-py2.6.egg.
File metadata
- Download URL: loremipsum-1.0.2-py2.6.egg
- Upload date:
- Size: 20.9 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b663020dab61cfa384f12f4d034dc612dd61ca4aa1fc9d09bd72e76b0ac2e968
|
|
| MD5 |
c99c40702eb9bd586ded6268c49bf0ff
|
|
| BLAKE2b-256 |
1e7191973b2e053a9e3404e1ce9150aa58f73c7be1677ad2c146e1ebc898f2c8
|
File details
Details for the file loremipsum-1.0.2-py2.5.egg.
File metadata
- Download URL: loremipsum-1.0.2-py2.5.egg
- Upload date:
- Size: 20.9 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0bb376cf6e8fce5a32c114005b8d8528489e162f816e1a3695f1208e806937f
|
|
| MD5 |
f936ed796e61fe2d11dad75d92b65325
|
|
| BLAKE2b-256 |
0fb43b2994f5de286b91680e4a87e111ab3750a875a9c5711b4a02e459d3e168
|