A fortune cookie database and generator for indic languages.


>>> from indicfortune getInstance
>>> f = getInstance()
>>> f.fortune('chanakya')
u' The beauty of a cuckoo is in its notes, that
of a woman\n in her unalloyed devotion to her husband, that of an\n
ugly person in his scholarship, and that of an ascetic\n in his

API reference

class indicfortune.core.Fortune[source]

The fortune class. Instantiate to get access to the methods.

fortune(database, pattern=None)[source]

Pick a random fortune from a file

fortunes(infile, pattern=None)[source]

Yield fortunes as lists of lines


returns info on the module


returns the module name.


returns an instance of the fortune class.

Available fortune databases

  • chanakya
  • malayalam_proverbs
  • thirukkural

Indices and tables

Table Of Contents

Related Topics

This Page