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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fortune-python-1.0.3.tar.gz.
File metadata
- Download URL: fortune-python-1.0.3.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9d516d696a793519b9a3ce5c5f22f0b5eef5bd9fdea40b009dc22ca864e1b55
|
|
| MD5 |
47754be729220772253cea7da4154dea
|
|
| BLAKE2b-256 |
7cc894a0df2507b0d5d5b10d075ba87cffa2758e6824cbb6e944d938aa71f012
|
File details
Details for the file fortune_python-1.0.3-py3-none-any.whl.
File metadata
- Download URL: fortune_python-1.0.3-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a045c93da39621454d39c188f3874b3c686499a62e73a077c0d853ec5157344
|
|
| MD5 |
fbfcf102062fca6f61e425086b5e0d93
|
|
| BLAKE2b-256 |
711b7cd88fefda8c7dece39e8be567495885c0fc67e208654849e610ade29bb4
|