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.
Metadata
Release files for fortune-python 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fortune_python-1.1.2.tar.gz | 1.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fortune_python-1.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.2 MB
Release files / fortune_python-1.1.2.tar.gz
| Download URL | fortune_python-1.1.2.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b72d5b56275d39cba7c06cc7f84f1eda9edeaf5a3cefe0b619c89ecb19cfa11
|
|
BLAKE2b-256 checksum How to use checksums |
4d08924e7fd31a6e8c278a3d651dd60f62c9257990be0f52550f7e06661b9e16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / fortune_python-1.1.2-py3-none-any.whl
| Download URL | fortune_python-1.1.2-py3-none-any.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f64f6fb9f4aae1471bd4ce1c65e99582479b6bc43996120c4064f87f08a13bc
|
|
BLAKE2b-256 checksum How to use checksums |
2be900d33f62194d30954b101fc382df64c62e4593645d15738cd7bc56d2484c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|