Skip to main content

Simple /usr/bin/fortune implementation in Python.

Project description

A very simple implementation of fortune in Python with pseudo-random cookie generation. (Uses the default random.SystemGenerator to collect entropy from hardware interrupts.)

To install, copy/rename the fortune.py script to /usr/local/bin/fortune, and add the following to your $HOME/.profile file:

[ -x “/usr/local/bin/fortune” ] && /usr/local/bin/fortune 2>&1

To customize the fortune files data directory, set the FORTUNE_DATADIR environment variable like so:

export FORTUNE_DATADIR=/usr/local/share/mydatadir

By default, the script will try to use $HOME/etc/fortune.d as the data directory for data files.

Etienne Robillard <tkadm30[at]yandex.com>

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for python_fortune, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size python_fortune-0.2.tar.gz (25.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page