Skip to main content

Surreal sentence and error message generator.

Project description

surrealism module for Python

This module allows you to generate surreal sentences and error messages very easily from within your python programs.

Many thanks go to Raven Black from www.ravenblack.net.

This module is a derivative work (used with permission) from www.ravenblack.net.

Credit also goes to Kevan Davis on whose work the surrealism generator at www.ravenblack.net is based on.

Installation

If you have downloaded the source distribution, to install do the following at the commandline:

$ python setup.py install

If you can use and install Python Egg’s, you can do:

$ easy_install surrealism

And it will download and install the latest version from the Python Package Index.

You can also do:

$ pip install surrealism

And it will download and install the latest version from the Python Package Index.

Usage Examples

Generate a surreal sentence:

>>> import surrealism
>>> surr = surrealism.Surrealism()
>>> sen = surr.getsentence()

>>> Why did the Gallifreyan helmet hide apples behind the bright porridge-bowl?  Because it was being penetrated by the will-o'-the-wisp!

Generate a surreal error message:

>>> import surrealism
>>> surr = surrealism.Surrealism()
>>> sen = surr.getfault()

>>> jump-lead .c:147: sleepy error before 'stick insect' - 'salt crystal' undeclared.

Still to do:

Please feel free to leave bug reports and feature requests on the github homepage at https://github.com/Morrolan/surrealism.

All comments are welcome!

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

surrealism-0.3.tar.gz (128.6 kB view hashes)

Uploaded Source

Built Distribution

surrealism-0.3-py2.6.egg (7.1 kB view hashes)

Uploaded Source

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