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.
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
Or using easy_install:
$ easy_install surrealism
And it will download and install the latest version from the Python Package Index.
Or pip:
$ 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 >>> surreal = surrealism.Surrealism() >>> sentence = surreal.getsentence() >>> If I can get the Pot Noodle to enter Radiohead's Lead Singer, the lego-brick will dilute Julian Assange and I'll be able to spy on Neil Armstrong!
Generate a surreal error message:
>>> import surrealism >>> surreal = surrealism.Surrealism() >>> fault = surreal.getfault() >>> jump-lead .c:147: sleepy error before 'stick insect' - 'salt crystal' undeclared.
Please feel free to leave bug reports and feature requests on the github homepage at https://github.com/Morrolan/surrealism.
All comments are welcome!
Changelog
0.4.1
Minor database tweak for error messages.
0.4
Urgent bug fix to getfault where returned result was incomplete.
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.