SLiMSuite REST Server


Links
REST Home
EdwardsLab Homepage
EdwardsLab Blog
SLiMSuite Blog
SLiMSuite
Webservers
Genomes
REST Pages
REST Status
REST Help
REST Tools
REST Alias Data
REST API
REST News
REST Sitemap

rje_zen V1.4.3

Random Zen Wisdom Generator

Module: rje_zen
Description: Random Zen Wisdom Generator
Version: 1.4.3
Last Edit: 14/03/22

Copyright © 2007 Richard J. Edwards - See source code for GNU License Notice


Imported modules: rje


See SLiMSuite Blog for further documentation. See rje for general commands.

Function

Generates random (probably nonsensical) Zen wisdoms. Just for fun.

Commandline

wisdoms=X : Number of Zen Wisdoms to return [10]
zensleep=X : Time in seconds to sleep between wisdoms [0]
fightcrime=X: Probability of returning a "They fight crime!" message [0.1]

History Module Version History

    # 0.0 - Initial Compilation.
    # 1.0 - Full working version with four zen types and reasonable vocabulary.
    # 1.1 - Added a few more words here and there.
    # 1.2 - Added a webserver mode to return text directly.
    # 1.3.0 - Modified output to work with new REST service calls.
    # 1.3.1 - Added some more words.
    # 1.3.2 - Added some more words.
    # 1.4.0 - Added some more words and "They fight crime!" structure.
    # 1.4.1 - Added some more words and started reformatting for Python3 compatibility.
    # 1.4.2 - Fixed formatting for Python 2.6 back compatibility for servers.
    # 1.4.3 - Add some more words.

rje_zen REST Output formats

Run with &rest=help for general options. Run with &rest=full to get full server output as text.
Individual outputs can be identified/parsed:
###~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~###
# OUTFMT:
...

Outputs available:
wisdoms = the list of randomly generated nonsense.

&rest=OUTFMT can then be used to retrieve individual parts of the output in future.

© 2015 RJ Edwards. Contact: richard.edwards@unsw.edu.au.