A Fortune clone in Python
Project description
Python Fortune
A simple self-contained clone of fortune. Try it out with cowsay!
Install
pip install fortune-python
Usage
CLI
Currently, a fortune
command line program is added on install.
fortune
This will select a random fortune. Adding the fortune command line arguments is planned later.
Programmatic
To use this package, import the fortune
function and call:
from fortune import fortune
print(fortune())
This will produce a random fortune.
Notes
The fortune data for this package is taken from fortune-mod. Please see the datfiles directory in this repo for their corresponding license.
The offensive fortunes in the 'off' directory are not included in this Python package. However, the fortunes provided in this package are otherwise provided as they were in the original fortune-mod repository. I do not take responsibility for the content of these fortunes.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for fortune_python-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c39d880c103c63b2dd0e049441fa296bbdecdc65c5d909a84bdee916f0b5ce6 |
|
MD5 | 4db886aa81384f93d09d82b8555ee2c3 |
|
BLAKE2b-256 | 1d52435bf9167e8460be962ce265d54cf4a7645f78504d0073fabeaaaf0678c1 |