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.

Source Distribution

python_fortune-0.2.tar.gz (25.3 kB view details)

Uploaded Source

File details

Details for the file python_fortune-0.2.tar.gz.

File metadata

File hashes

Hashes for python_fortune-0.2.tar.gz
Algorithm Hash digest
SHA256 646d0c6aee27dcb00c7337b5ca90c4d254c10d0e50176e860fa1940c11aa1c1b
MD5 2be5f9945100e44aec79a60470317c46
BLAKE2b-256 9734ee3704ead4e63db36ee5434c2d574bb3cb1be6a73feb6516ffdf6782d3a8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page