Processes

Say Hello

class emu.processes.wps_say_hello.SayHello[source]

hello Say Hello (v1.5)

Just says a friendly Hello. Returns a literal string output with Hello plus the inputed name.

Parameters:name (string) – Please enter your name.
Returns:output – A friendly Hello from us.
Return type:string

References

Sleep

class emu.processes.wps_sleep.Sleep[source]

sleep Sleep Process (v1.0)

Testing a long running process, in the sleep. This process will sleep for a given delay or 10 seconds if not a valid value.

Parameters:delay (float) – Delay between every update
Returns:sleep_output – Sleep Output
Return type:string

References

Wordcounter

class emu.processes.wps_wordcounter.WordCounter[source]

wordcounter Word Counter (v1.0)

Counts words in a given text.

Parameters:text (text/plain) – URL pointing to a text document, for example “Alice in Wonderland”: http://www.gutenberg.org/cache/epub/19033/pg19033.txt
Returns:output – Word counter result
Return type:application/json

References

Counts ocurrences of all words in a document.

Chomsky

class emu.processes.wps_chomsky.Chomsky[source]

chomsky Chomsky text generator (v1.0)

Generates a random chomsky text

Parameters:times (integer) – Generates a random chomsky text.
Returns:output – Chomsky text
Return type:text/plain

Generates a random chomsky text: http://code.activestate.com/recipes/440546-chomsky-random-text-generator/

CHOMSKY is an aid to writing linguistic papers in the style of the great master. It is based on selected phrases taken from actual books and articles written by Noam Chomsky. Upon request, it assembles the phrases in the elegant stylistic patterns that Chomsky is noted for. To generate n sentences of linguistic wisdom, type:

  • (CHOMSKY n) – for example
  • (CHOMSKY 5) generates half a screen of linguistic truth.

NCMeta

class emu.processes.wps_ncmeta.NCMeta[source]

ncmeta Return NetCDF Metadata (v4)

Return metadata from a netCDF dataset, either on file or an OpenDAP service.

Parameters:
Returns:

output – Metadata

Return type:

text/plain

References

Returns metadata of a NetCDF file or OpenDAP resource.