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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a111112e39ce034afa744f010cc3d6dc7406f6fed21a78116ffdfea26ee53bd |
|
MD5 | 7c20ef0fc837dc5c69da6921f9d19902 |
|
BLAKE2b-256 | 9d06fcaba2f0d0b0639466bc5389df31f970ae22d04dc948a9666d873121137b |