copyipsum

Grab text from Loripsum.net API."


License
Other
Install
pip install copyipsum==0.0.1

Documentation

copyipsum

Copies lorem ipsum text from the Loripsum.net API.

Install

Using pip

pip install copyipsum

From Source

You can also clone the public repository:

git clone git://github.com/clioweb/copyipsum.git

Or download the tarball:

curl -OL https://github.com/clioweb/copyipsum/tarball/master

Once you have a copy, you can run the setup yourself. Move into the copyipsum directory, then do:

python setup.py install

Usage

copyipsum [-h] [-p PARAGRAPHS] [-s {short,medium,long,verylong}] [-a]
                 [-b] [-c] [-d] [-H] [-l] [-q] [-t] [-o] [-u]
                 [-O {print,copy,both}]

Arguments

  -h, --help            show this help message and exit
  -p, --paragraphs      The number of paragraphs to generate. Defaults to 4.
  -s, --size            The size of paragraphs. Options are short, medium,
                        long, verylong. Defaults to medium.
  -a, --allcaps         Use ALL CAPS.
  -b, --decorate        Add decorated text, including bold, italic and mark.
  -c, --code            Add code samples.
  -d, --dl              Add definition lists.
  -H, --headers         Add headers.
  -l, --link            Add links.
  -q, --bq              Add blockquotes.
  -t, --plaintext       Return plain text, no HTML.
  -o, --ol              Add ordered lists.
  -u, --ul              Add unordered lists.
  -O, --output          Output option. Options are copy, print, both.
                        Defaults to copy.

Examples

Copy four paragraphs.

> copyipsum

Copy 10 paragraphs with headers

> copyipsum -H -i 10

Print out 10 paragraphs with headers

> copyipsum -H -i 10 -O print

Thanks