fortune3

UNIX 'fortune' command for Python3


Keywords
fortune cookie development
Licenses
GPL-3.0/CERN-OHL-P-2.0
Install
pip install fortune3==0.2

Documentation

fortune3 by Evin Dunn


Usage: fortune [category]

The category argument is optional. If omitted, the fortune command returns
a random quote that can be from any category. If specified, the category
can be one of the following:
    art,
    ascii-art,
    bofh-excuses,
    computers,
    cookie,
    definitions,
    drugs,
    education,
    ethnic,
    food,
    fortunes,
    goedel,
    hitchhiker,
    humorists,
    humorix-misc
    humorix-stories,
    kernelnewbies
    kids,
    knghtbrd,
    law,
    linux,
    linuxcookie,
    literature,
    love,
    magic,
    medicine,
    miscellaneous,
    news,
    osfortune,
    paradoxum,
    people,
    perl,
    pets,
    platitdes,
    politics,
    riddles,
    science,
    songs-poems,
    sports,
    startrek,
    tao,
    translate-me,
    wisdom,
    work,
    zippy

The main advantage to fortune3 is that it can be easily imported and used
within other projects. The library code consists of a single static method:

from fortune3 import Fortune
str_fortune1 = Fortune.fortune()
str_fortune2 = Fortune.fortune('art')

Where no argument results in a random category, and a specified category
can be one of those listed above