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.
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 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.
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 Distribution
surrealism-0.1.zip
(5.9 kB
view hashes)