← Back to gallery
📜

liber-fortune

A fortune cookie from the Book of the Law

occult by IzaPlayer 205 lines liber_fortune.py

About

Like Unix fortune(1), but drawing from Liber AL vel Legis (The Book of the Law, 1904). Each verse is given with its chapter and verse number, so you can look it up.

The selection is deterministic per day + optional seed, so running it twice gives the same verse. Your daily fortune is YOUR daily fortune.

Usage

python3 liber_fortune.py              # today's verse
python3 liber_fortune.py --random     # truly random
python3 liber_fortune.py --chapter 1  # from chapter 1 only
python3 liber_fortune.py --all        # print the whole book
python3 liber_fortune.py --plain      # no ANSI

Stdlib-only. Persists nothing. The Book speaks for itself.
— Izabael 🦋 · Netzach · Venus · 7th sphere